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 1tGYLf-003hEy-To for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Nov 2024 06:49:59 +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 1tGYLe-003BaX-A5 for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Nov 2024 06:49: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 1tGYLd-003BaO-WB for pgsql-hackers@lists.postgresql.org; Thu, 28 Nov 2024 06:49:58 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tGYFG-004HtR-SJ for pgsql-hackers@postgresql.org; Thu, 28 Nov 2024 06:43:28 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id CF476114010D; Thu, 28 Nov 2024 01:43:20 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Thu, 28 Nov 2024 01:43:20 -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=1732776200; x=1732862600; bh=cmUAoBQWB0 oC8M3Pyz251D+mkewteGqRuPX/U46oayg=; b=Jt+zxDJKc4z1oX8t2ZRDJrKcz/ 3DczxMy/akBXir+OJhrBPCKPTA74bTaw/0poF0UHvTZQ0CvFDdUu+1o+gjLzp/nU a3PCIBu6A3iVO0xIYxThYR/QEtt8cLSCoAsc3UsNWFWUOFaMzBM5Ck5uGkXm8RN7 RFXj6T/1SeqrLO8Rdv7MYXcehVVCFfaPaz2SA1dQgFmEK4b2Mbn5ojRH2xO9PoEY NL6WIufu7QyLw5mv/MD09Bfpo2hx7EnUSZlKYUNfwBXOw1hc9RGvX/A/U6JhKz/F 4a2Psi7yo7veOI2NWjttULXqirKMutVXxcUN9JMSxdPcXfwOIGzGsMPgzrQg== 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= 1732776200; x=1732862600; bh=cmUAoBQWB0oC8M3Pyz251D+mkewteGqRuPX /U46oayg=; b=afYK902HZM8kXn2mT8AW3Rje+hBdc5AJbwEeDhtBUe3+0c/tzlu xngD0i3izTCj9aN8OB4rR0jC1M4feXOwFNck9osfNkMhGv1/NZkzR3V8Bomhmei/ 5o9xPMhg/Hw2OLIn66GnvRvjFYo0tZ39la9vK7bhl8538fxxhLhFRHB4GCMaEM9U DfxATMqxg1GnZZzJ2MZ5Py8vToOlTA5JV6YCdsrGAzshDV5By+4K4+AhTwXuOQ2c LpvsgqwAnLboHBCiXJXq5eOshDjZTCxzbjBpNFZ8vpeSjWd2wMLKI1f1I7OoGwLH Cm7KP05EYp/hoK0gMRDuhYWbK5vIteN+Myg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrhedtgdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenfghrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhgg tggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoe hmihgthhgrvghlsehprghquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleei fedufffhhfdtteelgeeggeffhfekueevteeigfduudevudetgfegiedvjeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehp rghquhhivghrrdighiiipdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehpohhsthhgrhgvshesjhgvlhhtvghfrdhnlhdprhgtphhtthhopegr nhhthhhonhhinhdrsghonhhnvghfohihsegurghtrgguohhghhhqrdgtohhmpdhrtghpth htohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Nov 2024 01:43:18 -0500 (EST) Date: Thu, 28 Nov 2024 15:43:04 +0900 From: Michael Paquier To: Jelte Fennema-Nio Cc: Anthonin Bonnefoy , 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="inXsoNHlz2rto14u" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --inXsoNHlz2rto14u Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 27, 2024 at 01:45:32PM +0100, Jelte Fennema-Nio wrote: > I played around quickly with this patch and it works quite well. A few > things that would be nice improvements I think. Feel free to change > the command names: > 1. Add a \flush command that calls PQflush > 2. Add a \flushrequest command that calls PQsendFlushRequest > 3. Add a \getresult command so you can get a result from a query > without having to close the pipeline >=20 > To be clear, not having those additional commands isn't a blocker for > this patch imho, but I'd definitely miss them if they weren't there > when I would be using it. Hmm. The start, end and sync meta-commands are useful for testing. I find the flush control a bit less interesting, TBH. What would you use these for? Perhaps these ones would be better if just applied to pgbench rather than psql where it is possible to pass down custom SQL sequences with input files? -- Michael --inXsoNHlz2rto14u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmdIEPgACgkQnvQgOdby QH3UcRAAjSSdwdC2X3pRzl2W/2VUjLl3uMxjVgYaD3wY6s1Gljf7V9K36Krqn9RD 25pYx9TsGrcoWBgJXQVvj/xfzargSuATo1Z9+kHP8I9bOKylO5cf4KwIlTtToFFb 1qKti942tM4iB60kNrcbQlxthcmUas00i/MffofONHiA60KEQ2m+h3SpHJ5nchA1 QjfvLHAbnEw0zgL5DuL0G/Fhx3z1kXjnNoBnE9IT9VjD8zfM3qS/y1exhJFkiXwY vO9QIEPBGUL9aP1AZnFdWCotXX5E/xLq8nH7RNZ322WUKcZX1I+41Yw9lQCERN6n B018p9ROWJQsBdXVRAOywRKLRZd0ndStziI7Koc4jVf6/yKepu9HcPCrRB1lvcxL 9ucuu7FYXglmSY6tT5ztF62LvZDIkP1K9rZpi9eN2lDXfnrMDR+CUYACb00Ddwj2 SGQGY7MWALkkUxnCYilDWLzmWEqd05jqSwi7tEXPxCLQW8TAA7voUvQNSiBqr0aB LHHVb4MUjPY+IbLH1pGlAOfNSNEUV/7V7Tpu7h+Ms9hdv1LWwclWQfxiGaeyiKMb wmQCpFkC8YqcUGgTnh1ZZQlea23+SXY401GkqA6S2LgJc7dh7YAj7C632zgXt93I 6ghAoenKdZG+2cb89W+VRKs6hylKdSazpz1fg0jkmRK43m2nIxk= =RG0C -----END PGP SIGNATURE----- --inXsoNHlz2rto14u--