Re: Call pqPipelineFlush from PQsendFlushRequest

Поиск
Список
Период
Сортировка
От Jelte Fennema-Nio
Тема Re: Call pqPipelineFlush from PQsendFlushRequest
Дата
Msg-id CAGECzQTVLsLsgP2dHd53jaZyVnQqUo-Mryo2vtTDO8aQ2j2E0Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Call pqPipelineFlush from PQsendFlushRequest  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, 1 Feb 2024 at 21:00, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>        Note that the request is not itself flushed to the server automatically;
>        use <function>PQflush</function> if necessary.
>
> Doesn't that require some rewording?

I agree that the current wording is slightly incorrect, but I think I
prefer we keep it this way. The fact that we actually DO flush when
some internal buffer is filled up seems more like an implementation
detail, than behavior that people should actually be depending upon.
And even knowing the actual behavior, still the only way to know that
your data is flushed is by calling PQflush (since a user has no way of
checking if we automatically flushed the internal buffer).



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Make COPY format extendable: Extract COPY TO format implementations
Следующее
От: David Christensen
Дата:
Сообщение: Re: Adding comments to help understand psql hidden queries