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 1spWi2-0027a9-U9 for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Sep 2024 17:37:23 +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 1spWi2-000Y5n-5o for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Sep 2024 17:37:22 +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 1spWi1-000Y5f-QB for pgsql-hackers@lists.postgresql.org; Sat, 14 Sep 2024 17:37:21 +0000 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1spWhx-001BiY-RB for pgsql-hackers@postgresql.org; Sat, 14 Sep 2024 17:37:21 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id C14A3114011C; Sat, 14 Sep 2024 13:37:17 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Sat, 14 Sep 2024 13:37:17 -0400 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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1726335437; x= 1726421837; bh=mzmFqjs8EmZJc/4CsmzKqnOos7H/zju8BsecwyKMOUE=; b=N irbkWnR+eGq0Sek46OzinnnhTZTsLytlRyyA8e9sy7i8V5J67pXUqr9V8K4WuhPb sDCKDCUmXBWBj0VEfWWN2gFlRR6l428wJFuMvqh5WC3LfbJZyWfjxiHzYa9ItZMN xaqMlO88SkzObp3eV44jZFUG2EF0/gdWp4rpllpCq8awsgVgIz5lnDmwVjAaincf g8ZJh40fpWFADmkuDl+IpGCaQ503nqRAEfc+LQjqy0yqyMUN/KgujpbFEhkdQN9X //aPaHd0wgRiyuzSlJW7Fr6otK8JQ+7YXX7VPTrEgbQNN8QZxBSrqNnIZdhTFwLu uFgRVaHyQNFYB3cXhTLJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudektddgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheff hfejjefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepuddtpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsihhmshgv ihhhsegrmhgriihonhdrtghomhdprhgtphhtthhopehpvghtvghrsegvihhsvghnthhrrg huthdrohhrghdprhgtphhtthhopegvfihivgesvgifihgvrdhnrghmvgdprhgtphhtthho pehhuhhnrghiughpghhmlhesghhmrghilhdrtghomhdprhgtphhtthhopehnrghthhgrnh gusghoshhsrghrthesghhmrghilhdrtghomhdprhgtphhtthhopehgrhgrshhsiheshhho thhmrghilhdrtghomhdrsghrpdhrtghpthhtohepphdrlhhuiigrnhhovhesphhoshhtgh hrvghsphhrohdrrhhupdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshht ghhrvghsqhhlrdhorhhgpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 14 Sep 2024 13:37:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1726335431; bh=pdJmxl+33Pd/pvYHGlPyLwQSckoOjtiucWUvNhOVekQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=pX8Y/H2yWvABIpoJUh8BwK8YmbVXlySKodTtpCDiMz0d5lI67Y16lu3bR2YZl8isi hkeWseCbW8/ztT0wVA9CsFq7+ZF/Ccjr7VS/6DUB09+FgvKvNlpNkf01RXjbOt9q7o aNu9Y3pFFzQdoMQWOCHTgnJg/40R+c3cAL+FvKDsdB5nwD4SITAqXkZ+x3zd2cq4E9 Eqkkt13EuhJkMTZig+KHMLOuillMYNdl3A91ludHYPj2aCZPqQN5QRFp6JZPFuX5+Y Q6wYEWn9H7+kE+EEH6ecL1qD/T1r31GCLyaNiG745fkAGxoOooXDy844rGsFArPQeB +WiUcfHiYNetA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id AAB6AB1; Sat, 14 Sep 2024 19:37:11 +0200 (CEST) Date: Sat, 14 Sep 2024 19:37:11 +0200 From: Alvaro Herrera To: Hunaid Sohail Cc: Jim Jones , Maiquel Grassi , Nathan Bossart , "Imseih (AWS), Sami" , Peter Eisentraut , Tom Lane , Pavel Luzanov , Erik Wienhold , "pgsql-hackers@postgresql.org" Subject: Re: Psql meta-command conninfo+ Message-ID: <202409141737.kordblqr6tjv@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 2024-Sep-14, Hunaid Sohail wrote: > I agree that both messages should be printed together. IMO the message > "You are connected to database..." should be printed at the top, no? > Because it shows important info that the user may be interested to see > first. Then we can combine the ssl message. > > postgres=# \x > Expanded display is on. > postgres=# \conninfo+ > You are connected to database "postgres" as user "hunaid" on host > "localhost" (address "127.0.0.1") at port "5430". > SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, > compression: off, ALPN: postgresql) > Connection Information > -[ RECORD 1 ]--------+------- > Protocol Version | 3 > SSL Connection | yes > GSSAPI Authenticated | no > Client Encoding | UTF8 > Server Encoding | UTF8 > Session User | hunaid > Backend PID | 109092 I don't understand why this is is printing half the information in free-form plain text and the other half in tabular format. All these items that you have in the free-form text lines should be part of the table, I think. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ #error "Operator lives in the wrong universe" ("Use of cookies in real-time system development", M. Gleixner, M. Mc Guire)