pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove the streaming files for incomplete xacts after restart.
Date: Sat, 07 Jan 2023 06:59:47 +0000
Message-ID: <E1pE3BD-002RdU-AW@gemulon.postgresql.org> (raw)

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_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/18b81258ab60cdd172329fe80dd2314d587bd551

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



view thread (3+ messages)  latest in thread

Message-ID: <E1pE3BD-002RdU-AW@gemulon.postgresql.org>
Permalink:  ../E1pE3BD-002RdU-AW@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pE3BD-002RdU-AW@gemulon.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Remove the streaming files for incomplete xacts after restart.
  In-Reply-To: <E1pE3BD-002RdU-AW@gemulon.postgresql.org>
  References: <E1pE3BD-002RdU-AW@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