From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Refactoring for CommitTransactionCommand()/AbortCurrentTransacti |
Date: | 2024-04-17 21:46:44 |
Message-ID: | E1rxD76-002Ytj-57@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Refactoring for CommitTransactionCommand()/AbortCurrentTransaction()
fefd9a3fed turned tail recursion of CommitTransactionCommand() and
AbortCurrentTransaction() into iteration. However, it splits the handling of
cases between different functions.
This commit puts the handling of all the cases into
AbortCurrentTransactionInternal() and CommitTransactionCommandInternal().
Now CommitTransactionCommand() and AbortCurrentTransaction() are just doing
the repeated calls of internal functions.
Reported-by: Andres Freund
Discussion: https://postgr.es/m/20240415224834.w6piwtefskoh32mv%40awork3.anarazel.de
Author: Andres Freund
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/40126ac68f2ff96351cd6071350eb2d5cbd50145
Modified Files
--------------
src/backend/access/transam/xact.c | 155 +++++++++++++++++---------------------
1 file changed, 71 insertions(+), 84 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2024-04-17 23:00:02 | Re: pgsql: meson: Add initial version of meson based build system |
Previous Message | Andres Freund | 2024-04-17 18:52:52 | pgsql: Remove GlobalVisTestNonRemovable[Full]Horizon, not used anymore |