Re: new compiler warnings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: new compiler warnings
Date
Msg-id 6999.1318957287@sss.pgh.pa.us
Whole thread Raw
In response to Re: new compiler warnings  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: new compiler warnings
Re: new compiler warnings
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, Oct 18, 2011 at 12:26 PM, Tom Lane <tgl@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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Separating bgwriter and checkpointer
Next
From: Fujii Masao
Date:
Subject: Re: pg_ctl restart - behaviour based on wrong instance