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 1lV09L-0000Zn-Ks for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Apr 2021 23:02:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lV09J-0003JJ-Nq for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Apr 2021 23:02:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lV09J-0003JC-H1 for pgsql-hackers@lists.postgresql.org; Fri, 09 Apr 2021 23:02:49 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lV09D-0004Yl-BX for pgsql-hackers@lists.postgresql.org; Fri, 09 Apr 2021 23:02:48 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 726235C009E; Fri, 9 Apr 2021 19:02:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Fri, 09 Apr 2021 19:02:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=M1Cu+8TagNUu4Ro7mc23D+qMrpNtSb/YEROYry+A5vI=; b=bXoSu0X3 QNcEzwPTaMfC9U+7vrl2fTPX+tzS+QH1xO7nUvWLx3Ww0xEizePqx9ckohs21Wz9 p+0W8GigNy9d7WlgBuzvt+9TNUVc9MfO0lk7aeren2RaiTZMKAwGTsKaR8tV0q94 AC5SHEdyAQKj2J3tCh40S5fsUljJLTzwjwDKS+yoVlduAp9EQAPRcZjhBvCs/QZq mEj+U+Uh4eqRqyfeFUHnwW+qgPtQ65ZGZDMkqUZGLvNCvWXKl8fwDo+LGmnREjD0 xME4Fgm5TexwIYmIm3BwtsKH8naiLWwixmujZQ6uYgUnqinOGRTRu8m6NKxC/upp VE0KGce4MefRsQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekvddgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjfgesthekredttderjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdelgeekleeuvddvtdekhfeggfetheeukeehtedthedt fedtveelkeelgeelieeknecukfhppeduledtrdelhedrudelrdelheenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id DBCB81080054; Fri, 9 Apr 2021 19:02:40 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 5FDA52A0EDC; Fri, 9 Apr 2021 19:02:38 -0400 (-04) Date: Fri, 9 Apr 2021 19:02:38 -0400 From: Alvaro Herrera To: Daniel Verite Cc: Fabien COELHO , PostgreSQL Developers Subject: Re: pgsql: Add libpq pipeline mode support to pgbench Message-ID: <20210409230238.GA32420@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <57c58502-f053-4058-81cb-840e6504b0a9@manitou-mail.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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