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-18 20:09:29
Message-ID: f059dece-9c9c-4c75-a5db-74564b491227@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Fujii,

I see what you mean. For reviewing I started with writing a test that
just reproduces the bug and documents the current behaviour.

I expected that by applying your patch the test would fail, but then we
would just update the test accordingly. Surprisingly the test continues
to pass.

I attached the test for your consideration. I'll have a look again
tomorrow at both.

Kind regards,

Mircea Cadariu

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Akshat Jaimini 2025-11-18 20:19:46 Re: RFC: Logging plan of the running query
Previous Message Jacob Champion 2025-11-18 20:09:17 Post-release followup: pg_add_size_overflow()