Re: Documentation should state what happens, when a commit fails - Mailing list pgsql-docs

From David G. Johnston
Subject Re: Documentation should state what happens, when a commit fails
Date
Msg-id CAKFQuwYATsj3cY6gOu_yWxcm4qSEspNvmVm=nvXmYBs0vseHzw@mail.gmail.com
Whole thread Raw
In response to Documentation should state what happens, when a commit fails  (PG Doc comments form <noreply@postgresql.org>)
Responses Re: Documentation should state what happens, when a commit fails
List pgsql-docs
On Wed, May 28, 2025 at 7:47 AM mark maker <mark@makr.zone> wrote:

Wow, great improvement, thanks!

The "tutorial-transactions" opens a new question that might be useful to know: when a transaction enters the aborted state at an early point in time (as has now become clear), does this mean it will also relinquish any locks and predicate locks early, or will it still hold onto those until explicitly rolled back by command?


I suppose if the system knows there are no savepoints in progress it could release the locks and whatnot...not sure if it knows that and acts upon that knowledge if it does.  Easy enough to test with two psql sessions if you want to give it a go before I or someone else gets around to it.

David J.

pgsql-docs by date:

Previous
From: mark maker
Date:
Subject: RE: Documentation should state what happens, when a commit fails
Next
From: Dave Cramer
Date:
Subject: Re: Documentation should state what happens, when a commit fails