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 1uZMRB-002FKJ-V9 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jul 2025 04:29:42 +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 1uZMR9-00DIn3-P0 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jul 2025 04:29:40 +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 1uZMR9-00DImn-0c for pgsql-hackers@lists.postgresql.org; Wed, 09 Jul 2025 04:29:40 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uZMR7-006KWY-1y for pgsql-hackers@lists.postgresql.org; Wed, 09 Jul 2025 04:29:38 +0000 Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfhigh.phl.internal (Postfix) with ESMTP id CA569140019A; Wed, 9 Jul 2025 00:29:36 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Wed, 09 Jul 2025 00:29:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1752035376; x=1752121776; bh=F9DuO5j5sn CU79p+Q4bFFVAPk/4aNAuvr657/rlB9II=; b=UqvLmvd/EjS6bj4rd0gkasPWBe ToSviLkV3ZSiBbpFxN0wjFvjZfjDWZ+TWF6hbeAH2mf37I1vNr8eHH4TcA416ZFT vwgKsPeROR5AYXQsDa9e+Q/Mr7c317Uk74meplYHSVhJrGg2EhRCbWsmjOq7179U m/0YX804DGKfz5zbrqSMIdf2gR2zdcz1CsNZBM4Vu7NrO92BRSieEOPFcwlrH5aa 4mr95fiDWJd6Eg17z69q0eBorRV4aqpBJ5NF0H5enUzGE5UtdovgfFr2PI7sMjhN M3PylGGvTh8vf41hNwsS2/lEuYKhTOq/utnNxkN+kfddcGJNjf52k9mLzqYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1752035376; x=1752121776; bh=F9DuO5j5snCU79p+Q4bFFVAPk/4aNAuvr65 7/rlB9II=; b=Q+sCNYHjOt87FbVMKXKemkDwc1gs4Fbt4dDSWEKpv0cK1uPQkPl QFu34HSK11CPeicxxMImThb6IVxlnOAfiPgAnPhodl+4QrhtB7JBbD7G9jxz9f9h oWDawFZjvtxUglESBESfo0Nb+UXg7A1EuBNFeLoQG/DxoK9J5NtW2aiebtXujeLl R91h1yhnHyrpfZ5qFX1VwUUF9Q/HEYJ4FkaSIKq87oYV6Fw84S32owdrJ//Ja+Zx uVmLPQtXkbrBo/BZ19ZEygrJpzT7QUxP/YEwqGNFpkuzy1S7xv393uCSXZ4yDONJ 3onMUY+qGwVGj3dAP30KAal9DXoT71bjCSg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdefieeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlh cuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvden ucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprghquh hivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeggeff hfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiipdhn sggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehnohgrhh eslhgvrggusghorghtrdgtohhmpdhrtghpthhtohepmhgsrghntghksehgmhigrdhnvght pdhrtghpthhtohephhhtrghmfhhiughssehgmhgrihhlrdgtohhmpdhrtghpthhtohepph hgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Jul 2025 00:29:34 -0400 (EDT) Date: Wed, 9 Jul 2025 13:29:17 +0900 From: Michael Paquier To: Noah Misch Cc: Michael Banck , Greg Sabino Mullane , PostgreSQL Hackers Subject: Re: [PATCH] Add support for displaying database service in psql prompt Message-ID: References: <6760a25e.a70a0220.2e9d8f.d542@mx.google.com> <6761397c.df0a0220.68885.210d@mx.google.com> <20250706161319.c1.nmisch@google.com> <20250707030009.b8.nmisch@google.com> <20250709004132.db.nmisch@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/7ScOSMZ5AHXWeH9" Content-Disposition: inline In-Reply-To: <20250709004132.db.nmisch@google.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/7ScOSMZ5AHXWeH9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 08, 2025 at 05:41:32PM -0700, Noah Misch wrote: > I'd prefer not to get involved in decisions affecting only psql efficiency and > psql code cosmetics. Please make that decision without my input. Okay, I have used this more extensible routine then, planning to use it for the other patch. The prompt shortcut retrieves the value using a GetVariable(), rather than looking at the connection options all the time. -- Michael --/7ScOSMZ5AHXWeH9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmht8B0ACgkQnvQgOdby QH2KjBAAhsodU1grxSfFEeSkUx3Ob+bboOJ9JnZ8gBAYcnULdA+gmHPcUZ2zHN04 /VBIKssUtqYCq/DvK3Yzmlvxho7fTs4HKst/H5ZNTbcJY+LmJtNMIo5q5mIX5qjZ kcNtHWLSAE7JbY2+a4FQldZ4HiOZcsUw2LHDpj1Ytbzl3vXW16jLnH0yE2omdS8w nzYp0GNDbiMWx53JflIadSYw2lMsH6oIAmMrMK+Ri8bkJuqacNumLb+HMMpKNacj OuLBWOwIiUivhZxTFgQex5GodG8ONy0Cb9RVDMPngWzjMzjXpTFsNx20sIdVtFli WpBodzk+OynSvtJJxt7OwM3euW7ssmeF4buL/C0MFs3LtwYtguCYO2qa5Bfn9/Hf z1HbjGD5C7UKWuDJlgm7Ubwe8MOoc2uL7iTVRpaPDHng79Pd69cXa7X0N0vTzO59 JXwJZCgYRKDaQlLK7S7VTylQ2vWxSvnfk7n71r8QhTKQP9VduL1aL2SrGBhlRxe8 sUeKowkbvh5we0we+jaEP9Zsppt2Zy3AmjP4mZ47gETH9GhDUCRBOXMfdf2mjKlC yL/z8BQSSDR8TefJIbHtF14fFVNXDCoiZSswIVY5Uk9DyfDKAh0IEa5WoCVNevmF EP3W11gbgvKm0xAgZ/1az6Zgi2f4iwltilK/V5NwSdDIIckjXCQ= =3M8H -----END PGP SIGNATURE----- --/7ScOSMZ5AHXWeH9--