pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zarko Susnjar <zharcos@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Rollback DELETE command using backup + WAL
Date: Tue, 18 Sep 2007 20:10:24 +0200
Message-ID: <e3c22d390709181110k25a518d0x5aec235ef39444f8@mail.gmail.com> (raw)

Hello,

I'm using PGSQL version 8.0

"Accidentally" I deleted around 40000 (it's exactly 44242) rows from one
table. Last backup (.sql) I made is 1 month old and probably only around
30000 records are there. After deleting records immediately I made a copy of
pgsql/data directory and i see that probably all of 10000 records I miss are
there ( 6 files from 0000000100000012000000C0 to 0000000100000012000000C6).

Is there any possible way to extract needed records from WAL files and in
combination with backup script restore all data which has been deleted?

Thanks in advance,
Zarko

Message-ID: <e3c22d390709181110k25a518d0x5aec235ef39444f8@mail.gmail.com>
Permalink:  ../e3c22d390709181110k25a518d0x5aec235ef39444f8@mail.gmail.com/
Also on:    postgresql.org/message-id/e3c22d390709181110k25a518d0x5aec235ef39444f8@mail.gmail.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-admin@postgresql.org
  Cc: zharcos@gmail.com
  Subject: Re: Rollback DELETE command using backup + WAL
  In-Reply-To: <e3c22d390709181110k25a518d0x5aec235ef39444f8@mail.gmail.com>
  References: <e3c22d390709181110k25a518d0x5aec235ef39444f8@mail.gmail.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