Call WaitLSNCleanup() in AbortTransaction()
Alexander Korotkov <akorotkov@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xact.c | modified | +6 −0 |
Discussion
- Re: [HACKERS] make async slave to wait for lsn to be replayed 113 messages · 2023-02-28 → 2024-09-17