Re: bgworker crashed or not? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bgworker crashed or not?
Date
Msg-id 32578.1391445943@sss.pgh.pa.us
Whole thread Raw
In response to Re: bgworker crashed or not?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Feb 3, 2014 at 11:29 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Agreed, but after further reflection it seems like if you've declared
>> a restart interval, then "done until restart interval" is probably the
>> common case.  So how about ...

> I think what I proposed is better for two reasons:

> 1. It doesn't change the meaning of exit(1) vs. 9.3.  All background
> worker code I've seen or heard about (which is admittedly not all
> there is) does exit(1) because the current exit(0) behavior doesn't
> seem to be what anyone wants.

Hm.  If that's actually the case, then I agree that preserving the
current behavior of exit(1) is useful.  I'd been assuming we were
breaking things anyway.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: bugfix patch for json_array_elements
Next
From: Robert Haas
Date:
Subject: Re: [PERFORM] encouraging index-only scans