Re: new compiler warnings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: new compiler warnings
Дата
Msg-id 6999.1318957287@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: new compiler warnings  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: new compiler warnings
Re: new compiler warnings
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Separating bgwriter and checkpointer
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: pg_ctl restart - behaviour based on wrong instance