Re: Walreceiver create temp slot more than once when timeline switch

From: Quan Zongliang <quanzongliang(at)yeah(dot)net>
To: cca5507 <cca5507(at)qq(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Walreceiver create temp slot more than once when timeline switch
Date: 2026-08-25 01:01:58
Message-ID: fd040b35-7fa4-4d9a-9210-d79ccd75d2e8@yeah.net
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 8/22/26 11:12 PM, cca5507 wrote:
> Fix
> ===
>
> Make sure that the walreceiver creates temp slot only once.
>
> Thoughts?
I think there is nothing wrong with the code of this patch.

Furthermore, if a log output is added before walrcv_create_slot(). This
might make the log more clear.

ereport(LOG, errmsg("creating replication slot \"%s\"", slotname));

The log will output:
2026-08-25 08:44:23.199 CST [27043] LOG: creating replication slot
"pg_walreceiver_####"

>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhijie Hou (Fujitsu) 2026-08-25 01:22:42 RE: apply worker misses closing partition leaves
Previous Message Quan Zongliang 2026-08-24 23:57:38 Re: Walreceiver create temp slot more than once when timeline switch