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 1tujBB-00B4qz-IB for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 02:29:13 +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 1tujB9-00AZqn-3P for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 02:29:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tujB8-00AZqf-Pb for pgsql-hackers@lists.postgresql.org; Wed, 19 Mar 2025 02:29:10 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tujB5-003g1v-1K for pgsql-hackers@postgresql.org; Wed, 19 Mar 2025 02:29:10 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 860B125400E5; Tue, 18 Mar 2025 22:29:07 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 18 Mar 2025 22:29:07 -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=1742351347; x=1742437747; bh=jFjtvORrYo An4Ht4f027rjH+tAvTVd30ywfeSTwulzc=; b=OhBey2u2XGqXOzQa6Zm4p0iaFQ OrOsZWfajNB69P964u0UcXyycBGRWgb1axz2SbUR9loem1RkxdFPlu3IdersR/zk uL3wu/eEUVTUo3EVwZUxZU5zOwUObGAAil/9vqCdH763l2dfmvh0J+BNw7SdsfDW FFNpO8mxEfcgsXRY24MtBlAcqOeK1mpUgKc7lCRwPC73s3FdyruonlyM0OK5jJv7 hzuAYxnSHidYbC1N9/eH9g0ZvY7LKfKHW/sX2vgocSkYySzh/7GG0gwTwNZ/43ZO JH8glgBDv6bhrHfHlj4wCq+o2E2iWXqbCX4HH+lYfOd4n2gVACwdBTO/6bhg== 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= 1742351347; x=1742437747; bh=jFjtvORrYoAn4Ht4f027rjH+tAvTVd30ywf eSTwulzc=; b=rlbswkh/6stBFvJR+AcuwElnLAuheyNSvhCB4rrPI+h79gFYqHd qjZ8Tr6tvXZTSSMYDEMtBpde6YFORWOP3WpJqm8KkR8xpmA5Gnkh0Vxss8GQOjc8 L/u/jOzuHd8yZ1IQPCM/3ahc/nUYnK/tNE5gN//S0dEIgzw3Vuilp25ikAE9Lmye uvHNHSnQmiFaGu5hC/ZjzFRfdKCc97872YZ1IOVW39/SKpPYlrbtZIciQuuqdpPL 5wAgrNWSIo4Qx69DGLSGIEqLvuHWgWPhAcCaUrZwIav1U7otEE1HbkBEKuCA5bJp usJcLKtGjRDRvQCvKJNiJEkMgfu1NJvVSZw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddugeegudegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefu kfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivg hruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhep teelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtohepphhoshhtghhrvghssehjvghlthgvfhdrnhhlpdhrtghpthht oheprghnthhhohhnihhnrdgsohhnnhgvfhhohiesuggrthgrughoghhhqhdrtghomhdprh gtphhtthhopegurghnihgvlhesmhgrnhhithhouhdqmhgrihhlrdhorhhgpdhrtghpthht ohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Mar 2025 22:29:04 -0400 (EDT) Date: Wed, 19 Mar 2025 11:28:54 +0900 From: Michael Paquier To: Jelte Fennema-Nio Cc: Anthonin Bonnefoy , Daniel Verite , PostgreSQL Hackers Subject: Re: Add Pipelining support in psql Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EZsoJ2vbZMS5ztzX" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --EZsoJ2vbZMS5ztzX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 18, 2025 at 10:27:38AM +0100, Jelte Fennema-Nio wrote: > One thing that comes to mind that I think would be quite useful and > pretty easy to implement if we have this functionality within a > pipeline: An \extended command. That puts psql in "extended protocol > mode" (without enabling pipelining). In "extended protocol mode" all > queries would automatically be sent using PQsendQueryParams. That > would remove the need to use \bind anymore outside of a pipeline > either. How does that help when passing parameter values? \bind is here to be able to pass down parameter values to queries that are prepared, so we cannot bypass it as the parameter values need to be passed to the \bind meta-command itself. Perhaps an \extended command that behaves outside a pipeline makes sense to force the use of queries without parameters to use the extended mode, but I cannot get much excited about the concept knowing all the meta-commands we have now (not talking about the pipeline part, which is different, as we can treat queries in batches). -- Michael --EZsoJ2vbZMS5ztzX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfaK+YACgkQnvQgOdby QH2LkA/9EPDK2GNhrNqlq9LaWOwB7sIUo2aG3/FuZtA/QK+Y03fCKj0ObhDRjZwh HkJ9e+6sjXJXH+e32FXOk1xKqyJuYKarKDtFXY3rm7rmdItYNlaiCXr9UGHtukL+ klMYYsjwgoBuZQlGOnTtAxkx6a5+xOez8KbMdbuQRp2yBWTnujIVNOBlLWv8Kpgt fBTY8WVY8kmyyzP8vIu1E7JT2q7ALfVni0CESvA+Qxa0zc2Il4GLReNE3jrppfta TDclTQ1f5J5QoIRffOJUMJ3nBdpmqKP032sa+W5ZTCovUDa2F+17BEwb5fRfVk3n M6kH2tkkqJbKZQLoGVCgUmYD6HBQEF5PplyzqZS8sPKHlBoypg65hsgyWMPCVzAy MBF0t8EPcjU+A2PVmxhR9nvJN0Ac5x0eWEVKF+mgOiSQyRQ4we2UkhUfU5Tec2QL +ElA4tU5gJK2+gZSHwyCkoSTr7879tkwolNyk2vYYFL4nqUC95WOodnl8a4Xfi8N IFuqRpwoLR02bKWSIlIPMQOOrtM8xDA18Wnmml7NCmGEdm2OlCf1ocVlLM2J0fNo Q4VOXt5FLXUbyG0FdNo8+kVY2PpbwkGIfebfL1mlR1s1MZGCwYFV/6R0Ip/H2ss8 RxN4RdfgT5B9j1xVhXNiayrbxdHD3ITJG3aRMJIhHV2TjZlR7yM= =yHBg -----END PGP SIGNATURE----- --EZsoJ2vbZMS5ztzX--