From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Tulio Oliveira <mestredosmagos(at)marilia(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: I lost the pg_control file |
Date: | 2001-05-05 00:39:19 |
Message-ID: | 3427.989023159@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Tulio Oliveira <mestredosmagos(at)marilia(dot)com> writes:
> I just lost the pg_control file, located in /usr/local/pgsql/data/global
How did that happen?
> I start a new INITDB after rename the PG_DATA directory to another name,
> but if I copy the pg_control file to real data directory, I receive a
> "NO FILE POINTER ERROR"...
I think you could recover by copying in a freshly-initialized pg_control
(be sure you make it with the same locale setting as before!) and then
running the pg_resetxlog utility from contrib. You'll probably have to
use the -f switch to pg_resetxlog ... read its README file!
Once you get the postmaster to start, do NOT make any changes to the
database, or you will be very sorry :-(. Run pg_dumpall, then reload
the data into a correctly initialized database.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2001-05-05 00:44:22 | RE: DB Getting Slower and Slower and Slower.... |
Previous Message | Bruce Momjian | 2001-05-05 00:28:03 | Re: IpcMemoryCreate: shmget failed (Invalid argument) |