From: | "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net> |
---|---|
To: | "Steve Spencer" <stevenspencer(at)ozemail(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Recovering a database |
Date: | 2002-01-18 20:08:27 |
Message-ID: | 200201181959.g0IJxAS10604@neuromancer.ctlno.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> > 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?
> Peter,
> I have not tried this but it is mentioned in the install docs that you
> can set and environment variable PGDATA2 I beleive, and this will make
> postgres look for the second data directory. I recommend searching for
> environment variables in the docs at postgres.org.
I would think that more than that, you just want to tell postgres to use that
directory as the data directory. When you start postgres you can specify the
data dir with the -D argument. If you are using the redhat RPMS, then
postgres is probably started by /etc/init.d/postgres script. You can look in
there, find the line that starts postgres, or sets the variable, and then
startup postgres. I assume the old data dir is the same major version of
postgres (7.1.x).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8SIDA8BXvT14W9HARAt+lAJ9ORQioRifTLcQWj7MrGh/ALC6OvgCfWyKk
twSYblpdOM1GfM4gCA0I6Bc=
=Z2Uv
-----END PGP SIGNATURE-----
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-01-18 20:09:05 | Re: Ignorance time: when is 7.2 due ? |
Previous Message | Chris Bowlby | 2002-01-18 19:59:33 | Text Column limits |