Robert Haas <robertmh...@gmail.com> writes:
> On Tue, Oct 18, 2011 at 12:26 PM, Tom Lane <t...@sss.pgh.pa.us> wrote:
>> And it would break the code.  The whole point here is that the message
>> must be sent indivisibly.

> How is that different than the chunking that the while loop is already doing?

The chunks are sent indivisibly, because they are less than the pipe
buffer size.  Read the pipe man page.  It's guaranteed that the write
will either succeed or fail as a whole, not write a partial message.
If we cared to retry a failure, there would be some point in checking
the return code.

                        regards, tom lane

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to