pgsql: Refactoring for CommitTransactionCommand()/AbortCurrentTransacti

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Refactoring for CommitTransactionCommand()/AbortCurrentTransacti
Дата
Msg-id E1rxD76-002Ytj-57@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Remove GlobalVisTestNonRemovable[Full]Horizon, not used anymore
Следующее
От: Amit Langote
Дата:
Сообщение: pgsql: SQL/JSON: Fix issues with DEFAULT .. ON ERROR / EMPTY