Re: Allow some recovery parameters to be changed with reload - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Allow some recovery parameters to be changed with reload
Date
Msg-id 20200809052149.GB17986@paquier.xyz
Whole thread Raw
In response to Re: Allow some recovery parameters to be changed with reload  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Allow some recovery parameters to be changed with reload  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Wed, Aug 05, 2020 at 11:41:49AM -0400, Robert Haas wrote:
> On Sat, Mar 28, 2020 at 7:21 AM Sergei Kornilov <sk@zsrv.org> wrote:
>> So...
>> We call restore_command only when walreceiver is stopped.
>> We use restore_command only in startup process - so we have no race condition between processes.
>> We have some issues here? Or we can just make restore_command reloadable as attached?
>
> I don't see the problem here, either. Does anyone else see a problem,
> or some reason not to press forward with this?

Sorry for the late reply.  I have been looking at that stuff again,
and restore_command can be called in the context of a WAL sender
process within the page_read callback of logical decoding via
XLogReadDetermineTimeline(), as readTimeLineHistory() could look for a
timeline history file.  So restore_command is not used only in the
startup process.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: 回复:how to create index concurrently on partitioned table
Next
From: Asim Praveen
Date:
Subject: Re: Unnecessary delay in streaming replication due to replay lag