Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> a) print correct message and exit(1)
Which part of "no, you're not doing that" wasn't clear to you?
The error handling in this function should be no different from that
in the existing escaping functions. exit(1) is completely unacceptable.
regards, tom lane