pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: Add libpq pipeline mode support to pgbench
Date: Fri, 9 Apr 2021 19:02:38 -0400
Message-ID: <20210409230238.GA32420@alvherre.pgsql> (raw)
In-Reply-To: <57c58502-f053-4058-81cb-840e6504b0a9@manitou-mail.org>

On 2021-Mar-17, Daniel Verite wrote:

> 	Fabien COELHO wrote:
> 
> > For consistency with the existing \if … \endif, ISTM that it could have 
> > been named \batch … \endbatch or \pipeline … \endpipeline?
> 
> "start" mirrors "end". To me, the analogy with \if-\endif is not
> obvious.
> Grammatically \if is meant to introduce the expression after it,
> whereas \startpipeline takes no argument.
> Functionally \startpipeline can be thought as "open the valve"
> and \endpipeline "close the valve". They're "call-to-action" kinds of
> commands, and in that sense quite different from the \if-\endif pair.

I forgot to reply to this, but I did consider the naming of these
commands before commit, and I tend to side with Daniel here.  I think
it's not totally unreasonable to have in the future another command
\syncpipeline which sends does PQpipelineSync(); if the commands are
\pipeline and \endpipeline then a \syncpipeline in the middle makes less
sense than if they are \startpipeline and \endpipeline.  I grant this is
quite subjective, though.

-- 
Álvaro Herrera       Valdivia, Chile





view thread (4+ messages)

Message-ID: <20210409230238.GA32420@alvherre.pgsql>
Permalink:  ../20210409230238.GA32420@alvherre.pgsql/
Also on:    postgresql.org/message-id/20210409230238.GA32420@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, daniel@manitou-mail.org, coelho@cri.ensmp.fr, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Add libpq pipeline mode support to pgbench
  In-Reply-To: <20210409230238.GA32420@alvherre.pgsql>
  References: <57c58502-f053-4058-81cb-840e6504b0a9@manitou-mail.org> <20210409230238.GA32420@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