pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruno Mattarollo <bruno@web1.greenpeace.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: [URGENT] Problems recovering database
Date: Wed, 14 May 2003 17:40:16 -0400
Message-ID: <3500.1052948416@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0305142240270.17455-100000@web1.greenpeace.org>
References: <Pine.LNX.4.33.0305142240270.17455-100000@web1.greenpeace.org>

Bruno Mattarollo <bruno@web1.greenpeace.org> writes:
> Thanks for the tip. It worked to start the DB but when I issue:
> psql -l
> I can't see my databases :( 

You need to set the next transaction ID higher (pg_resetxlog -x).
I'd try 2 billion (2000000000) for starters.

You should probably also be setting the WAL start location (-l)
somewhere past the evidently-already-existing segments ("-l 2,0"
should do, I think).

Needless to say, initdb and reload as soon as you have managed to
get a good dump.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <3500.1052948416@sss.pgh.pa.us>
Permalink:  ../3500.1052948416@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3500.1052948416@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, bruno@web1.greenpeace.org
  Subject: Re: [URGENT] Problems recovering database
  In-Reply-To: <3500.1052948416@sss.pgh.pa.us>
  References: <Pine.LNX.4.33.0305142240270.17455-100000@web1.greenpeace.org> <3500.1052948416@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