pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Marek Nowiński <marek.nowinski@medycynarodzinna.pl>
Cc: pgsql-general@postgresql.org
Subject: Re: HELP
Date: Fri, 09 Jul 2004 08:03:07 +0100
Message-ID: <40EE432B.5020505@archonet.com> (raw)
In-Reply-To: <NFBBKGPGJCLCPJCMDMJFAEBIEHAA.marek.nowinski@medycynarodzinna.pl>
References: <NFBBKGPGJCLCPJCMDMJFAEBIEHAA.marek.nowinski@medycynarodzinna.pl>

Marek Nowiński wrote:
> I accidentaly deleted over 1.000.000 records from one table in my
> database. Is there any way to recover them? Please help me as soon
> as possible...
> 
> After the records were deleted, no other operation was made on the
> database. In fact, all the postgres services were shut down.
> I found a xlog file containing those records but I don't know the
> structure of this file.
> This is Postgres 7.2.1 on Mandrake 8.1

Well - you'll probably need to wait until a developer can make a 
suggestion to get your data back. However, I do know enough to say that 
your data will still be there - so long as no further action takes place 
you'll be alright.

You'll probably want to take a backup of your whole .../data/ directory 
to be on the safe side. At a guess, it might be enough to rewind your 
current transaction-id and pg_dump that table, but I'm really out of my 
depth here.

-- 
   Richard Huxton
   Archonet Ltd



view thread (69+ messages)  latest in thread

Message-ID: <40EE432B.5020505@archonet.com>
Permalink:  ../40EE432B.5020505@archonet.com/
Also on:    postgresql.org/message-id/40EE432B.5020505@archonet.com

 · 

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-general@postgresql.org
  Cc: dev@archonet.com, marek.nowinski@medycynarodzinna.pl
  Subject: Re: HELP
  In-Reply-To: <40EE432B.5020505@archonet.com>
  References: <NFBBKGPGJCLCPJCMDMJFAEBIEHAA.marek.nowinski@medycynarodzinna.pl> <40EE432B.5020505@archonet.com>

* 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