Re: Would a BGW need shmem_access or database_connection to enumerate databases? - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Would a BGW need shmem_access or database_connection to enumerate databases?
Date
Msg-id CAA4eK1+eKXUjr4SrgT0tzFd=y3dF42b7Db=T3uKSuTHZ5ur9sA@mail.gmail.com
Whole thread Raw
In response to Re: Would a BGW need shmem_access or database_connection to enumerate databases?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Sat, Dec 2, 2017 at 12:41 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Fri, Dec 1, 2017 at 10:04 AM, Chapman Flack <chap@anastigmatix.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


pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: Do we actually need an ItemId array on nbtree pages containingfixed-width tuples?
Next
From: Michael Paquier
Date:
Subject: Errands around AllocateDir()