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 1tZq9a-00DZ9b-0A for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jan 2025 11:41:14 +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 1tZq8Y-0019hU-Ig for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Jan 2025 11:40:11 +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 1tZq8X-0019hM-NU for pgsql-hackers@lists.postgresql.org; Mon, 20 Jan 2025 11:40:10 +0000 Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tZq8V-000XiI-2b for pgsql-hackers@postgresql.org; Mon, 20 Jan 2025 11:40:09 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id B842C25400E8; Mon, 20 Jan 2025 06:40:06 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Mon, 20 Jan 2025 06:40:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1737373206; x=1737459606; bh=P nreFNH5LzZKHBnYgQNsx4CzKO0aAZkAQlK2yktHxdI=; b=q6QAW66plH+Z+DgTE MBRIn3MSX8NMx79CTgUx/MFpn3Rr9SWJcvdK4KeJ+YpFR7Uz4VO+o4M0GN1/zVLf LOMbDffTdxTZYlYjoZ372O6iAIYl71WX5psNPkgCeyEmCgCuEV9YK9OHIO8l0MA/ B3g//77RQKubOurWmF8hKt5YZ+1Hnz65CVpo+rmZPN1W2qz8UvxxMedlP2Yy6rVu 3+0iqk4rTK7cbD03L6JZSmy9p9EvYOVlzxHCdNjHSYFqDEz4TJS4Ke2GnBtZv7gK 1KXXU/o0Z1Sc/ECJn4wMcG78ZdnTSGB4Op2eBuhMLd7cdnhHzq9UTB/XXlzkAlMZ VqbxA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeen ucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhh drnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffh jeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprh gtphhtthhopedufedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepshhimhhsvghi hhesrghmrgiiohhnrdgtohhmpdhrtghpthhtohepphgvthgvrhesvghishgvnhhtrhgruh htrdhorhhgpdhrtghpthhtohepvgifihgvsegvfihivgdrnhgrmhgvpdhrtghpthhtohep uggrvhhiugdrghdrjhhohhhnshhtohhnsehgmhgrihhlrdgtohhmpdhrtghpthhtohepug gvrghnrdgrrdhrrghshhgvvggusehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhunhgr ihguphhgmhhlsehgmhgrihhlrdgtohhmpdhrtghpthhtohepnhgrthhhrghnuggsohhssh grrhhtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepshgrmhhimhhsvghihhesghhmrghi lhdrtghomhdprhgtphhtthhopehgrhgrshhsiheshhhothhmrghilhdrtghomhdrsghr X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Jan 2025 06:40:05 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1737373203; bh=0ZT5HByYXZarkydxNxTdj7Hk3huXAU45zDRYAd9IEns=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Zy2HHaCvbMMsRaE6HIej6bP8loXUAeewfxWlGS8+YpXzfVudSygQWhxCmGirHsN39 mSQ9q26e0otOh8ruahBDhBOUamRENQyTdNFPvlgImvl/QNx+qTjLxEgVnfY1hD1DBZ zH/8zWzJ6UMBDnsS8krQUpopXCJsP6dimDkfSqyq1+tNthymD5H1XIReiPedERxR9H 4ZHQ+5EtG3WqWLQGh4E08wiQeJAubcn6ekYmE/IexmklntSEpuqmqAkLUjBzA2RT6r i4Vsk8Fk5yv33zfUQJTI6uZ/DIwiyDdIjHy7fWNgASXzvwxhpyA2GxzEkxZgaHKHOc 9Vt5X2PsDzAOg== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 09998A2; Mon, 20 Jan 2025 12:40:03 +0100 (CET) Date: Mon, 20 Jan 2025 12:40:03 +0100 From: Alvaro Herrera To: Sami Imseih Cc: Hunaid Sohail , pgsql-hackers@postgresql.org, "David G. Johnston" , Maiquel Grassi , Jim Jones , Tom Lane , Nathan Bossart , "Imseih (AWS), Sami" , Peter Eisentraut , Pavel Luzanov , Erik Wienhold , Dean Rasheed Subject: Re: Psql meta-command conninfo+ Message-ID: <202501201140.wt4nbx5y2dyl@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Jan-17, Sami Imseih wrote: > > Wait a second, why do we have these here? Aren't they already in > > \dconfig? > > \dconfig is generated by querying pg_settings and this > requires a halthy connection. The parameters being proposed with > \conninfo+ are set in libpq by the server [1] and can be retrieved > even if the connection breaks. > > Some of these parameters may overlap \dconfig, but I don't see > that as a problem. I feel the need to step back and ask, what problem are we solving here? Your explanation isn't wrong, but I'm not sure why does a psql user need all these. I think you wanted to display "is_superuser" and that seems sensible in the context of \conninfo+, and perhaps even "role" and "in_hot_standby" would make sense; but the rest of the parameters that libpq stores do not seem terribly interesting or relevant here. That leads me to also wonder why don't we change \conninfo to have this tabular behavior instead of creating a separate command for it. Why do we need to keep the existing form of \conninfo? To me it seems strictly less useful, as it is harder to read. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "Nunca se desea ardientemente lo que solo se desea por razón" (F. Alexandre)