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 1uPvYj-000wy6-29 for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jun 2025 03:58:29 +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 1uPvYg-000hOb-Ba for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Jun 2025 03:58:27 +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 1uPvYg-000hMf-0O for pgsql-hackers@lists.postgresql.org; Fri, 13 Jun 2025 03:58:26 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uPvYe-001l08-0i for pgsql-hackers@postgresql.org; Fri, 13 Jun 2025 03:58:26 +0000 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-72bc3987a05so989149a34.1 for ; Thu, 12 Jun 2025 20:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749787102; x=1750391902; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6ocwJ+9SR5hQ4Nkpb2UD+R/qGGLIUwcYRawqOGMVsuw=; b=JjxfZJBecX/Zp90zkR3FUj5BSCim0L4NVp1y2vjJeuRuLITvmv5rj3t2NrEe7B0JAH bAWtEvwZNiYA3l5VYHlZoc49VRJ6OS/HxQUeu7QVQuUJBwpfc5bRnV2Q6aZ3KM0l4EsL N+v2IKViqmRc3vWnyucyqOju6S30yG///xqsBOLeSq/9OCWzAvVGFYd4BeD90rrxIvN0 JuyzPWHODYjX0s9f6rR9B521zLR3aDnAY0LPDAkSEo9fLVKPcPxvXUs6lrKkfOHEm2pm OtS2ZKooaEUaf74PQL74CHMlhaw7Zz9KKHtCi6j+oM1gqbd0rT+YlzSlRXE46pf7Xqcr /fZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749787102; x=1750391902; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6ocwJ+9SR5hQ4Nkpb2UD+R/qGGLIUwcYRawqOGMVsuw=; b=pEhvWYRQFMBUE5eVnE3MaAooxXqy5HCRh+9oB5lVjamp8nOCmDZv4oiRc7WIetgq5o x7m1gGGjT3QsE6AVICIUST8T9tT0uzWm6Tow5IYYKAcmspwwCA9VaYXcZF/ThdnXe4Ot Vzv19/rI0V5IYQ3xoS7gLxHPdeX3l/Qnw2UDO76hRIYCJC/G7E+2tQNzLFHG/PgwDjaj TWsq57Zs992XPX0NFeSEBA0OvlipvN0BtO33vPdQzgSDRvZinU1LFcDziFdBKk5LWwLc 29nw4G15/kOlr5hmmEUM2S0tAvt9Yw4gLIDYX+zrJccVbPyOnFiQz4fE0pwS5XcSWwEx aW3Q== X-Forwarded-Encrypted: i=1; AJvYcCU+uOejx/5SQjqXDjsOOVoRmxwKz6Dvpf1bDGLqHHsPrHVrZ2p3MC7juY1ydbw/atXfbmbTNthvCNQIghMk@postgresql.org X-Gm-Message-State: AOJu0Yyw2Ji8qNCM9UUob7/DmCiva469qTsSmHdgFvRKfrmecg/izcjj jR6J4gRfflo/ohs6KZ5EGymza5sprn//ZEIvK02Sr4+Ldp3ZBE2H7On4zXZRThkY4cPFuNR1WFE 3++VoGupkVLOcGv3hDiR20aro2CQS5Rs9rcANip4= X-Gm-Gg: ASbGncsenersfY5gzwi38DpgonfL95CpDuNkeIR9zxwu7MQYAHBT1gyRWSUtPUVjfhw 9DyqvjS0/A5Mi0WwztzifwXVfhbcBZT7gaiEOKUJFlyjTgKOmSg97wv9spvhCaM0cjswAdla1zX f08x8y/f7EpmKJiKYOllfF2Qq2uVH5pH4xVVn9XYIsPHYEhM5aqD7ehwhMbOL5S3/aajEZTRxhc oQp X-Google-Smtp-Source: AGHT+IEWAK3JFExWahUmBsHLwr/ziVrAOvKL0PT+p2lqzhYBahWcqYUkqP1hHcjvd3+NpmVM4Q2cS9uTbtutnyM9Dsw= X-Received: by 2002:a05:6830:6c0f:b0:72b:7d40:5fe2 with SMTP id 46e09a7af769-73a27a84bb4mr705966a34.12.1749787101899; Thu, 12 Jun 2025 20:58:21 -0700 (PDT) MIME-Version: 1.0 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> <4568b6be-5520-4804-aa03-6e4b46afa665@oss.nttdata.com> In-Reply-To: <4568b6be-5520-4804-aa03-6e4b46afa665@oss.nttdata.com> From: "David G. Johnston" Date: Thu, 12 Jun 2025 20:57:45 -0700 X-Gm-Features: AX0GCFvLsHAxr99oQhiESLbRM432p1QtCzAY3xys8eLWhcAFymBqCiHMqCmcPiY Message-ID: Subject: Re: Suggestions for improving \conninfo output in v18 To: Fujii Masao Cc: Robert Treat , "pgsql-hackers@postgresql.org" Content-Type: multipart/alternative; boundary="000000000000a42f4d06376c0ed1" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a42f4d06376c0ed1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 12, 2025 at 8:05=E2=80=AFPM Fujii Masao wrote: > On 2025/06/04 20:18, Fujii Masao wrote: > > > 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 > thread. > > 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 > behavior 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 > protocol > 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? > > You should get the concurrence of the RMT. But given that the output is new in v18 anyway my view is the original reworking of this view to be tabular just chose the wrong field to display and that needs to be fixed. Also, I was under the impression that updating relevant documentation for a feature wasn't even subject to RMT review; i.e., 0002 should go in too if it's otherwise committable. The feature it clarifies just changed/was added so having our best docs present at release should be a project goal. David J. --000000000000a42f4d06376c0ed1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jun 12, 2025 at 8:05=E2=80=AFPM Fujii Masao <masao.fujii@oss.nttdata.com> wrote:
On 2025/06/04 20:18, Fujii Masao wrote:

> I've also re-attached the 0001 patch that makes \conninfo report t= he full
> protocol version, it's the same as the one I posted earlier in the= thread.

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 behavior= 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 protocol
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?

You should get the concurrence of the RMT.=C2=A0 But given that t= he output is new in v18 anyway my view is the original reworking of this vi= ew to be tabular just chose the wrong field=C2=A0to display and that needs = to be fixed.

Also, I was under the=C2=A0impression tha= t updating relevant documentation for a=C2=A0feature wasn't even subjec= t to RMT review; i.e., 0002 should go in too if it's otherwise committa= ble.=C2=A0 The feature it clarifies just changed/was added so having our be= st docs present at release should be a project goal.

D= avid J.

--000000000000a42f4d06376c0ed1--