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 1uLx9H-003gfF-7a for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Jun 2025 04:51:47 +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 1uLx9F-007KkB-KG for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Jun 2025 04:51:45 +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 1uLx6A-007H8x-2H for pgsql-hackers@lists.postgresql.org; Mon, 02 Jun 2025 04:48:34 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uLx67-0018Qc-1Y for pgsql-hackers@postgresql.org; Mon, 02 Jun 2025 04:48:33 +0000 Received: from [172.20.10.2] (sp49-97-71-74.msc.spmode.ne.jp [49.97.71.74]) by oss.nttdata.com (Postfix) with ESMTPSA id 315B261B7A for ; Mon, 2 Jun 2025 13:48:26 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <685961b8-b6ce-40bb-b2d5-c2ff135d3388@oss.nttdata.com> Date: Mon, 2 Jun 2025 13:48:25 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: pgsql-hackers@postgresql.org From: Fujii Masao Subject: Suggestions for improving \conninfo output in v18 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, In v18, the "Protocol Version" column shown by \conninfo reports only the major version (e.g., 3). Wouldn't it be more helpful to show the full version (e.g., 3.2) using PQfullProtocolVersion()? Since support for protocol version 3.2 was introduced in v18, users may want to know exactly which version the current session is using. Also, I noticed that the "Client User" column reflects the user at the time of connection, while the "Superuser" column reflects whether the current user in the current execution context is a superuser. This means the users referred to in these columns can differ. It might be worth aligning this behavior, or at least noting the distinction clearly in the documentation? Regards, -- Fujii Masao NTT DATA Japan Corporation