Re: Bug in wait time when waiting on nested subtransaction

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Bug in wait time when waiting on nested subtransaction
Дата
Msg-id CA+TgmoZDGjHdkZimZ-M3kpK6s3SQGwOEXtZmHqEorvttOFnrdg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bug in wait time when waiting on nested subtransaction  (Simon Riggs <simon.riggs@enterprisedb.com>)
Ответы Re: Bug in wait time when waiting on nested subtransaction  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Nov 28, 2022 at 2:45 PM Simon Riggs
<simon.riggs@enterprisedb.com> wrote:
> An easy point to confuse:
> "subtransaction to end": The subtransaction is "still running" to
> other backends even AFTER it has been subcommitted, but its state now
> transfers to the parent.
>
> So the subtransaction doesn't cease running until it aborts, one of
> its parent aborts or top level commit. The subxid lock should, on
> principle, exist until one of those events occurs. It doesn't, but
> that is an optimization, for the stated reason.

That's not what "running" means to me. Running means it's started and
hasn't yet committed or rolled back.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Bug in wait time when waiting on nested subtransaction
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: fixing CREATEROLE