Re: Tuples inserted and deleted by the same transaction

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Tuples inserted and deleted by the same transaction
Дата
Msg-id 2031521.1663076724@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Tuples inserted and deleted by the same transaction  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Tuples inserted and deleted by the same transaction  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
Список pgsql-hackers
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> But once they are deleted or updated, even the transaction that created them cannot
> see them any more, right?

I would not trust that claim very far.  The transaction might have active
snapshots with a command ID between the times of insertion and deletion.
(Consider a query that is firing triggers as it goes, and the triggers
are performing new actions that cause the command counter to advance.
The outer query should not see the results of those actions.)

            regards, tom lane



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

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: Avoid redudant initialization and possible memory leak (src/backend/parser/parse_relation.c)
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: is_superuser is not documented