Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 24, 2023 at 12:56 PM David Wheeler <hippysoyboy@xxxxxxxxx> wrote:


On 25 Apr 2023, at 1:47 am, David G. Johnston <david.g.johnston@xxxxxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux