Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> It's a stretch that we'd ever support two billion arguments in any form,
> but an explicit check for "arg < 0" would make me feel better.
No objection here, especially since I've just determined that bug #6035
is also some kind of unhandled-overflow problem...
Do you want to take care of this one?
regards, tom lane