Re: Regarding BGworkers - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Regarding BGworkers
Date
Msg-id 20130802044016.GH5669@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: Regarding BGworkers  (Amit Kapila <amit.kapila@huawei.com>)
Responses Re: Regarding BGworkers  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Amit Kapila escribió:
> 
> On Friday, August 02, 2013 4:19 AM Michael Paquier wrote:
> >On Fri, Aug 2, 2013 at 1:22 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> >> On Sun, Jul 28, 2013 at 1:26 AM, Amit kapila <amit.kapila@huawei.com> wrote:
> >>> 2. Shouldn't function
> >>> do_start_bgworker()/StartOneBackgroundWorker(void) be moved to
> >>> bgworker.c
> >>>    as similar functions AutoVacWorkerMain()/PgArchiverMain() are in
> >>> their respective files.
> 
> >> Yes, perhaps so.  Other votes?
> 
> > StartOneBackgroundWorker uses StartWorkerNeeded and HaveCrashedWorker, and
> > IMO, we should not expose that outside the postmaster. 
>   
>   How about exposing Set/Get for these from bgworker?

That seems more mess than just keeping that function in postmaster.c.
I agree with moving the other one.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Regarding BGworkers
Next
From: Bruce Momjian
Date:
Subject: Re: Should we automatically run duplicate_oids?