Bruce Momjian <bruce@momjian.us> writes:
> I modified your patch, attached, that I would like to apply to all
> supported versions.
This seems to have lost the information about what to do if these
functions fail. I think probably the only possible failure cause
in nonblock mode is "unable to enlarge the buffer because OOM",
but that's certainly not the same thing as "cannot fail".
regards, tom lane