On 2014-04-16 11:37:47 -0400, Robert Haas wrote:
> > I think we probably also need a way to exit that's treated as an error,
> > but doesn't lead to a PANIC restart.
> 
> Why can't that be handled through ereport(ERROR/FATAL) rather than
> through the choice of exit status?  It seems to me that the only point
> of the exit status is or should be to provide feedback to the
> postmaster on how it should respond to the background worker's
> untimely demise.  If any other information needs to be conveyed, the
> worker should log that itself rather than trying to tell the
> postmaster what to log.

I dislike that because it essentially requires the bgworker to have a
full error catching environment like PostgresMain() has. That seems
bad for many cases.

Greetings,

Andres Freund

-- 
 Andres Freund                     http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to