]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove the streaming files for incomplete xacts after restart.
authorAmit Kapila <akapila@postgresql.org>
Sat, 7 Jan 2023 06:22:41 +0000 (11:52 +0530)
committerAmit Kapila <akapila@postgresql.org>
Sat, 7 Jan 2023 06:22:41 +0000 (11:52 +0530)
commitb2cc5b81001ad5e856d7316bab11f08ce1386d4b
tree32c3bdd1e6494afe7b0b5a715532f61ce99b14a0
parent48599a18d07999c7503b9f47ec43c0f19b603001
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
src/backend/replication/logical/reorderbuffer.c