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

From Alvaro Herrera
Subject Re: Call pqPipelineFlush from PQsendFlushRequest
Date
Msg-id 202311071143.esaw2i2krha3@alvherre.pgsql
Whole thread Raw
In response to Re: Call pqPipelineFlush from PQsendFlushRequest  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Call pqPipelineFlush from PQsendFlushRequest
List pgsql-hackers
On 2023-Nov-07, Michael Paquier wrote:

> On Tue, Nov 07, 2023 at 10:38:04AM +0100, Jelte Fennema-Nio wrote:
> > In pipeline mode after queuing a message to be sent we would flush the
> > buffer if the size of the buffer passed some threshold. The only message
> > type that we didn't do that for was the Flush message. This addresses
> > that oversight.
> > 
> > I noticed this discrepancy while reviewing the
> > PQsendSyncMessage/PQpipelinePutSync patchset.
> 
> Indeed, it looks a bit strange that there is no flush if the buffer
> threshold is reached once the message is sent, so your suggestion
> sounds right.  Alvaro?

I agree, and I intend to get this patch pushed once the release freeze
is lifted.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"The Gord often wonders why people threaten never to come back after they've
been told never to return" (www.actsofgord.com)



pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: collect_corrupt_items_vacuum.patch
Next
From: Matthias van de Meent
Date:
Subject: Re: RFC: Pluggable TOAST