pgsql: Remove the streaming files for incomplete xacts after restart.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove the streaming files for incomplete xacts after restart.
Date: 2023-01-07 06:59:47
Message-ID: E1pE3BD-002RdX-Ay@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove the streaming files for incomplete xacts after restart.

After restart, we try to stream the changes for large transactions that
were not sent before server crash and restart. However, we forget to send
the abort message for such transactions. This leads to spurious streaming
files on the subscriber which won't be cleaned till the apply worker or
the subscriber server restarts.

Reported-by: Dilip Kumar
Author: Hou Zhijie
Reviewed-by: Dilip Kumar and Amit Kapila
Backpatch-through: 14
Discussion: https://postgr.es/m/OS0PR01MB5716A773F46768A1B75BE24394FB9@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b2cc5b81001ad5e856d7316bab11f08ce1386d4b

Modified Files
--------------
src/backend/replication/logical/reorderbuffer.c | 4 ++++
1 file changed, 4 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2023-01-07 10:42:41 Re: pgsql: Fix calculation of which GENERATED columns need to be updated.
Previous Message David Rowley 2023-01-07 02:25:15 pgsql: Add additional regression tests for select_active_windows