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 1tW9kH-00EbbZ-8B for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 07:47:53 +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 1tW9kG-00D98Y-8E for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2025 07:47:51 +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 1tW9kF-00D98P-TH for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2025 07:47:51 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tW9kC-000s7G-1Y for pgsql-hackers@postgresql.org; Fri, 10 Jan 2025 07:47:50 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-5426f48e501so230444e87.2 for ; Thu, 09 Jan 2025 23:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736495268; x=1737100068; 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=65bsoVi/rS/ZO6kWz0Vp/eeXrpj128uAWyxTwDgdah0=; b=Fd9Du/oL9N5NbiKtocOQftH77sqTgFCX32OFrTV5hQFhW6U8IsQUsFxmAAxNLSQCSx saM51WULTpDdXuK6hnvyzpw1IsoBwYFsYZlsoJ/hrqfRw7s++G0eqfnCz+t02gvQN32Z rh/WWEx3j8/5uJ8DEUjhAsp73ACE45wfI4eDatqPZZ6QuLhzWBnP3SMZOUmRWtX2Kovo rNrwJySBxayzN5VQUbYQciSm//rjBbF1RlivrjXhgvZnljpwB6AvKIwb1LC86LkSz09E P9aWgKOh3fiN4Hrkqeb/94FQiNwgrjEsgt2Pi091DgtjLn/Yvz0cmNlBSDdesxWWjMqM XsTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736495268; x=1737100068; 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=65bsoVi/rS/ZO6kWz0Vp/eeXrpj128uAWyxTwDgdah0=; b=GK5YSJFSIkAhG7nYM1qqlmYb2U+n9+w7Tv7p0LXUHx3DkrfzgcjRrNLVBHWcNLao4k cCkUcpZRzEokOpIxOFLdpMgEgxy+LzJFLMdmmF15bZpxfeOej1tVPHSoJ+QBM+Y21F6/ HJj4swrr4VpQVWIdAUsgKJ+8w0GHmyrjGaxNI6EFQRnrzKsT96goTGofs38+AfLlwmBp /hBndCAgWd62OU3e5upnBci6qUBsJsfR4J52D065A+rJN5BfTDnTbhQO5rn4guKdfFIO wEQ/nC8J5C+W03fhnqZnmbSRXrx0lCphVcH+6EJu9PfPxIsX03n+VZu4QgVYUfjqwl9S k73A== X-Forwarded-Encrypted: i=1; AJvYcCXh6jyXGQ6yqnqWLTr2vg2YOEA0aYWaETIxeOF6lEdFN4ihZJ/nt7BatxECBJQMj/nESCK86elwQINTHnjW@postgresql.org X-Gm-Message-State: AOJu0YxUoo/5AwYLxT1fgCWwkQ7IJTlZim+T/K4EwG2/sGlNy5tJnIgZ UjvHjZQ0zq5ZTHOiwi7fmmYPH8fjd0/4sbXLU9C1fQ2P3kesI8AJMtAkJz8A5QwHs8SE9ptfg5c aNghZMVm4NnqDSYpTf+aPhtsEpJg= X-Gm-Gg: ASbGnct1E/v3pnc2juOu4hrM0W92lIfCaALovBsX8Wl9PVBAGSCznzjQqwZ3/bc5tSj /AoPHm1nPJHD3Nze3g80zYmzjnPCf0AmCItrgxw== X-Google-Smtp-Source: AGHT+IF9o1Qh5CAaIUPFGy30TTmPapenSPvpdh3a3Bk3AmjBtYdFdPd7Wi/OVNgpWYVOad47UEYmA9OnMnel8+ShmxI= X-Received: by 2002:a05:6512:b22:b0:542:70d1:a58c with SMTP id 2adb3069b0e04-542845b3bf8mr1082647e87.11.1736495267593; Thu, 09 Jan 2025 23:47:47 -0800 (PST) MIME-Version: 1.0 References: <202501091910.jcxcnmexdbyb@alvherre.pgsql> In-Reply-To: From: Hunaid Sohail Date: Fri, 10 Jan 2025 12:47:35 +0500 X-Gm-Features: AbW1kvbmtGWQhQ47oUyorUZuQTptNb17F1OJGEIi6YHyzgsCRYchBtX5Zevq_Yw Message-ID: Subject: Re: Psql meta-command conninfo+ To: Sami Imseih Cc: "David G. Johnston" , Alvaro Herrera , Maiquel Grassi , "pgsql-hackers@postgresql.org" , Jim Jones , Tom Lane , Nathan Bossart , "Imseih (AWS), Sami" , Peter Eisentraut , Pavel Luzanov , Erik Wienhold Content-Type: multipart/alternative; boundary="000000000000944503062b554f79" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000944503062b554f79 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, Jan 10, 2025 at 1:50=E2=80=AFAM Sami Imseih w= rote: > > If we go with the 3 column format, then we will just > > have a bunch of repeated values for Category, which > > looks cluttered, IMO. > > "cluttered" is maybe the wrong description. I meant the output > will look overwhelming due to the repeated values :) > +1. To summarize: - Alvaro is not happy with \conninfo+ printing multiple tables and suggests we continue with v35. - Sami is ok with both approaches but thinks that \conninfo+ should also print all parameters from PQparameterStatus in a dynamic way. Also, he suggests to include "role" if we are showing is_superuser. For that, we need two more patches: 1. Mark role as GUC_REPORT with necessary doc changes. 2. Add a new libpq function (perhaps PQparameterNames) to return the names of parameters, so we can also display parameters added in the future, along with doc updates. - David wants category information included. IMO, we should continue with v35 and add all parameters from PQparameterStatus, as Sami suggested. The names themselves are informative enough. Looking forward to your feedback. Regards, Hunaid Sohail --000000000000944503062b554f79 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Fri, Jan 10, 2025 at 1:50=E2= =80=AFAM Sami Imseih <samimseih@gmail.com> wrote:
> If we go with the 3 column format, then we w= ill just
> have a bunch of repeated values for Category, which
> looks cluttered, IMO.

"cluttered" is maybe the wrong description. I meant the output will look overwhelming due to the repeated values :)
<= br>
+1.

To summarize:

- Alvaro is not happy with \conninfo+ printing multiple tables and s= uggests
we continue=C2=A0with v35.

- Sam= i is ok with both approaches but thinks that \conninfo+ should also
print all parameters from=C2=A0PQparameterStatus=C2=A0in a dynamic way. = Also, he
suggests to include "role" if we are showing i= s_superuser.
For that, we need two more patches:
1.=C2= =A0Mark role as GUC_REPORT with necessary doc changes.
2. Add a n= ew libpq function (perhaps PQparameterNames) to return the names
= of parameters, so we can also display parameters added in the future,
=
along with doc updates.

- David wa= nts category information included.

IMO, we should = continue with v35 and add all parameters from PQparameterStatus,
= as Sami suggested. The names themselves are informative enough.
<= br>
Looking forward to your feedback.

Re= gards,
Hunaid Sohail
--000000000000944503062b554f79--