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 1lUojm-0007iT-2B for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Apr 2021 10:51:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lUojk-0007DF-Us for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Apr 2021 10:51:40 +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 1lUojk-0007D8-FU for pgsql-hackers@lists.postgresql.org; Fri, 09 Apr 2021 10:51:40 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lUoje-0007QI-6r for pgsql-hackers@lists.postgresql.org; Fri, 09 Apr 2021 10:51:39 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id A02C1638; Fri, 9 Apr 2021 06:51:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 09 Apr 2021 06:51:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=K3InekPoMbPd3L+BD18CmDKgkm9 hGDu8SZeLSWGvtZI=; b=UtEYmGdfW//QrnzhpoRkcXPWGR+5y90fWLG6rRqMFi2 jfeQVHOPn8Mz0APR6MNt4lcQbQadtlyyXqPCbfu76dJiuu/LinS55DmdCQJ9Wmzi ZDE+eZKsf1EDQ/vvaYMfJmn8x/y04JAUGDgGXrJl+ZorJ3kFhW5DRZM6QP2dTHPA SHykWuvm4sKoFqzeezmSDlOjD1mTYDsI36FACVwMzDOeMPAVT1HfPMsGx4ZiWhqj Y1Krhuc84eNTnqdvfM3qRdVTm23vVtEnpiGPzj2KncfvsvqgZmSBQ1/tnwmHyK1n Osis3HP6ScwF1WM4iGI+52ODASx/yBizB+j0gKk7OOw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=K3Inek PoMbPd3L+BD18CmDKgkm9hGDu8SZeLSWGvtZI=; b=umrInfNuWW0ZU6WwThEuQE 3s0NnDZCtNi+syQdQiD/hgHys0MMgO98uctk1KwqLM7PkEKf7ZiFkRZqu9qVOHuT mz/cTUD7kiMJBdrmYV77qltB4ABORihQap5xyU04L4EV+2ODtT/009cjms5uMkGI 3xQZfK5BRuoIIzZFGV6qIXsoDpXzt+bPKr8vIA9wBAZwr4osyHzYMTb9enWV75x5 EowcFlPs6mQveCDS+5a6ShtXkctndJBbWiT+5nsnm6aoweDXsXq453moSOwANWfu ELsCyUY5SEyJI4eQn77kHb0ocghHjzknlHGtSbhWsOQPg7Sb8+8TlKSRWKMAOvfw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekuddgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 4CD47240057; Fri, 9 Apr 2021 06:51:30 -0400 (EDT) Date: Fri, 9 Apr 2021 19:51:25 +0900 From: Michael Paquier To: Fabien COELHO Cc: Julien Rouhaud , "shiy.fnst@fujitsu.com" , "pgsql-hackers@lists.postgresql.org" Subject: Re: psql - add SHOW_ALL_RESULTS option Message-ID: References: <1ec5ef49-b5c8-4129-e680-fe42f8d0670b@2ndquadrant.com> <20210408163050.fca7dwb37zszbsmm@nol> <20210408171135.ekhdf5nvqss554q3@nol> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VqYF48jqyOStSTBu" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --VqYF48jqyOStSTBu Content-Type: multipart/mixed; boundary="KZm9RHWf0Jzy4ak4" Content-Disposition: inline --KZm9RHWf0Jzy4ak4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 09, 2021 at 08:47:07AM +0200, Fabien COELHO wrote: > Yep, it looks much better. I found it strange that the later did a reset = but > was not doing the set. >=20 > Attached v2 does as you suggest. Close enough. I was thinking about this position of the attached, which is more consistent with the rest. -- Michael --KZm9RHWf0Jzy4ak4 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fix-cancel-3.patch" Content-Transfer-Encoding: quoted-printable diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 028a357991..f289f05843 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1117,7 +1117,6 @@ SendQueryAndProcessResults(const char *query, double = *pelapsed_msec, bool is_wat INSTR_TIME_SET_CURRENT(before); =20 success =3D PQsendQuery(pset.db, query); - ResetCancelConn(); =20 if (!success) { @@ -1382,6 +1381,7 @@ SendQuery(const char *query) { /* Default fetch-it-all-and-print mode */ int res =3D SendQueryAndProcessResults(query, &elapsed_msec, false); + ResetCancelConn(); OK =3D (res >=3D 0); results =3D NULL; } --KZm9RHWf0Jzy4ak4-- --VqYF48jqyOStSTBu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmBwMa0ACgkQnvQgOdby QH1clA//SNiqBIDNX9g2P7uYL1NEPfj074pv3n3diGswZ9BdIyYZVU/2SRMbyO5R sy51/Mou4mpd94fLJzf/733ymrGgkQsNaViP9t7IduSoNol2RPbn2AGHZ0Nlvt42 baLB3YYRBjJMMrfSJmtMgB9hEvTv+sY0rv0RmKTRqyfxmKlAJXui5nCAvC3cxsOL cLzfE0Pnh4hqVhab8mzb4jQjiTSjJhdRSyOni+U9N6oyCzxe6Hu0GjJsE6Eofm/A UQ6fM+PeHs09L+4GQgVoNgsE04vrAILXvA0Zkk2uvLGenyao0I+PztAjdxy8w/En iYjqdX4KoJLyV0wjEv4S0u5PFfJPrfbcKwuETTJZk0yfkgq9OnAzqhN+oEUP/ii8 OATFGW/pmIPIlbbqvKdAhuiL4ql1MUkOVLAMQTdTz77nF8KWS028uQRL5fKQXnDz UosvSvt+6aXdSN8bbAyo0+hCxQIgGvd8jBc33V7hMkxOiPcTzohxoZErcJbM5d1R DkknqileW3lY/bCL3W6vgwhesccaL9j6Vyg6kAtTry64dwHw0p/eTm0h2DYoxvxi mYoFR9bIvpgxKSo2/wmpw70d3iH1Ibf76TWDU53Vjs/FH/XhjDJV8wQKFUoGJ+yw T1/h9CmesozfYcIJ9jC9N+VQYsRs7qqyzp9eeFbVTNiNjE9/trg= =YKAZ -----END PGP SIGNATURE----- --VqYF48jqyOStSTBu--