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 1tpbeC-008q7E-Au for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 23:26:00 +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 1tpbeA-00BFBy-8V for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Mar 2025 23:25:58 +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 1tpbe9-00BFBq-VA for pgsql-hackers@lists.postgresql.org; Tue, 04 Mar 2025 23:25:57 +0000 Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpbe8-000znJ-0r for pgsql-hackers@postgresql.org; Tue, 04 Mar 2025 23:25:57 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id E471B2540303; Tue, 4 Mar 2025 18:25:55 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Tue, 04 Mar 2025 18:25:56 -0500 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=1741130755; x=1741217155; bh=+g3xwzJ5mZ qvr9RbaBXgaw7cVa3Gl0Z+Q5qOplwpk9o=; b=hilka5QBrMU6+Ov3W+mbA1gEev PCOcnhXLZXP9BkNYDNdGWRU3EtzU50dv3uh5IgLmu8uh84RmcZQz1NusCe3yv2UU rYpFJtrWwALm35nS7i58MdctEAwFr9cMrCZsafXLRgIFClIBQc4lQK+lgbGMTo9j yiAGvM+LGkqxrQA+a/Zrav0yLCakRqPusO4lZYOTkQJyjXRbi1i/UktUsd3KZ997 t2eTIAxfiTMIsxUY32CtN+FwF4oAuK/PK3H700EiX4S++ExmI6CsJupTY29+/T3L nKB1urMfP4BbJwAoeR5NThc6CCa4ZtdRGTtTNwydq7jCFDaI73Y9dh3QrpqQ== 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= 1741130755; x=1741217155; bh=+g3xwzJ5mZqvr9RbaBXgaw7cVa3Gl0Z+Q5q Oplwpk9o=; b=Ek1LQ2r9WS28EcB/6HNf3n+abJQ6ZuoQjZebEvFSTsOL4RzATTf Ioer0RqJUQfgCbtjgx7S4x1e6o8Nvmgc4dpm1+LYqbepgQJX2E7KAC5FPeWqDhwM iMuhjqT0oRmi343NaZCt+kOXoOsnD/RIFSgEjfsmKfMZx/zDfTZQge4mnXlYuunG pOnVFMmUcgwNSxQceVmIYpZuonOyX7rSCk2jw0XlGuIrHnrQmWpxsDwoR96aPfiO O6j8wGJA3z9SqFJ0GjpJrktiag8p+mLTSe9eUfLg0ABTzecjVpUIXsAV02vZBv82 CIT7u31ncghUxc/aUpztsvkce7K2TJi0kCg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdefvdekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefu kfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivg hruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhep teelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggv lhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtph houhhtpdhrtghpthhtoheprghnthhhohhnihhnrdgsohhnnhgvfhhohiesuggrthgrugho ghhhqhdrtghomhdprhgtphhtthhopegurghnihgvlhesmhgrnhhithhouhdqmhgrihhlrd horhhgpdhrtghpthhtohepphhoshhtghhrvghssehjvghlthgvfhdrnhhlpdhrtghpthht ohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Mar 2025 18:25:53 -0500 (EST) Date: Wed, 5 Mar 2025 08:25:34 +0900 From: Michael Paquier To: Anthonin Bonnefoy Cc: Daniel Verite , Jelte Fennema-Nio , 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="25Q/UCNiW+8GvfWN" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --25Q/UCNiW+8GvfWN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Mar 04, 2025 at 06:37:09PM +0100, Anthonin Bonnefoy wrote: > I do see the idea to make it easier to convert existing scripts into > using pipelining. The main focus of the initial implementation was > more on protocol regression tests with psql, so that's not necessarily > something I had in mind. I have some reservation as it will push all > parameters in the query string which may not be the desired behaviour. > But on the other hand, if it is to convert existing psql scripts, then > everything was already pushed as simple queries. Plus, this is similar > to what pgbench is doing when using -Mextended or -Mprepared. Hmm. Simplicity is tempting here because we know the status of the pipeline when sending the query. If we do something like what you are suggesting here, do we actually need the \sendpipeline at all? We should still prevent \g, \gx and others from running in a pipeline because of the format argument raised by Daniel so as we restrict the use of meta-commands that can manipulate the output format, right? -- Michael --25Q/UCNiW+8GvfWN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmfHi+4ACgkQnvQgOdby QH0S1g/+OgrjdsXu2a2sJ/wmDpq+pg6vSU0BBnX0169bRX2ab4qG6eAHm6NC4V88 SXl8MTJ5FR/OdaxN2hjqu90F6NiUOzpnYfzaBXHtTWqObtr5bRZ115sTOx1pLbjA tAYFp5BBj0dzhRQ5MlW8y8ZOjlvweaoonpiUWOhnC0iPBWxxciqhf9aIHZhZ8Lpf L/DQxqxMzWCfD4ckfSCcQBhNwy59n6R6vDWsCZ7SUaFoY/s8/VpJNvw2TsBclQIm 9EM5DPTGquH03v30d4wFED41O4nP/UdtqgCXk5kEZ03ufmlQq09XEo7AuqCBKyjp iYSLtHIRdiSEkZVQ4k6Y7CZDO0AiBU4pdcpJRupJY0ZnXzbA6PgqaCwLADG3c9Pn vsAPY+y03ZI0tf+2/VrUHaXmjrKQaY79mGKxIV60bzBJkUCY/MRtncoMEMh3B9xk /kkA9VyQSwSa5V+14wTVeUoPqmIJ1vK13/HYUi4E49atQBEiL+I5W84pYvinSz/5 3zJl25dxNUDKPLXjGD6d2bdAHFhB0I7qfcTuiRPAAHPMqw7ATL3VxjhJ5Hivghrp vbA8tHuWQkUd9Y3pcNXsthz1t+QhB25ScFdRBKRkxHQSWP0rQWqIZK4DSimJVzXW HF+OxqvL935YueANlTkA0UAMF8QISWlClTggxTJKrP4n44v24fA= =kuNk -----END PGP SIGNATURE----- --25Q/UCNiW+8GvfWN--