Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMSId-0004Lj-5W for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Mar 2021 09:17:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lMSIc-0004Dv-49 for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Mar 2021 09:17:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMSIb-0004Do-Td for pgsql-hackers@lists.postgresql.org; Wed, 17 Mar 2021 09:17:05 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lMSIZ-0002dh-4I for pgsql-hackers@lists.postgresql.org; Wed, 17 Mar 2021 09:17:05 +0000 Received: from petersbourg.cri.ensmp.fr (petersbourg.cri.ensmp.fr [10.2.14.5]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id A9C16C0374; Wed, 17 Mar 2021 10:18:26 +0100 (CET) Date: Wed, 17 Mar 2021 10:17:01 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Alvaro Herrera , daniel@manitou-mail.org cc: PostgreSQL Developers Subject: Re: pgsql: Add libpq pipeline mode support to pgbench In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="2056645051-102119843-1615967817=:1011208" Content-ID: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2056645051-102119843-1615967817=:1011208 Content-Type: text/plain; CHARSET=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: 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é > Reviewed-by: Álvaro Herrera > 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. --2056645051-102119843-1615967817=:1011208--