pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Boris Kolpackov <boris@codesynthesis.com>
To: Alvaro Herrera <alvaro.herrera@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Pipeline mode and PQpipelineSync()
Date: Mon, 28 Jun 2021 14:56:43 +0200
Message-ID: <boris.20210628145337@codesynthesis.com> (raw)
In-Reply-To: <202106252352.5ca4byasfun5@alvherre.pgsql>
References: <202106252350.t76x73nt643j@alvherre.pgsql>
	<202106252352.5ca4byasfun5@alvherre.pgsql>

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.





view thread (41+ messages)  latest in thread

Message-ID: <boris.20210628145337@codesynthesis.com>
Permalink:  ../boris.20210628145337@codesynthesis.com/
Also on:    postgresql.org/message-id/boris.20210628145337@codesynthesis.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: boris@codesynthesis.com, alvaro.herrera@2ndquadrant.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: Pipeline mode and PQpipelineSync()
  In-Reply-To: <boris.20210628145337@codesynthesis.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox