Re: Help! Upgrade to 8.4 dropped my databases

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Andrew Perrin <clists(at)perrin(dot)socsci(dot)unc(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Help! Upgrade to 8.4 dropped my databases
Date: 2009-08-03 22:04:20
Message-ID: 20090803220420.GG19615@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Andrew Perrin wrote:

> 1.) Is there a way to "reconnect" the 8.3 server, after reinstalling
> it, to the raw files, so that the databases are there? I will then
> do a pg_upgradecluster and be happy; or, alternatively,

If you're in a hurry, just install 8.3 from source and run postmaster -D
/path/to/data/files (be sure to choose a nonconflicting port). Then you
can connect to it with pg_dump and get the data out and into the 8.4
installation.

Oh, make sure you keep an eye out for the socket directory too ...
default PG places sockets in /tmp whereas Debian places them in
/var/run/postgresql. Just in case.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2009-08-03 22:15:51 Re: RAID for the DB filesystem
Previous Message Rodrigo E. De León Plicet 2009-08-03 22:02:43 Re: RAID for the DB filesystem