Re: archive modules - Mailing list pgsql-hackers

From Bossart, Nathan
Subject Re: archive modules
Date
Msg-id EEE89F96-BF41-4DE5-A0EA-8C8BD23BDEE5@amazon.com
Whole thread Raw
In response to Re: archive modules  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: archive modules
List pgsql-hackers
On 11/2/21, 8:57 AM, "Robert Haas" <robertmhaas@gmail.com> wrote:
> On Tue, Nov 2, 2021 at 11:26 AM Bossart, Nathan <bossartn@amazon.com> wrote:
>> Well, the current patch does require a reload since the modules are
>> preloaded, but maybe there is some way to avoid that.
>
> I think we could set things up so that if the value changes, you call
> a shutdown hook for the old library, load the new one, and call any
> startup hook for that one.

Yes, that seems doable.  My point is that I've intentionally chosen to
preload the libraries at the moment so that it's possible to define
PGC_POSTMASTER GUCs and to use RegisterBackgroundWorker().  If we
think that switching archive modules without restarting is more
important, I believe we will need to take on a few restrictions.

Nathan


pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: should we enable log_checkpoints out of the box?
Next
From: Robert Haas
Date:
Subject: Re: archive modules