pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org, "Bartosz Belter" <bartosz.belter@man.poznan.pl>
Subject: Re: 7.4 - data recovery
Date: Fri, 25 Aug 2006 14:36:31 -0400
Message-ID: <4199.1156530991@sss.pgh.pa.us> (raw)
In-Reply-To: <200608252031.00864.peter_e@gmx.net>
References: <op.teucc41jtiul80@juniper.man.poznan.pl>
	<200608252031.00864.peter_e@gmx.net>

Peter Eisentraut <peter_e@gmx.net> 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



view thread (3+ messages)

Message-ID: <4199.1156530991@sss.pgh.pa.us>
Permalink:  ../4199.1156530991@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4199.1156530991@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, peter_e@gmx.net, bartosz.belter@man.poznan.pl
  Subject: Re: 7.4 - data recovery
  In-Reply-To: <4199.1156530991@sss.pgh.pa.us>
  References: <op.teucc41jtiul80@juniper.man.poznan.pl> <200608252031.00864.peter_e@gmx.net> <4199.1156530991@sss.pgh.pa.us>

* 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