pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: daniel@manitou-mail.org
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: Add libpq pipeline mode support to pgbench
Date: Wed, 17 Mar 2021 10:17:01 +0100 (CET)
Message-ID: <alpine.DEB.2.22.394.2103170856400.1011208@pseudo> (raw)
In-Reply-To: <E1lLurm-0007PN-HP@gemulon.postgresql.org>
References: <E1lLurm-0007PN-HP@gemulon.postgresql.org>


Bonjour Daniel, Ola Alvaro,

> Add libpq pipeline mode support to pgbench
>
> New metacommands \startpipeline and \endpipeline allow the user to run
> queries in libpq pipeline mode.
>
> Author: Daniel Vérité <daniel@manitou-mail.org>
> Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
> Discussion: https://postgr.es/m/b4e34135-2bd9-4b8a-94ca-27d760da26d7@manitou-mail.org

I did not notice that the libpq pipeline mode thread had a pgbench patch 
attached, otherwise I would have looked at it.

Some minor post-commit comments:

For consistency with the existing \if … \endif, ISTM that it could have 
been named \batch … \endbatch or \pipeline … \endpipeline?

ISTM that the constraint checks (nesting, no \[ag]set) could be added to 
CheckConditional that could be renamed to CheckScript. That could allow to 
simplify the checks in the command execution as mere Asserts.

-- 
Fabien.

view thread (4+ messages)  latest in thread

Message-ID: <alpine.DEB.2.22.394.2103170856400.1011208@pseudo>
Permalink:  ../alpine.DEB.2.22.394.2103170856400.1011208@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.22.394.2103170856400.1011208@pseudo

 · 

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: coelho@cri.ensmp.fr, alvherre@alvh.no-ip.org, daniel@manitou-mail.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Add libpq pipeline mode support to pgbench
  In-Reply-To: <alpine.DEB.2.22.394.2103170856400.1011208@pseudo>
  References: <E1lLurm-0007PN-HP@gemulon.postgresql.org> <alpine.DEB.2.22.394.2103170856400.1011208@pseudo>

* 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