Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nx8yK-00022T-0l for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jun 2022 15:12:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nx8yI-0008A4-TP for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Jun 2022 15:12:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nx8yI-00089v-KC for pgsql-hackers@lists.postgresql.org; Fri, 03 Jun 2022 15:12:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nx8yG-0004K4-CZ for pgsql-hackers@lists.postgresql.org; Fri, 03 Jun 2022 15:12:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 253FCBvW216602; Fri, 3 Jun 2022 11:12:11 -0400 From: Tom Lane To: Nathan Bossart cc: "Thibaud W." , pgsql-hackers@lists.postgresql.org Subject: Re: Proposal: adding a better description in psql command about large objects In-reply-to: <20220603143921.GA2624579@nathanxps13> References: <43f0439c-df3e-a045-ac99-af33523cc2d4@dalibo.com> <20220602214625.GA2494933@nathanxps13> <2e872233-1642-439c-dd94-56fc25d398cb@dalibo.com> <20220603143921.GA2624579@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Fri, 03 Jun 2022 07:39:21 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <216600.1654269131.1@sss.pgh.pa.us> Date: Fri, 03 Jun 2022 11:12:11 -0400 Message-ID: <216601.1654269131@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > Yes, it looks like the precedent is to have an fprintf() per command. I > still think the indentation needs some adjustment for readability. In the > attached, I've lined up all the large object commands. This is offset from > most other commands, but IMO this is far easier to read, and something > similar was done for the operator class/family commands. Thoughts? Generally +1 here. The other style that is used in some places is to put the description on a separate line, but given that we're setting the indent for a whole command group I think this looks better. A couple of other random thoughts: * How about "write large object to file" and "read large object from file"? As it stands, if you are not totally sure which direction is export and which is import, this description teaches you little. * While we're here, it seems like this whole group was placed at the end because of add-it-to-the-end-itis, not because that was the most logical place for it. The other commands that interact with the server are mostly further up. My first thought is to move it to just after the "Informational" group, but I'm not especially set on that. Making it not-last might make it harder to get away with the inconsistent indentation, though. regards, tom lane