X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 38EFBD1CC20 for ; Wed, 28 Jul 2004 00:52:02 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 22233-02 for ; Wed, 28 Jul 2004 03:51:51 +0000 (GMT) Received: from www.postgresql.com (www.postgresql.com [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id BECFBD1DBEC for ; Wed, 28 Jul 2004 00:26:15 -0300 (ADT) Received: from audifarm.audifarma.com.co (unknown [200.31.204.249]) by www.postgresql.com (Postfix) with ESMTP id EA760CF6DA4 for ; Tue, 27 Jul 2004 13:04:20 -0300 (ADT) Received: from audifarm.audifarma.com.co (localhost.localdomain [127.0.0.1]) by audifarm.audifarma.com.co (8.12.11/8.12.11) with ESMTP id i6RFwfm2027806 for ; Tue, 27 Jul 2004 10:58:41 -0500 Received: (from apache@localhost) by audifarm.audifarma.com.co (8.12.11/8.12.11/Submit) id i6RFwfng027803; Tue, 27 Jul 2004 10:58:41 -0500 X-Authentication-Warning: audifarm.audifarma.com.co: apache set sender to alvaro@audifarma.com.co using -f Received: from 200.31.204.249 (SquirrelMail authenticated user alvaro) by www.audifarma.com.co with HTTP; Tue, 27 Jul 2004 10:58:41 -0500 (COT) Message-ID: <54810.200.31.204.249.1090943921.squirrel@www.audifarma.com.co> Date: Tue, 27 Jul 2004 10:58:41 -0500 (COT) Subject: SOS ---- Could you help me with pg_resetxlog From: alvaro@audifarma.com.co To: pgsql-admin@postgresql.org User-Agent: SquirrelMail/1.4.1-2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=NO_REAL_NAME, PRIORITY_NO_NAME X-Spam-Level: * X-Archive-Number: 200407/317 X-Sequence-Number: 14385 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