pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Philip Geer <philg@gearcc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Lost pg_xlog pgclog
Date: Wed, 26 Mar 2003 09:40:43 -0500
Message-ID: <4837.1048689643@sss.pgh.pa.us> (raw)
In-Reply-To: <007701c2f2db$a2297220$9e51210a@administrator>
References: <007701c2f2db$a2297220$9e51210a@administrator>

"Philip Geer" <philg@gearcc.com> writes:
> I had move my pgxlog and pgclog files to a drive of their own and that driv=
> e crashed with no chance of data recovery. This is not a production server =
> so its not that big of a deal but I would like to recover the databases tha=
> t the server had on it but ever time I start postmaster I get the following=
>  error.=20

You could try running pg_resetxlog (see contrib if pre-7.3; in 7.3 it's
standard).  That should let you start the database, but keep in mind
that any transactions completed shortly before the crash might be
missing or partially applied.  Don't trust the data too much until
you've checked it.  And definitely do a dump and reload...

			regards, tom lane




view thread (2+ messages)

Message-ID: <4837.1048689643@sss.pgh.pa.us>
Permalink:  ../4837.1048689643@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4837.1048689643@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, philg@gearcc.com
  Subject: Re: Lost pg_xlog pgclog
  In-Reply-To: <4837.1048689643@sss.pgh.pa.us>
  References: <007701c2f2db$a2297220$9e51210a@administrator> <4837.1048689643@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