Non-blocking synchronization in libpq using pipeline mode

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема Non-blocking synchronization in libpq using pipeline mode
Дата
Msg-id 170976853548.643.17571475764668611072@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: Non-blocking synchronization in libpq using pipeline mode  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/16/libpq-pipeline-mode.html
Description:

The calls to PQpipelineSync and PQsendFlushRequest may either report failure
or success, but not that data could not be written as of yet because the
request would block.

Does this mean that

1. these functions will always block when invoked and the socket is not
ready to accept the number of bytes that need to be written (assuming the
number of bytes required to be written is greater than one byte)

or

2. the synchronization or flush request need to be flushed manually with
successive PQflush calls

or

3. the functions will return an error condition when the connection is
non-blocking and no data could be written.

Any clarification in the documentation would be appreciated.

В списке pgsql-docs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: substring start position behavior
Следующее
От: PG Doc comments form
Дата:
Сообщение: Clarify pg_rewind behaviour in case of no divergence