Re: pgsql: walreceiver uses a temporary replication slot by default - Mailing list pgsql-hackers

From Sergei Kornilov
Subject Re: pgsql: walreceiver uses a temporary replication slot by default
Date
Msg-id 753391579708726@iva3-77ae5995f07f.qloud-c.yandex.net
Whole thread Raw
In response to Re: pgsql: walreceiver uses a temporary replication slot by default  (Michael Paquier <michael@paquier.xyz>)
Responses Re: pgsql: walreceiver uses a temporary replication slot by default  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hello

> In short, the following things:
> - wal_receiver_create_temp_slot should be made PGC_POSTMASTER,
> similarly to primary_slot_name and primary_conninfo.
> - WalReceiverMain() should not load the parameter from the GUC context
> by itself.
> - RequestXLogStreaming(), called by the startup process, should be in
> charge of defining if a temp slot should be used or not.

I would like to cross-post here a patch with such changes that I posted in "allow online change primary_conninfo"
thread.
This thread is more appropriate for discussion about wal_receiver_create_temp_slot.

PS: I posted this patch in both threads mostly to make cfbot happy.

regards, Sergei
Attachment

pgsql-hackers by date:

Previous
From: Sergei Kornilov
Date:
Subject: Re: allow online change primary_conninfo
Next
From: Dmitry Dolgov
Date:
Subject: Re: Index Skip Scan