Re: How does PostgreSQL recognise "deleted" tuples by using xmax ?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: How does PostgreSQL recognise "deleted" tuples by using xmax ?
Дата
Msg-id 20091027073813.GA22746@svana.org
обсуждение исходный текст
Ответ на How does PostgreSQL recognise "deleted" tuples by using xmax ?  (纪晓曦 <sheepjxx@gmail.com>)
Список pgsql-general
On Tue, Oct 27, 2009 at 03:55:39PM +1100, ????????? wrote:
> How does PostgreSQL recognise "deleted" tuples by using xmax ?

xmax is the ID of the transaction that deleted the row. So if you are
in a transaction that sees that transaction as commited, it has been
deleted (from your point of view). If from your point of view that
transaction is aborted, it has not been deleted. If that transaction is
not finished yet, you have to wait.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Вложения

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Implementing Frontend/Backend Protocol TCP/IP
Следующее
От: Raimon Fernandez
Дата:
Сообщение: Re: Implementing Frontend/Backend Protocol TCP/IP