Re: How to undelete deleted data

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Abdul Wahab Dahalan <wahab(at)mimos(dot)my>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to undelete deleted data
Date: 2003-05-29 11:21:59
Message-ID: 20030529112159.GD11002@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, May 29, 2003 at 17:37:19 +0800,
Abdul Wahab Dahalan <wahab(at)mimos(dot)my> wrote:
> How can I undelete the deleted data from a table;

If you notice before you commit, you issue a rollback. Otherwise you need
to recover from backup. If you don't have a backup, then you might be
able to do some fancy stuff to see old tuples. If you are going to do
this you should shutdown the database and make a copy of what you have.
If you haven't done a vacuum since the delete, the old tuples should
still be stored in the database.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message C F 2003-05-29 16:05:56 Returning Multiple Values from CASE statement?
Previous Message Abdul Wahab Dahalan 2003-05-29 09:51:48 How To Recover Deleted Data