Re: dynamic background workers, round two - Mailing list pgsql-hackers

From Robert Haas
Subject Re: dynamic background workers, round two
Date
Msg-id CA+TgmoY4Cf3m3sGNR9VxEXmm4AFjRNotL7Y3-WqHnk2rbNSb0A@mail.gmail.com
Whole thread Raw
In response to Re: dynamic background workers, round two  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Wed, Aug 28, 2013 at 2:04 PM, Robert Haas <robertmhaas@gmail.com> wrote:
>> Hm. Not this patches fault, but We seem to allow bgw_start_time ==
>> BgWorkerStart_PostmasterStart here which doesn't make sense...
>
> I can add a check for that.  I agree that it's a separate patch.

On third thought, is there really any point to such a check?  I mean,
no background worker is going to start before it's registered, and by
the time any background worker is registered, we'll be passed the time
indicated by all of those constants: BgWorkerStart_PostmasterStart,
BgWorkerStart_ConsistentState, BgWorkerStart_RecoveryFinished.

I think we should view that field as fixing the earliest time at which
the worker should be started, rather than the exact time at which it
must be started.  Otherwise no value is sensible.  And if we take that
approach, then for a dynamic background worker, any value is OK.

...Robert



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: dynamic background workers, round two
Next
From: Stephen Frost
Date:
Subject: Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review])