From: alvaro@audifarma.com.co
To: pgsql-admin@postgresql.org
Subject: SOS ---- Could you help me with pg_resetxlog
Date: Tue, 27 Jul 2004 10:58:41 -0500 (COT)
Message-ID: <54810.200.31.204.249.1090943921.squirrel@www.audifarma.com.co> (raw)
Hi,
Yesterday I ahve posted a message indicating that I had a problem the
following problem:
ERROR: could not access status of transaction 3145728
DETAIL: could not open file "/var/lib/pgsql/datos/pg_clog/0003": No such
file or directory
I know that the file /var/lib/pgsql/datos/pg_clog/0003 doesn't exist but I
restart postmaster several times and postmaster still indicates that
condition... How can I fix this?
Reading the manual I found the pg_resetxlog command and follow the
instructions to figure out what could be the next log file like this:
look at the /var/lib/pgsql/datos/pg_clog for the file with the highest
value (000) then I did the following operation:
(000+1)*1048576 and then convert the result into an HEX value (100000),
Then I run the following command:
pg_resetxlog -x 100000 /var/lib/pgsql/datos
But....Oh my god I lost all the information generated since july 14 of
this year...
I think that the possible cause of this was becasue in that date something
happends (SO level) and the file was missing maybe fsck did that, -I'm
just wondering...-.
I try to restore from my copies but none of them work properly ... Is
there any way that I can undo the resetxlog operation -Please say yes...-
Thanks a lot,
Alvaro
Thanks a lot for your help,
Alvaro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: alvaro@audifarma.com.co
Subject: Re: SOS ---- Could you help me with pg_resetxlog
In-Reply-To: <54810.200.31.204.249.1090943921.squirrel@www.audifarma.com.co>
References: <54810.200.31.204.249.1090943921.squirrel@www.audifarma.com.co>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox