Re: Recovering a database

From: Doug McNaught <doug(at)wireboard(dot)com>
To: "Peter Bayley" <peterb(at)homer(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Recovering a database
Date: 2002-01-18 19:47:15
Message-ID: m3g053l9vg.fsf@varsoon.denali.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Peter Bayley" <peterb(at)homer(dot)com(dot)au> writes:

> I had a hard disk crash recently (Those IBM 45Gb drives again) and had to
> reinstall Linux (RedHat 7.2) on the new disk (Seagate)
>
> My question is - how can I tell PostgreSQL (which I've obviously had to
> reinstall) to look at my existing database which was mounted on another
> volume and is still intact.?. In other words- Can you tell a
> freshly-installed PostgreSQL to use an existing (same version) database?

Sure--set PGDATA appropriately before starting the postmaster. See
the docs.

BTW, this would have been better posted to GENERAL rather than
HACKERS.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 2002-01-18 19:52:06 Re: postgresql-7.2b5.tar.gz
Previous Message Tom Lane 2002-01-18 19:42:26 Re: Confusing terminology