From: | mark maker <mark(at)makr(dot)zone> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
Cc: | "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org> |
Subject: | RE: Documentation should state what happens, when a commit fails |
Date: | 2025-05-28 14:47:25 |
Message-ID: | 248747ba-1626-4840-8106-f9598275616f@makr.zone |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
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?
_Mark
*From:* David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
*Sent:* Wednesday, May 28, 2025 at 4:04 PM UTC+2
*To:* Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
*Cc:* mark(at)makr(dot)zone <mark(at)makr(dot)zone>, pgsql-docs(at)lists(dot)postgresql(dot)org
<pgsql-docs(at)lists(dot)postgresql(dot)org>
*Subject:* RE: Documentation should state what happens, when a commit fails
> On Wednesday, May 28, 2025, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> wrote:
>
> On Wed, 2025-05-28 at 08:08 +0000, PG Doc comments form wrote:
> > The following documentation comment has been logged on the website:
> >
> > Page: https://www.postgresql.org/docs/17/sql-commit.html
> <https://www.postgresql.org/docs/17/sql-commit.html>
> > Description:
> >
> > Deferrable constraints, deadlocks and possibly other deferred or
> lazily
> > evaluated rules are checked upon commit.
> > What happens if they are not met and the commit statement fails?
> Does the
> > transaction then implicitly rollback? Or do I need an explicit
> rollback?
>
> I think it would be good to mention that a failed COMMIT automatically
> performs a ROLLBACK. Do you want to suggest a patch?
>
>
> Feel free to review mine for this topic and suggest additions.
>
> https://commitfest.postgresql.org/patch/5546/
>
> David J.
>
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2025-05-28 14:59:10 | Re: Documentation should state what happens, when a commit fails |
Previous Message | David G. Johnston | 2025-05-28 14:04:45 | Re: Documentation should state what happens, when a commit fails |