pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: 035_standby_logical_decoding might fail due to FATAL message lost inside libpq
Date: Sun, 28 Jun 2026 15:00:01 +0300
Message-ID: <d373830a-afde-4c49-bb2a-35fbc650423b@gmail.com> (raw)
In-Reply-To: <OS9PR01MB121495B5F41425738DE34E3B7F5EC2@OS9PR01MB12149.jpnprd01.prod.outlook.com>
References: <a50ff89b-fb2c-4912-8f89-50dd0bd0916b@gmail.com>
	<OS9PR01MB121491B8DEDE281FF6E16AB89F5082@OS9PR01MB12149.jpnprd01.prod.outlook.com>
	<c4ac949a-02cd-4bbd-b79d-8b93c11ae68b@gmail.com>
	<OS9PR01MB12149B91145ABFD81D0A6D642F5ED2@OS9PR01MB12149.jpnprd01.prod.outlook.com>
	<OS9PR01MB121495B5F41425738DE34E3B7F5EC2@OS9PR01MB12149.jpnprd01.prod.outlook.com>

Hello Kuroda-san,

25.06.2026 05:04, Hayato Kuroda (Fujitsu) wrote:
> While sleeping, I came up with the idea; instead of waiting until the slot is
> active, we can wait pg_recvlogical receives the ack from the walsender and enters
> the loop. Attached patch implemented like that.
>
> On my env, the patch could resolve the issue. How do you feel?

Thank you for the fix!

I agree with your idea -- It makes sense to me to modify make_slot_active()
so that it returns the handle of pg_recvlogical after it reaches the
desired state from its own perspective.

With the the above repro modification applied, the fixed test passes for
me too.

Best regards,
Alexander





view thread (12+ messages)  latest in thread

Message-ID: <d373830a-afde-4c49-bb2a-35fbc650423b@gmail.com>
Permalink:  ../d373830a-afde-4c49-bb2a-35fbc650423b@gmail.com/
Also on:    postgresql.org/message-id/d373830a-afde-4c49-bb2a-35fbc650423b@gmail.com

 · 

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-hackers@postgresql.org
  Cc: exclusion@gmail.com, kuroda.hayato@fujitsu.com
  Subject: Re: 035_standby_logical_decoding might fail due to FATAL message lost inside libpq
  In-Reply-To: <d373830a-afde-4c49-bb2a-35fbc650423b@gmail.com>
  References: <a50ff89b-fb2c-4912-8f89-50dd0bd0916b@gmail.com> <OS9PR01MB121491B8DEDE281FF6E16AB89F5082@OS9PR01MB12149.jpnprd01.prod.outlook.com> <c4ac949a-02cd-4bbd-b79d-8b93c11ae68b@gmail.com> <OS9PR01MB12149B91145ABFD81D0A6D642F5ED2@OS9PR01MB12149.jpnprd01.prod.outlook.com> <OS9PR01MB121495B5F41425738DE34E3B7F5EC2@OS9PR01MB12149.jpnprd01.prod.outlook.com> <d373830a-afde-4c49-bb2a-35fbc650423b@gmail.com>

* 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