Passer de Debian Lenny-Postgresql 8.3 à Debian Squeeze-Postgresql 8.4 sans douleurs
# echo "deb http://ftp.de.debian.org/debian/ lenny main contrib non-free" >> /etc/apt/source.list
# aptitute update && aptitude install postgresql-8.3
# /etc/init.d/postgresql stop && /etc/init.d/postgresql start
# pg_dropcluster 8.4 main --stop
On lance la migration et on enlève l’instance 8.3 et on purge les paquets inutiles dans la foulée:
# pg_upgradecluster 8.3 main && pg_dropcluster 8.3 main
# apt-get remove --purge postgresql-8.3 && apt-get remove --purge postgresql-client-8.3
mixvir:/etc/postgresql/8.3/main# pg_dropcluster 8.4 main --stop
mixvir:/etc/postgresql/8.3/main# pg_upgradecluster 8.3 main
Stopping old cluster...
Disabling connections to the old cluster during upgrade...
Restarting old cluster with restricted connections...
Creating new cluster (configuration: /etc/postgresql/8.4/main, data: /var/lib/postgresql/8.4/main)...
Moving configuration file /var/lib/postgresql/8.4/main/postgresql.conf to /etc/postgresql/8.4/main...
Moving configuration file /var/lib/postgresql/8.4/main/pg_hba.conf to /etc/postgresql/8.4/main...
Moving configuration file /var/lib/postgresql/8.4/main/pg_ident.conf to /etc/postgresql/8.4/main...
Configuring postgresql.conf to use port 5432...
Disabling connections to the new cluster during upgrade...
Roles, databases, schemas, ACLs...
Fixing hardcoded library paths for stored procedures...
Upgrading database mixged...
Analyzing database mixged...
Fixing hardcoded library paths for stored procedures...
Upgrading database te...
Analyzing database te...
Fixing hardcoded library paths for stored procedures...
Upgrading database webdav_prod...
Analyzing database webdav_prod...
Fixing hardcoded library paths for stored procedures...
Upgrading database postgres...
Analyzing database postgres...
Fixing hardcoded library paths for stored procedures...
Upgrading database template1...
Analyzing database template1...
Re-enabling connections to the old cluster...
Re-enabling connections to the new cluster...
Copying old configuration files...
Copying old start.conf...
Stopping target cluster...
Stopping old cluster...
Disabling automatic startup of old cluster...
Configuring old cluster to use a different port (5432)...
Starting target cluster on the original port...
Success. Please check that the upgraded cluster works. If it does,
you can remove the old cluster with
pg_dropcluster 8.3 main
mixvir:/etc/postgresql/8.3/main# pg_dropcluster 8.3 main

By Cometdoc ou comment convertir tes documents (pdf,word,CAD…) vers le format que tu souhaites ou presque ! | Zat's Hall
By OpenTTD, le jeu version libre de Transport Tycoon Deluxe | Zat's Hall
By zatmania
By zatmania