Re: Call pqPipelineFlush from PQsendFlushRequest - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Call pqPipelineFlush from PQsendFlushRequest
Date
Msg-id CAGECzQTVLsLsgP2dHd53jaZyVnQqUo-Mryo2vtTDO8aQ2j2E0Q@mail.gmail.com
Whole thread Raw
In response to Re: Call pqPipelineFlush from PQsendFlushRequest  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations
Next
From: David Christensen
Date:
Subject: Re: Adding comments to help understand psql hidden queries