Fabien COELHO <coe...@cri.ensmp.fr> writes:
>> I didn't think about it too much, but I don't see why a user couldn't set
>> one of those error codes.
>> I did, however, think that any attempt to set an exit_code outside of
>> [0,127] would itself be an error, resulting in an exit code of 3.
> Hmmm. Maybe it should let the user shoots its own foot if desired, just a
> reminder in the doc of a possible interference with existing codes would
> be enough?
Yeah, I see no reason why scripts shouldn't be allowed to return one of
those codes if they like. We do need to constrain it to [0,127] for
sanity though, or possibly [0,125] --- doesn't POSIX mandate special
meaning for 126 and 127?
regards, tom lane
Sent via pgsql-hackers mailing list (firstname.lastname@example.org)
To make changes to your subscription: