Michael Fuhr <mike@fuhr.org> writes:
>> I see this behavior back to at least 7.3. I'd guess it's because
>> strtol() indicates overflow by returning LONG_MAX and setting errno
>> to ERANGE, but the code doesn't check for that.
> Is this worth looking at for the upcoming dot releases?
Sure, send a patch ...
regards, tom lane