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 1tXceR-00AvDM-MB for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jan 2025 08:51:56 +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 1tXceQ-00GHdQ-8B for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jan 2025 08:51:54 +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 1tXceP-00GHdI-HI for pgsql-hackers@lists.postgresql.org; Tue, 14 Jan 2025 08:51:54 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tXceO-000KLy-1Z for pgsql-hackers@postgresql.org; Tue, 14 Jan 2025 08:51:53 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id 209982540140; Tue, 14 Jan 2025 03:51:50 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Tue, 14 Jan 2025 03:51:50 -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=1736844709; x=1736931109; bh=7 eNrdDNgXC00RhZX5YrQ23qmDcOipSo9jQHGQVGTxd8=; b=koEakKbsMdxfYXhA1 su6xXFxLWhNA/hUgelOGMvvHt68SUg7KZDE4NkMi6RbPg731+Vw1OOyvPhcgTKC9 dhfPEG6If0SmKPv1izqLl0O4VBNaDOZSjE/JgcFLnL090GewKhdZQXDucGw7Dc+N 7u2quGoyLPmQREi/QAqdjvwiP5eNw1ZQbixN79gLkACQE3UCb3ZSb30Vvo0jhHCk yBABPMMyhp9qPZT73HEqfdLatFfzKuZ1KlRs2ZUjMxVTI4r6DJkYB96yCAAYU9m0 yVapp1QFtI0qJmzYi+04dMl1GrA8hjm6GJD4J/hlkJuoJ1mROsWRQ0UIVfFpZk/E hgZ8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudehhedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvheekledufeehleetuddv feeiiedtgfetheduudeflefhfeefveelffffjeeffeenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmpdhprghulhhgrhgrhhgrmhdrtghomhenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopedufedpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepshhimhhsvghihhesrghmrgiiohhnrdgtohhmpdhrtghpthhtoh epphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhrtghpthhtohepvgifihgvsegv fihivgdrnhgrmhgvpdhrtghpthhtohepuggrvhhiugdrghdrjhhohhhnshhtohhnsehgmh grihhlrdgtohhmpdhrtghpthhtohepuggvrghnrdgrrdhrrghshhgvvggusehgmhgrihhl rdgtohhmpdhrtghpthhtohephhhunhgrihguphhgmhhlsehgmhgrihhlrdgtohhmpdhrtg hpthhtohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhrtghpthht ohepshgrmhhimhhsvghihhesghhmrghilhdrtghomhdprhgtphhtthhopehgrhgrshhsih eshhhothhmrghilhdrtghomhdrsghr X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Jan 2025 03:51:47 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1736844705; bh=rSjhcDVBOIFx46m+dvnrjDN3STPiy3Nfi8w9BRzkcgY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=JZ4RX/fgIa+PdUHampWVXD0XV8DM2VwrC3+XGmGG5JDybA5625NUgoEXmhFkmTqkG Ah+XUy7ytGvmHfiBDAILF3KYTm45J5dMxz/zpM9I7rEqPUaNzWvIjFD1O58hoRk9s4 TXtBM2EbAs1DOOv99+ClrxvuICZyjCSfAoBG3/wavRulayNMK7Yopv6UdR42kcujec +4lKMIJkduKro7X+Zi81FP2MuBZclPaqssD+8ynsqI2dwQArTNP+N3i4zXMsK1RQyC Zk88eli7MEuCd6jXPIQ/zq7hhCvJ5k4N+hCHmpV1HCShxSgpdNq/OtrsvL01Ua6j4j tkaPkeCF6zL1g== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id AB8DF329; Tue, 14 Jan 2025 09:51:45 +0100 (CET) Date: Tue, 14 Jan 2025 09:51:45 +0100 From: Alvaro Herrera To: Hunaid Sohail Cc: Dean Rasheed , Sami Imseih , "David G. Johnston" , Maiquel Grassi , "pgsql-hackers@postgresql.org" , Jim Jones , Tom Lane , Nathan Bossart , "Imseih (AWS), Sami" , Peter Eisentraut , Pavel Luzanov , Erik Wienhold Subject: Re: Psql meta-command conninfo+ Message-ID: <202501140851.ikqvuc44gyzf@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-14, Hunaid Sohail wrote: > I'm not attaching the patch as it requires some formatting. Remember pgindent formats code in bulk. A quick useful workflow is to do that first, apply manual adjustments next, run pgindent again afterwards. > I've tried the approach and attached the output. Does this look good? Hmm, I'm not sure I like the third column particularly; it's noisy to have on all the time. I'd leave that for \conninfo++ maybe :-) _If_ we keep the descriptions, I suggest that the majority need to be very short, say three words tops, with exceptions allowed for egregious cases (if any). We should get rid of filler words such as "Displays the" or "Indicates whether". For instance, I'd turn "Indicates if GSSAPI authentication was used for the connection" into "GSSAPI authenticated?" which conveys exactly the same; the ending "?" matches things like "Key?" in \d of an index or the "Default?" column in \dc. It's a boolean, so people know how to read it. > I was wondering how we can show the descriptions of parameters > from PQparameterStatus. We can create an array of descriptions, > but if the order changes somehow, it can mess things up. Definitely avoid writing code that can easily be broken by later changes (future parameter additions and so on). -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "The problem with the facetime model is not just that it's demoralizing, but that the people pretending to work interrupt the ones actually working." -- Paul Graham, http://www.paulgraham.com/opensource.html