Ответ: how can i view deleted records?
От | Dan Black |
---|---|
Тема | Ответ: how can i view deleted records? |
Дата | |
Msg-id | 27f606250604292206p3d346cb4qee87d44796d83d41@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: how can i view deleted records? (Steve Atkins <steve@blighty.com>) |
Список | 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@blighty.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
В списке pgsql-general по дате отправления: