pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jona <jonanews@orioninformationservices.com>
To: pgsql-admin@postgresql.org
Subject: Recover old record version
Date: Wed, 11 Aug 2004 15:45:47 +0200
Message-ID: <411A230B.4030405@orioninformationservices.com> (raw)

Hi,
One of our developers has just managed to make an UPDATE on a table 
without any WHERE clause to restrict it.
Thus a table with a few thousand records has suddenly become virtual 
identical.

Currently no VACUUM has been run on that table (or the database for that 
matter) thus it should be possible to recover an old version of the 
records, right?
I'm basing my assumption on the documentation which states that PostGre 
has better than row-level locking and keeps an old version of each 
record until a vacuum occours.

How would I go about recovering one of the old version for all the 
records ??

Please advice!

Cheers
Jona



Message-ID: <411A230B.4030405@orioninformationservices.com>
Permalink:  ../411A230B.4030405@orioninformationservices.com/
Also on:    postgresql.org/message-id/411A230B.4030405@orioninformationservices.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: jonanews@orioninformationservices.com
  Subject: Re: Recover old record version
  In-Reply-To: <411A230B.4030405@orioninformationservices.com>
  References: <411A230B.4030405@orioninformationservices.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