Re: delete - is there any way to recover rows deleted from a table.

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: delete - is there any way to recover rows deleted from a table.
Дата
Msg-id 3AB6683E.5D0C3FEE@tm.ee
обсуждение исходный текст
Ответ на delete - is there any way to recover rows deleted from a table.  ("Yiming Huang" <yiming.huang@parallel.ltd.uk>)
Список pgsql-docs
Yiming Huang wrote:
>
> Hi,
>
> I was told that a delete command does not delete  data from a table
> physically.  Is it correct? If it is true, could anyone to tell me whether
> there is a way to recover to data deleted from a table?

In the "original" postgres (not postgreSQL) you could just tell the
backent
the time interval you were interested in retrieveing.

Currently It is not so easy, But the data is physically in the tables
until
you do a VACUUM;

If you are desparate, I can send you some python code to get all data
(both
deleted and not) from the table. It gives you raw tuples - you have to
write
code to extract fields from tuples yourself.

---------------
Hannu

В списке pgsql-docs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: suggestion for admin "If you are upgrading"
Следующее
От: Tom Lane
Дата:
Сообщение: src/test/regress/README duplicates SGML material