Re: Pipeline mode and PQpipelineSync() - Mailing list pgsql-hackers

From Boris Kolpackov
Subject Re: Pipeline mode and PQpipelineSync()
Date
Msg-id boris.20210628145337@codesynthesis.com
Whole thread Raw
In response to Re: Pipeline mode and PQpipelineSync()  (Alvaro Herrera <alvaro.herrera@2ndquadrant.com>)
List pgsql-hackers
Alvaro Herrera <alvaro.herrera@2ndquadrant.com> writes:

> I forgot to mention:
> 
> > +    /* XXX useless without a flush ...? */
> > +    pqFlush(conn);
> > +
> > +    return 1;
> > +}
> 
> I'm not sure if it's a good idea for PQrequestFlush to itself flush
> libpq's buffer.  We can just document that PQflush is required ...
> opinions?

Yes, I think not calling PQflush() gives more flexibility. For example,
an application may "insert" them periodically after a certain number of
queries but call PQflush() at different intervals.



pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: pgindent run
Next
From: Daniel Gustafsson
Date:
Subject: Unbounded %s in sscanf