Re: Would a BGW need shmem_access or database_connection to enumerate databases?

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Chapman Flack <chap(at)anastigmatix(dot)net>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Would a BGW need shmem_access or database_connection to enumerate databases?
Date: 2017-12-14 23:47:52
Message-ID: CAB7nPqQozvFqg7veG5RHMYqav4Ve-zTcnX8Z00RFHWvdw56-NQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 15, 2017 at 8:12 AM, Chapman Flack <chap(at)anastigmatix(dot)net> wrote:
> On 12/04/2017 09:13 AM, Craig Ringer wrote:
>> On 1 December 2017 at 23:04, 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?
>>>
>> Yes. BDR does it a lot.
>
> Would this doc patch be acceptable to clarify that, in case
> I'm not the last person who might wonder?

This doc addition looks like a good idea to me.
--
Michael

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Craig Ringer 2017-12-15 00:49:10 Re: [HACKERS] Walsender timeouts and large transactions
Previous Message Chapman Flack 2017-12-14 23:12:35 Re: Would a BGW need shmem_access or database_connection to enumerate databases?