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 1rZeFR-005fP6-Hd for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Feb 2024 21:53:58 +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 1rZeFP-00Dp8m-TC for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Feb 2024 21:53:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZeFP-00Dp8e-FL for pgsql-hackers@lists.postgresql.org; Mon, 12 Feb 2024 21:53:55 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rZeFM-006sOp-Bj for pgsql-hackers@postgresql.org; Mon, 12 Feb 2024 21:53:54 +0000 Received: from [192.168.0.104] (unknown [62.217.189.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: p.luzanov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 5075AE2104D; Tue, 13 Feb 2024 00:53:51 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1707774831; bh=WFbhP/fk0cs/Mp8HpDuPVJrajzGuQqCN8fkVY7R8tQg=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=uLu2CKgg6xrG1n98ypt5NKmmYqkGZS74IcMyPGGTR/4lIZE5ffHdxrHX7iczxjFqE yz2wYNoNdyvEXKZLNvxrLF4QxkXD8SgjJdGEPNchT/9Xb6GbXZEp/Ka3LEtBQuyNiF 1w+///P0PJhCqyGMqqvlpN1VzIfpjSwGBh/17L/4m++Qmehx/2cwn6uTd5a4AZQ7nI Pazi5cWoXHZYVTxBVLjg0a5KZECFpUeFOSs4jaX+5NJkcc1QAvyUDoQEKcITZuOObP izLKMIS0QF93GDR52Ca345p817T3oMTQyxlX6cOBmtHZxk4FB1SYYyZARWoP3HlJhJ +Huuwvjt96FcA== Content-Type: multipart/alternative; boundary="------------Es0Aqx4Vh06nojDMBdz5tsL0" Message-ID: <9c8844ae-b2c0-4b69-ac64-c577eeac1805@postgrespro.ru> Date: Tue, 13 Feb 2024 00:53:50 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Psql meta-command conninfo+ Content-Language: en-US, ru-RU To: Maiquel Grassi , Nathan Bossart Cc: Erik Wienhold , "pgsql-hackers@postgresql.org" References: <20240206210605.GA3903769@nathanxps13> <20240206211205.GA3903996@nathanxps13> <20240206215022.GA3452@nathanxps13> <852cabef-f596-4826-9a54-d3f75d9a6cc8@postgrespro.ru> <49edac91-d47f-4cac-ae12-d51cabbd87c9@postgrespro.ru> From: Pavel Luzanov In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------Es0Aqx4Vh06nojDMBdz5tsL0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, On 12.02.2024 17:16, Maiquel Grassi wrote: > > The "if (db == NULL)" has been removed, as well as the message inside > it. To always maintain the same error messages, I changed the > validation of "\conninfo" to match the validation used for > "\conninfo+". Therefore, now "\conninfo" and "\conninfo+" return the > same error when "pg_terminate_backend()" terminates this session > through another session. > This make sense to me. Thank you for this work. -- Pavel Luzanov Postgres Professional:https://postgrespro.com --------------Es0Aqx4Vh06nojDMBdz5tsL0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi,

On 12.02.2024 17:16, Maiquel Grassi wrote:

The "if (db == NULL)" has been removed, as well as the message inside it. To always maintain the same error messages, I changed the validation of "\conninfo" to match the validation used for "\conninfo+". Therefore, now "\conninfo" and "\conninfo+" return the same error when "pg_terminate_backend()" terminates this session through another session.


This make sense to me. Thank you for this work.
-- 
Pavel Luzanov
Postgres Professional: https://postgrespro.com
--------------Es0Aqx4Vh06nojDMBdz5tsL0--