pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvaro.herrera@2ndquadrant.com>
To: Boris Kolpackov <boris@codesynthesis.com>
Cc: pgsql-hackers@lists.postgresql.org, Michael Paquier <michael@paquier.xyz>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Peter Geoghegan <pg@bowt.ie>
Subject: Re: Pipeline mode and PQpipelineSync()
Date: Thu, 8 Jul 2021 14:15:49 -0400
Message-ID: <202107081815.ne6nsoeox32x@alvherre.pgsql> (raw)
In-Reply-To: <202107081729.osyyji4ewzjk@alvherre.pgsql>

Looking at this again, I noticed that I could probably do away with the
switch on pipelineStatus, and just call pqPipelineProcessQueue in all
cases when appending commands to the queue; I *think* that will do the
right thing in all cases.  *Except* that I don't know what will happen
if the program is in the middle of processing a result in single-row
mode, and then sends another query: that would wipe out the pending
results of the query being processed ...  but maybe that problem can
already occur in some other way.

I'll have to write some more tests in libpq_pipeline to verify this.

-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/
"Java is clearly an example of money oriented programming"  (A. Stepanov)





view thread (41+ messages)  latest in thread

Message-ID: <202107081815.ne6nsoeox32x@alvherre.pgsql>
Permalink:  ../202107081815.ne6nsoeox32x@alvherre.pgsql/
Also on:    postgresql.org/message-id/202107081815.ne6nsoeox32x@alvherre.pgsql

 · 

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: alvaro.herrera@2ndquadrant.com, boris@codesynthesis.com, michael@paquier.xyz, andrew@dunslane.net, pg@bowt.ie
  Subject: Re: Pipeline mode and PQpipelineSync()
  In-Reply-To: <202107081815.ne6nsoeox32x@alvherre.pgsql>

* 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