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 1kClGG-0000qE-DK for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2020 14:58: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 1kClGE-0005Uc-JN for pgsql-hackers@arkaria.postgresql.org; Mon, 31 Aug 2020 14:58:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kClGE-0005UV-CV for pgsql-hackers@lists.postgresql.org; Mon, 31 Aug 2020 14:58:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kClGB-0004eh-Ru for pgsql-hackers@lists.postgresql.org; Mon, 31 Aug 2020 14:58:17 +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 07VEwBPf3959105; Mon, 31 Aug 2020 10:58:11 -0400 From: Tom Lane To: Alvaro Herrera cc: Tomas Vondra , Tatsuro Yamada , Julien Rouhaud , Pavel Stehule , PostgreSQL Hackers Subject: Re: list of extended statistics on psql In-reply-to: <20200831142838.GA30609@alvherre.pgsql> References: <20200831142838.GA30609@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 31 Aug 2020 10:28:38 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3959103.1598885891.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 31 Aug 2020 10:58:11 -0400 Message-ID: <3959104.1598885891@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > If we do put each type in its own row -- at least "logical" row, say > string_agg(unnest(array_of_types), '\n') -- then we can put the size of = each type > in a separate column with string_agg(unnest(array_of_sizes), '\n') = > statname | definition | type | size > ----------+-----------------+--------------------------+----------- > someobj | (a, b) FROM tab | n-distinct: built | 2000 bytes > | func-dependencies: built | 4000 bytes > another | (a, c) FROM tab | n-distint: enabled | I guess I'm wondering why the size is of such interest that we need it at all here. regards, tom lane