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 1qmklI-008oNk-9a for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Oct 2023 00:56:44 +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 1qmklG-0004qm-65 for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Oct 2023 00:56:42 +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 1qmklF-0004qJ-9n for pgsql-bugs@lists.postgresql.org; Sun, 01 Oct 2023 00:56:41 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qmklC-007X9b-K4 for pgsql-bugs@lists.postgresql.org; Sun, 01 Oct 2023 00:56:40 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2299F5C0151; Sat, 30 Sep 2023 20:54:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 30 Sep 2023 20:54:27 -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:sender :subject:subject:to:to; s=fm2; t=1696121667; x=1696208067; bh=Pb jC3t1CrRNNajPYvf2eBadgW5xVDnouZuskOtZ7W5g=; b=UKVE73V6eA0n6QAf89 b31GcbSXsVtRcrf7fZk03Y1oHWtS3tAXGvIFHKWz7SrP4bfJN7sfw2LfIemjbEk0 UWGKIWFTy1U3hBofN9t/q9HjmURHaswRvjM8SVfvYsSBDmF73nKlW64aQbRbFmIg E0YhvSrgaNTyrgpPcvi6GWOcpEe/CH+HluvXABAcGOHPME57lkTkSJ/fyJ+DgCIf pNT8/6tj419WZaF3Dh17cABDw5dM/bFcV2zuzb/aB1Yvf4uLzOgLj+KoMPhnXHBM Bh9HTNNxWZPnzLFfmvWGFigrG30e1dX+CIfbueQSE9wHm/UOejBnUzbQKRIzMUVj Lkfw== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1696121667; x=1696208067; bh=PbjC3t1CrRNNa jPYvf2eBadgW5xVDnouZuskOtZ7W5g=; b=HZCqFpMpbuncLYS3aZOma5oK4IM+0 lxeeJMwL5SAQKMh/Wb1HuWtfV7YlLhCI5ZIgZHiCggrmEgHvth04VNBQ93AHtH9n +zNGicK3Wj3qIBCDS1tvDiRcenFfX9tXkbWoER/YVprAGT9oBCmZwK2LszFfL726 JBfhmU9WszToNEl6Tu+Eb9VxE+WNpH2HScxSjWqJdc+/yy6S0xFyJrK43UDBR05V GyhEcTht5j+MNIa2JCvMxzDSani33ks1YTQkj3cMsyi9kP904rUAxJsRdiG+Zp95 3TydD0ylemx8lf9Fk2klCN53lPIQr9Bqos6rLtqCt3O/ZlbA4N8mATlrw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtroertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeffudelheeghfekfefgfedthfek uddtvdfhudekgeegheeikefflefhleekheetfeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 30 Sep 2023 20:54:25 -0400 (EDT) Date: Sun, 1 Oct 2023 09:54:22 +0900 From: Michael Paquier To: Tom Lane Cc: Japin Li , amutu@amutu.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18134: ROW_COUNT do not set to 0 when psql's \gset command get no rows returned Message-ID: References: <18134-87126d90cb4dd049@postgresql.org> <1615012.1696121047@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dGId0uGoM6MEQhyY" Content-Disposition: inline In-Reply-To: <1615012.1696121047@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --dGId0uGoM6MEQhyY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Sep 30, 2023 at 08:44:07PM -0400, Tom Lane wrote: > Bigger-picture question: should we back-patch this, or just fix it in > HEAD? It's wrong, but I'm not sure it's so obviously wrong that there > could not be somebody depending on the existing behavior. FWIW, I am not excited about a backpatch, so I would keep this as a HEAD-only change. Sure, the existing behavior is incorrect, but it would be more annoying to break somebody's script flow after a minor release. And that's not critical. (If you want to fix that yourself, please feel free. I can do that tomorrow by myself but life keeps me busy today and I don't have any room to keep an eye on the buildfarm.) -- Michael --dGId0uGoM6MEQhyY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmUYwz4ACgkQnvQgOdby QH1KlxAAlUG6PdownTh9daD7MrwduXJ/ax6XfXLZ1bP62ljaaKEYZEVpibFcXLG1 o6Hlv7hvUULwvupuAvY02Lr14Og7fsoi9fdmXiT0ec+ClzWvFXaivV0moTdiyZEr qBJVXfWvLs7UASfMr9K2W9YHBT/w5mu/zkEjFfPUShojeRNMgbE6ZPa31OvF4df2 CkNyE9dMxMUdhmPSzoUpN5P+59arLqeFhNOHTOXd4BqBX0fkM4ssIK71sedHEznu 4JKPS5SFvhoimY2Q/drlNaNEdgDMc19bANeVxttb7rmzBtsjqh+hy8wk+M8ihXWS iTFz0rz8vLsiBXNcCiFyBPOQPCQDQt8ggW62wipQSwiiGFnKB5dJhS01Z6uXtSdz +wWi6hPcNuKhHHq+FvnCFt3CnAxPdmNcX5dldA9aNTgs3ah6T7AYxJrfilwPHPru rY0U47LF4xcAn5s9G97oAzRrNKa3JASRrkPKeC3ju2d1s7Vgoso/HiSpd3K7abl2 qGs69fn64dABMHD/8uMFjD4ATYBHd1dK6IqyDfcSqy9aYQ5AZ77N4a0QhlrDofPj m+SQmLcyViGU9u0C1UjO4Tyy9mwDrPyZsqzwersQdbuiiH2gQBrrbVaaN5/AEGz5 HzYSAYB1y0Ba5rJqLumfzt4BzCnJNZ7V3mlqlMXh+zWO4MAi9+A= =2WyQ -----END PGP SIGNATURE----- --dGId0uGoM6MEQhyY--