X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id CD6369FBC4E for ; Fri, 25 Aug 2006 15:36:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 98603-09 for ; Fri, 25 Aug 2006 15:36:40 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B19C49FBC47 for ; Fri, 25 Aug 2006 15:36:39 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k7PIaV6o004200; Fri, 25 Aug 2006 14:36:31 -0400 (EDT) To: Peter Eisentraut cc: pgsql-admin@postgresql.org, "Bartosz Belter" Subject: Re: 7.4 - data recovery In-reply-to: <200608252031.00864.peter_e@gmx.net> References: <200608252031.00864.peter_e@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Fri, 25 Aug 2006 20:31:00 +0200" Date: Fri, 25 Aug 2006 14:36:31 -0400 Message-ID: <4199.1156530991@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.141 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/294 X-Sequence-Number: 22837 Peter Eisentraut writes: > Bartosz Belter wrote: >> 3. I've recovered some files and it looks to me they're from >> $PGDATA/base/data/xxx (it looks this is the complete folder) >> 4. No other files! (no pg_clog, pg_xlog etc) > If you don't have a clog, then all your transactions will appear > as "didn't happen yet", so your table data appears to be in the future. > You can just commit dummy transactions until it appears again. This is > obvious not an official and approved way, but it's at least a shot > before you're forced to get out your hex editor. Less painfully, use pg_resetxlog to push the XID and WAL counters up past what's in the database. The problem is to know where to set them :-( regards, tom lane