On Tue, Aug 13, 2013 at 8:07 PM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> On Tue, Aug 13, 2013 at 11:59 PM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
>> maybe_start_bgworker() in postmaster.c
>> do_start_bgworker() in postmaster.c
>> StartBackgroundWorker() in bgworker.c
> This formulation is fine, thanks. Instead of maybe_start_bgworker,
> what about start_bgworker_if_necessary?
I think Alvaro's suggestion is better. It's shorter, and makes clear
that at most one will be started.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company