Michael Fuhr <mike(at)fuhr(dot)org> writes:
> I usually check both in my own code but I noticed several places
> where PostgreSQL doesn't, so I kept that style. I'll check both
> if that's preferred.
I'd say not --- it's more code and it makes a possibly unwarranted
assumption about strtol's behavior.
regards, tom lane