Re: Using xmax to detect deleted rows

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Using xmax to detect deleted rows
Дата
Msg-id 20160108150209.GA583343@alvherre.pgsql
обсуждение исходный текст
Ответ на Using xmax to detect deleted rows  (Meel Velliste <meel.velliste@gmail.com>)
Ответы Re: Using xmax to detect deleted rows  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-general
Meel Velliste wrote:
> I would like to use the "xmax" column to detect rows that have been
> recently deleted. Is it possible to get the deleted row versions with
> non-zero xmax to remain visible long enough that I could periodically
> check, say once an hour, and still be able to see rows that were deleted
> since I last checked?

No.  Maybe you want a trigger that saves the deleted row somewhere (a
separate table perhaps) which you can later inspect and delete again?

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Meel Velliste
Дата:
Сообщение: Using xmax to detect deleted rows
Следующее
От: Deven Phillips
Дата:
Сообщение: PostgreSQL 9.5, mysql_fdw, and IMPORT FOREIGN SCHEMA question