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 1uPujy-000jaa-Bv for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jun 2025 03:06:02 +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 1uPujv-000R5R-0w for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jun 2025 03:05:59 +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 1uPuju-000R5J-Mp for pgsql-hackers@lists.postgresql.org; Fri, 13 Jun 2025 03:05:59 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uPujt-001iLs-22 for pgsql-hackers@postgresql.org; Fri, 13 Jun 2025 03:05:58 +0000 Received: from [192.168.11.9] (p1696134-ipoe.ipoe.ocn.ne.jp [118.0.93.133]) by oss.nttdata.com (Postfix) with ESMTPSA id 9D0DE609D9; Fri, 13 Jun 2025 12:05:54 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <4568b6be-5520-4804-aa03-6e4b46afa665@oss.nttdata.com> Date: Fri, 13 Jun 2025 12:05:53 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Suggestions for improving \conninfo output in v18 Content-Language: en-US From: Fujii Masao To: Robert Treat Cc: "David G. Johnston" , "pgsql-hackers@postgresql.org" References: <685961b8-b6ce-40bb-b2d5-c2ff135d3388@oss.nttdata.com> <9e789ede-b56c-4a27-bb35-5b03e993a26b@oss.nttdata.com> <3e2e6f04-0a85-41a8-bf81-0ff727d23f0c@oss.nttdata.com> In-Reply-To: <3e2e6f04-0a85-41a8-bf81-0ff727d23f0c@oss.nttdata.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/06/04 20:18, Fujii Masao wrote: >=20 >=20 > On 2025/06/03 20:22, Robert Treat wrote: >> +1 on the idea to put it there; if someone gets confused about the >> behavior, that seems like the place they'd go to look it up. Though I >> would wordsmith the patch a little: >> >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Note that the = Client User field >> shows the user at the time >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 of connection,= while the >> Superuser field indicates >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 whether the cu= rrent user (in the current execution context) has >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 superuser priv= ileges. These users are usually the same, but they can >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 differ, for ex= ample, if the current user was changed with the >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SET R= OLE command. >=20 > This looks good to me, thanks for the review! I've updated the patch (0= 002) > as you suggested and attached it. Barring any objections, I will commit this patch. > I've also re-attached the 0001 patch that makes \conninfo report the fu= ll > protocol version, it's the same as the one I posted earlier in the thre= ad. The 0001 patch changes \conninfo to report the full protocol version (e.g= ., 3.2) instead of just the major version (e.g., 3). This is technically a behavi= or change, but since protocol version 3.2 was introduced in v18, and both 3.0 and 3.= 2 are now valid, always showing just "3" isn't very helpful. To see which proto= col version is actually in use, showing the full version is more informative. Therefore I see this as fixing an oversight in commit bba2fbc6238, so I'd= like to commit the 0001 patch as well in v18. Thought? Regards, --=20 Fujii Masao NTT DATA Japan Corporation