Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication

From: Mircea Cadariu <cadariu(dot)mircea(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication
Date: 2025-11-19 14:36:56
Message-ID: 1c72ff71-cca5-4d72-8ab5-5954b1674c2c@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Update: I added another test to the attached test-only patch. This new
test uses pg_terminate_backend to trigger reconnection.

Assuming the tests are fully correct (your input appreciated on this) we
can use them to validate the solution.

Kind regards,

Mircea Cadariu

Attachment Content-Type Size
v1-0001-Test-demonstrating-pg_recvlogical-receives-duplic.patch text/plain 4.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2025-11-19 14:54:02 Re: pg_recvlogical: Prevent flushed data from being re-sent after restarting replication
Previous Message Daniel Gustafsson 2025-11-19 14:18:51 Re: [PATCH] Add hints for invalid binary encoding names in encode/decode functions