Chris Jones <chris(at)mt(dot)sri(dot)com> writes:
> If write didn't return -1, it shouldn't have set errno. A short write
> count isn't an error condition.
On disk files it certainly is; there's no non-error reason to do that,
and AFAICS no reason for the application to try again.
regards, tom lane