On Sat, Dec 2, 2017 at 12:41 AM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Fri, Dec 1, 2017 at 10:04 AM, Chapman Flack <chap(at)anastigmatix(dot)net> wrote:
>> Can I call RegisterDynamicBackgroundWorker when not in the postmaster,
>> but also not in a "regular backend", but rather another BGW?
>
> I believe that doing it from another BGW works fine.
>
I think we are already doing it that way in autoprewarm
(src/contrib/pg_prewarm/autoprewarm.c).
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com