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

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Chapman Flack <chap(at)anastigmatix(dot)net>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Would a BGW need shmem_access or database_connection to enumerate databases?
Date: 2017-12-01 19:11:31
Message-ID: CA+TgmoaWRaazLdK8_nMA-ECwfTe_RKjj5G1Me-GnB9SQ4fLV6Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-12-01 19:20:43 Re: [HACKERS] Custom compression methods
Previous Message Robert Haas 2017-12-01 19:08:34 Re: [HACKERS] Partition-wise aggregation/grouping