From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Call WaitLSNCleanup() in AbortTransaction()
Date: Sat, 06 Apr 2024 21:50:10 +0000
Message-ID: <E1rtDvN-000rUO-J4@gemulon.postgresql.org> (raw)
Call WaitLSNCleanup() in AbortTransaction()
Even though waiting for replay LSN happens without explicit transaction,
AbortTransaction() is responsible for the cleanup of the shared memory if
the error is thrown in a stored procedure. So, we need to do WaitLSNCleanup()
there to clean up after some unexpected error happened while waiting for
replay LSN.
Discussion: https://postgr.es/m/202404051815.eri4u5q6oj26%40alvherre.pgsql
Author: Alvaro Herrera
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/74eaf66f988c868deb0816bae4dd184eedae1448
Modified Files
--------------
src/backend/access/transam/xact.c | 6 ++++++
1 file changed, 6 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Call WaitLSNCleanup() in AbortTransaction()
In-Reply-To: <E1rtDvN-000rUO-J4@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox