From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Call WaitLSNCleanup() in AbortTransaction() |
Date: | 2024-04-06 21:50:10 |
Message-ID: | E1rtDvN-000rUO-J4@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2024-04-06 21:57:14 | pgsql: BitmapHeapScan: postpone setting can_skip_fetch |
Previous Message | Tomas Vondra | 2024-04-06 20:58:32 | pgsql: BitmapHeapScan: begin scan after bitmap creation |