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 1qmkmu-008oUS-09 for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Oct 2023 00:58:24 +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 1qmkms-0006BS-N4 for pgsql-bugs@arkaria.postgresql.org; Sun, 01 Oct 2023 00:58:22 +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 1qmkms-0006B5-Di for pgsql-bugs@lists.postgresql.org; Sun, 01 Oct 2023 00:58:22 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qmkmq-007XAV-38 for pgsql-bugs@lists.postgresql.org; Sun, 01 Oct 2023 00:58:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3910wC6o1617078; Sat, 30 Sep 2023 20:58:12 -0400 From: Tom Lane To: Michael Paquier 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 In-reply-to: References: <18134-87126d90cb4dd049@postgresql.org> <1615012.1696121047@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Sun, 01 Oct 2023 09:54:22 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1617076.1696121892.1@sss.pgh.pa.us> Date: Sat, 30 Sep 2023 20:58:12 -0400 Message-ID: <1617077.1696121892@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > 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.) I'm content to wait a day and see if anybody wants to make an argument for back-patching. regards, tom lane