Re: [HACKERS] error handling in RegisterBackgroundWorker - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [HACKERS] error handling in RegisterBackgroundWorker
Date
Msg-id e9ae7eca-d8cd-00a5-26be-ad2ec1647259@2ndquadrant.com
Whole thread Raw
In response to Re: [HACKERS] error handling in RegisterBackgroundWorker  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [HACKERS] error handling in RegisterBackgroundWorker  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On 2/15/17 12:11, Robert Haas wrote:
> On Wed, Feb 15, 2017 at 11:30 AM, Peter Eisentraut
> <peter.eisentraut@2ndquadrant.com> wrote:
>> If RegisterBackgroundWorker() (the non-dynamic kind that is only
>> loadable from shared_preload_libraries) fails to register the worker, it
>> writes a log message and proceeds, ignoring the registration request.  I
>> think that is a mistake, it should be a hard error.  The only way in
>> practice to fix the problem is to change shared_preload_libraries or
>> max_worker_processes, both requiring a restart anyway, so proceeding
>> without the worker is not useful.
> 
> I guess the question is whether people will prefer to have the
> database start up and be missing the worker, or to have it not start.
> As you point out, the former is likely to result in an eventual
> restart, but the latter may lead to a longer period of downtime RIGHT
> NOW.  People tend to really hate things that make the database not
> start, so I'm not sure what's best here.

Any other thoughts on this?  Seems like a potential usability issue.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Ashutosh Sharma
Date:
Subject: Re: [HACKERS] pageinspect and hash indexes
Next
From: Peter Eisentraut
Date:
Subject: Re: [HACKERS] increasing the default WAL segment size