pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: brunormr <brunormr@bol.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Help to restore lost database
Date: Wed, 26 Jun 2002 09:42:23 -0400
Message-ID: <1833.1025098943@sss.pgh.pa.us> (raw)
In-Reply-To: <GYAG91$ILF30yHYwmtL_XFCGueBP3f0i29jM2d2WOlmMCr@bol.com.br>
References: <GYAG91$ILF30yHYwmtL_XFCGueBP3f0i29jM2d2WOlmMCr@bol.com.br>

"brunormr" <brunormr@bol.com.br> writes:
>   I erased the files (000000000000 and
> 000000000001) that were im the pg_xlog
> folder into the data directory of
> pgsql.

A piece of advice: if you don't know what a file is for, don't remove
it.

>   I have all the other files of the
> database and I want to restore the
> data, but I hadn't made a backup (a
> dump). Is there a way to restore the
> files on the pg_xlog with the other
> files or to save the data from the
> database?

If the postmaster was shut down at the time, then running
contrib/pg_resetxlog should get you out of trouble.

			regards, tom lane





view thread (2+ messages)

Message-ID: <1833.1025098943@sss.pgh.pa.us>
Permalink:  ../1833.1025098943@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1833.1025098943@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, brunormr@bol.com.br
  Subject: Re: Help to restore lost database
  In-Reply-To: <1833.1025098943@sss.pgh.pa.us>
  References: <GYAG91$ILF30yHYwmtL_XFCGueBP3f0i29jM2d2WOlmMCr@bol.com.br> <1833.1025098943@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