Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tugoB-00AkIr-M0 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 23:57:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tugo7-008AbB-W4 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Mar 2025 23:57:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tugo7-008Ab3-MP for pgsql-hackers@lists.postgresql.org; Tue, 18 Mar 2025 23:57:15 +0000 Received: from fhigh-a2-smtp.messagingengine.com ([103.168.172.153]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tugo5-003b2f-2D for pgsql-hackers@postgresql.org; Tue, 18 Mar 2025 23:57:14 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id CA12911401EC; Tue, 18 Mar 2025 19:57:12 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Tue, 18 Mar 2025 19:57:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1742342232; x=1742428632; bh=NvAaPKtLVi QOMMG8ucimgnJkB98BYehmmCkSNI8+DWM=; b=aJZiY7XBUm6B2zcwuhS160UeCK JUB0ocL2qz4OFdcHDvZUpvckkTtk1Pic3mup7usz36hM4GsvMSaQsFAASq5Dfi+e 8HOLuOmuLCpiPnneDU6ltWDRlIUFkQXS3Etqw8CwDRHL+EHWz7/lqNF+5hb12yOe fACL+9DZUWhwPs13m3322JurtaZqik6AR7Jhnus/yMTp81DUTEBYdOeXysEuWi8p rrFVM1zHA0YZk5tpr/HOApEgipjhuCAIbUa0klmNhqsxuBCuTSWVd0e4rv0kBQ7V gXm4XqB+3d5+6xsQ7BIPvkgrnEu01FsFgncEMVl/1anxM3QT3l9ZCxgOEGWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1742342232; x=1742428632; bh=NvAaPKtLViQOMMG8ucimgnJkB98BYehmmCk SNI8+DWM=; b=K0yy/QdrCFi3XXSRDWguW6y1r/Y7kxVHBS3sWVuH89H9zADY7fv RgN/aCMTPbCEwPQBDbLZtrMp5ObZbPDA5/YhaWfrKI2yFbp3f7PaMSOZuTVdoebM eKZMlUaChQOIgg9H+UW1sr0JvBDmWVMb9ndni0VeTbp3uwYhE/oszCtAwESUWqDC SJxwAc0yEAImdbfh8xmWgFHQUcQi/ilsrRV3z1laAxpLH5XvML/ENNW/sZkGBZnK fTOgy70N2lO5sJovKQkcib+Bv3wo7jKW8IgSe/n5a0ueDPA8pCZFEL8RtdcyRzK9 dK0pEGWoMnExKNvC5ZtlsVDMoeQ0mZl46rA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeefkeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefu kfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivg hruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhep teelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepuggrnhhivghlsehmrghnihhtohhuqdhmrghilhdrohhrghdp rhgtphhtthhopegrnhhthhhonhhinhdrsghonhhnvghfohihsegurghtrgguohhghhhqrd gtohhmpdhrtghpthhtohepphhoshhtghhrvghssehjvghlthgvfhdrnhhlpdhrtghpthht ohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Mar 2025 19:57:09 -0400 (EDT) Date: Wed, 19 Mar 2025 08:56:54 +0900 From: Michael Paquier To: Daniel Verite Cc: Anthonin Bonnefoy , Jelte Fennema-Nio , PostgreSQL Hackers Subject: Re: Add Pipelining support in psql Message-ID: References: <9aa66158-13c3-4f57-8367-ddf6f392fca7@manitou-mail.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FyG0dTx7R4UbOHlf" Content-Disposition: inline In-Reply-To: <9aa66158-13c3-4f57-8367-ddf6f392fca7@manitou-mail.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --FyG0dTx7R4UbOHlf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 18, 2025 at 10:36:28AM +0100, Daniel Verite wrote: > It's actually possible to use parameters >=20 > \startpipeline=20 > \bind 'foo' > select $1; > \endpipeline >=20 > ?column?=20 > ---------- > foo > (1 row) >=20 > I suspect there's a misunderstanding that \bind can only be placed > after the query, because it's always written like that in the regression > tests, and in the documentation. > But that's just a notational preference. Nice trick, unrelated to pipelines. I don't think that we have anything testing this specific pattern for \bind. At quick glance all our test use \bind at the end of a query string. Perhaps we should? -- Michael --FyG0dTx7R4UbOHlf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfaCEYACgkQnvQgOdby QH20jQ//WsI7b2BZujDveVVZgZKvRco4Geyz0q1aAWFaRnXzARh9Re9HqiE+5Ikp tSbhQv2MbifCoEfByzTVVfazGL7ZFOYl34yApFVLP3EpfR2nxYy8Bd9Qxn1/5y4c RZvFTXHC0lEb92i1nWLCEHoZSKEPRARdOO+11Bxj+9BBEnqDJPLxFo/a1WVIu1kf 3WuHCC4Q8X76Uen7pUluPfJZ+T9KYzNCWaxdoA4VccLylb4qtJseHNe+mSYDeqm2 7iZSL8ayfkLq90LL2hs+cCqTH1tAcg017USNqJW+QxyS7jAGPBigC13/h25gSkP7 e5aEZQzHxUctmRPLWyYvf+/nNXBC1oo0DFJzleWXn0yhvEnyItgnQWd0TUbM0yiy j4/8uLKgcjB/FdDl2Yx5TPa/WVWR1xFgnTFKVpwbni5Gk1oVsZDrv+7AL37vcQo7 S4eTogc6++NNwG0YRDIDYQdZiUqfumfsVmRCF0+uNdydCXsS1fFq4CKF4QpAeuJc kBlAFFCG6w82wEsPgzcrH7zWMGa+pnG1NTJz0dBbBFzdJqp7+5g4NEp0VPqAimVB Q93d0PfyX2sNogzedHWrs56ZgFrTxbLdVMQc776sQ3AbTPymj1G9j47D5XriZvsR MVdsCBucFbWX00k6lbXYGW8fChCt32zJqa1qw8Aqd9HSArKsyus= =6FA7 -----END PGP SIGNATURE----- --FyG0dTx7R4UbOHlf--