Ответ: how can i view deleted records?

From: "Dan Black" <fireworker(at)gmail(dot)com>
To: "pgsql general" <pgsql-general(at)postgresql(dot)org>
Subject: Ответ: how can i view deleted records?
Date: 2006-04-30 05:06:13
Message-ID: 27f606250604292206p3d346cb4qee87d44796d83d41@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks. I thought that there are some standard utilities or
sql request in postgres to view deleted or modified tuples.

2006/4/30, Steve Atkins <steve(at)blighty(dot)com>:
>
> On Apr 29, 2006, at 4:18 PM, Robby Russell wrote:
>
> >
> > On Apr 29, 2006, at 12:49 PM, Dan Black wrote:
> >
> >> Hello, everybody!
> >> How can I view deleted records in table?
> >
> > SELECT * FROM recycle_bin;
> >
> > ;-)
> >
> > Just kidding... once you delete your records... they are gone.
>
> That's.... not true.
>
> Deleted (or modified) records don't go away until the space
> they use is recycled by the VACUUM command.
>
> However, there's no support in postgresql for any sort of
> "time travel", including viewing deleted tuples. The data
> is there on the disk, but there is no clean way to view it
> via the database.
>
> It's certainly not something a DBA should even think about
> (outside of security issues) but deleted tuples are available
> in a forensics situation, as long as vacuum hasn't been run.
>
> Cheers,
> Steve
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

--
Verba volent, scripta manent
Dan Black

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2006-04-30 10:33:04 Re: how can i view deleted records?
Previous Message Steve Atkins 2006-04-30 02:05:35 Re: how can i view deleted records?