Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> Which it seems to me we could change by doing rc = write(). Then
> if rc <= 0, we bail out. If not, we add and subtract rc, rather
> than PIPE_MAX_PAYLOAD.
Something along the general lines of this?:
http://archives.postgresql.org/pgsql-hackers/2011-02/msg01719.php
> That would be barely more code, probably safer, and would silence
> the warning.
Exactly.
-Kevin