Search Postgresql Archives

Re: Two Versions of PostgreSQL Installed - How to uninstall one particular version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Albe Laurenz wrote:
If you care about the data in the 7.3 data directory, you will
have to migrate it: start a 7.3 server, export with 8.3's
pg_dumpall, run 8.3's initdb, import the dump.

and thats not that easy with Redhat/Centos/Fedora/etc RPM installs, as installing 8.x from RPM sources wiped out the 7.3 binaries

assuming you installed the PGDG rpms over the RH stock 7.3 RPMs, and you don't particluarlly care for any 7.3 databases, you could try this...

# service stop postgresql -- (make sure everything is stopped)
   # mv /var/lib/pgsql/data /var/lib/pgsql/data-73
   # service postgresql initdb
   # service postgresql start

this will put aside the 7.3 postgres data for later consideration, and create a new database cluster with the version you installed.




--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux