pgsql: Refactoring for CommitTransactionCommand()/AbortCurrentTransacti - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Refactoring for CommitTransactionCommand()/AbortCurrentTransacti
Date
Msg-id E1rxD76-002Ytj-57@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Remove GlobalVisTestNonRemovable[Full]Horizon, not used anymore
Next
From: Amit Langote
Date:
Subject: pgsql: SQL/JSON: Fix issues with DEFAULT .. ON ERROR / EMPTY