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 1kCQgW-0003Oa-Er for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Aug 2020 17:00:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kCQgV-0001Qz-81 for pgsql-hackers@arkaria.postgresql.org; Sun, 30 Aug 2020 17:00:03 +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 1kCQgV-0001Qs-1O for pgsql-hackers@lists.postgresql.org; Sun, 30 Aug 2020 17:00:03 +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 1kCQgS-0006Cq-QB for pgsql-hackers@lists.postgresql.org; Sun, 30 Aug 2020 17:00:02 +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 07UGxvlp3832338; Sun, 30 Aug 2020 12:59:57 -0400 From: Tom Lane To: Tomas Vondra cc: Alvaro Herrera , Tatsuro Yamada , Julien Rouhaud , Pavel Stehule , PostgreSQL Hackers Subject: Re: list of extended statistics on psql In-reply-to: <20200830164818.b4rl4uk6wzfzrsys@development> References: <20200829225436.atuttqilrcgppqio@development> <20200830163329.GA21915@alvherre.pgsql> <20200830164818.b4rl4uk6wzfzrsys@development> Comments: In-reply-to Tomas Vondra message dated "Sun, 30 Aug 2020 18:48:18 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3832336.1598806797.1@sss.pgh.pa.us> Date: Sun, 30 Aug 2020 12:59:57 -0400 Message-ID: <3832337.1598806797@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > On Sun, Aug 30, 2020 at 12:33:29PM -0400, Alvaro Herrera wrote: >> I wonder how to report that. Knowing that psql \-commands are not meant >> for anything other than human consumption, maybe we can use a format() >> string that says "built: %d bytes" when \dX+ is used (for each stat type), >> and just "built" when \dX is used. What do people think about this? Seems a little too cute to me. > I'd use the same approach as \d+, i.e. a separate column with the size. > Maybe that'd mean too many columns, though. psql already has \d commands with so many columns that you pretty much have to use \x mode to make them legible; \df+ for instance. I don't mind if \dX+ is also in that territory. It'd be good though if plain \dX can fit in a normal terminal window. regards, tom lane