Re: what happens if a failed transaction is not rolled back?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: what happens if a failed transaction is not rolled back?
Дата
Msg-id CAKFQuwZ+i6LMi0DyD6=H_FrmbErpK7q39Tq7GypZ_6FZ6FRNFw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: what happens if a failed transaction is not rolled back?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: what happens if a failed transaction is not rolled back?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Mon, Apr 24, 2023 at 12:56 PM David Wheeler <hippysoyboy@gmail.com> wrote:


On 25 Apr 2023, at 1:47 am, David G. Johnston <david.g.johnston@gmail.com> wrote:

There isn't anything special about a failed transaction compared to any other transaction that you leave open.

Now I’m curious. Does it have the same impact on performance that an idle in transaction connection has? Eg does it prevent vacuum? Does it still hold locks?

 
Absent documentation to the contrary I would expect the system to at best be in an idle-in-transaction state as-if the failed command never was executed.  The concept of savepoints, whether in use in a particular transaction, would require at least that much state be preserved.

David J.

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

Предыдущее
От: David Wheeler
Дата:
Сообщение: Re: what happens if a failed transaction is not rolled back?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: what happens if a failed transaction is not rolled back?