Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fUnIL-00034w-Dz for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jun 2018 06:05:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fUnIK-0000Kt-02 for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Jun 2018 06:05:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fUnIJ-0000Kk-Q0 for pgsql-bugs@lists.postgresql.org; Mon, 18 Jun 2018 06:05:39 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fUnIG-0002lz-2H for pgsql-bugs@lists.postgresql.org; Mon, 18 Jun 2018 06:05:39 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 646C921B4E; Mon, 18 Jun 2018 02:05:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 18 Jun 2018 02:05:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=aR2D89YWxIf1s+VAvUY2iYGe8bb4rGNqSz+KvoJTpUc=; b=iidfJuFN UKZwFn8svid7T2uqZYGNAXm9PJzC4u4xWzQLiS19anJIXnZ325CZ51gx2xEe6N2t 53DdSqOR/tM0WF3mAN18rVYw/986UuzSvcUbskyJmdCoUWJaCutODsggBws8DXxl s/EcM3vPRmk2c7bhQ8NMNOT2ipNwQLmqQtmzlXLqIBvtX2JbA0gh0qXA6hI17BDl rXJvdSe8T3cqBNXJW5lx6YShSYRDen958bPE0r4mDfLM0Dq326W/yRovlkYBeGGJ MvhdEvubKLTHHaHzXkgz7A23WYbflLstgtfCud8wjJiQPLGJ5Ity+OiKCufelh2Y aaMFAOVsnPScNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=aR2D89YWxIf1s+VAvUY2iYGe8bb4r GNqSz+KvoJTpUc=; b=Q1CvclYJIzSorVPzZvXwM1ZXTvbaODKa178LWPCnhtRM2 Om4WBcWKqtvFhyIhpAHalOut/YvwerR26y56fA7loZE/+pZKT9CLD8YgVtn4YRLT Ipw9dT3Az9YFDDMY2jqnr8wQ+6740qXi8w2xDCjQqSnJI6ni9M2EfAiiBTEQpjNo sFWnMBDobfPJjlhqS/6XCR/v2uRDj2QY1lYQduYwfHPWB3K1r3wkUWRLcON3Blhc EBSf3U+02EJQnEzw07AFqbZFpAhoFISbbD68t1PXs8kD4v9lc9bSvBPb/Sh3cCl6 v7kxyDLJZzfyGb8fctLG8yGdlzNJhivlRtHLemI5w== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 0ED2B1032D; Mon, 18 Jun 2018 02:05:32 -0400 (EDT) Date: Mon, 18 Jun 2018 15:05:30 +0900 From: Michael Paquier To: David Rowley Cc: mahadevan@rapidloop.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15245: pg_stat_all_tables does not include partition master tables Message-ID: <20180618060530.GH3721@paquier.xyz> References: <152922564661.24801.3078728743990100425@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="82evfD9Ogz2JrdWZ" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --82evfD9Ogz2JrdWZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 18, 2018 at 05:49:47PM +1200, David Rowley wrote: > FWIW there was a similar discussion of whether > pg_relation_size('') should report the sizes of all > its partitions in [1]. Most people seemed to vote to leave it > returning 0. >=20 > Some of the same reasoning might apply to this case. >=20 > [1] https://www.postgresql.org/message-id/495cec7e-f8d9-7e13-4807-90dbf4e= ec4ea@lab.ntt.co.jp Having a wrapper on top of find_all_inheritors() which grabs all the relations in a partition tree would be more helpful for all those cases in my opinion, and this could just aggregate with pg_relation_size. That's also discussed at the bottom of the thread David is mentioning. It would be nice to get that into v12. -- Michael --82evfD9Ogz2JrdWZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlsnS6oACgkQnvQgOdby QH32JA/+JLlZR62ryrlkVMLliwhAWeyILZS0trX8HkEAxd2TSUHeOwyncSV7NIgE F5YgF2HjCpU3BGF09CEwSqSl0FbBgZ8PryIvWEVML4TfW+RrqJRbQl1L/Y0Oxsi9 KxBSuWlbOC97gIL3BcaPoBgBBoYTlNRm2wlt0IhhcUHIAgCud0zY9/ms8BlV39C0 2pboWFStD/BYYBcoalFvfg4Jcalgk/VbVboQkkx8Kbxj4J1xJWp81t7ZPPxKqI6V kY4BontrhZFOa3Y8BEqUPgK/8kXR3NVGJ719UaXRjWD6pa1QTBNSWXTehSK58At0 7wK2umxTD4hStVFOu2twU9Ark0O8MeuGtXSj/LKVG5jo7wUUvFKbAuwrLB76djvW xjcJCZrf7Ys0Nu3/S+o7rDQqTUbAC6qcLDYVd4qxvx0SYwT0mcjjHg6pKmZdjDK9 z3GNUcyMWJ8kmBN27O8iGF5kIKIDJ8ryFS5vPwNgAmghYBCB8ikpu+0r5FDeFK0q e2qU3ZrGVXfJnYnOho0/iGPv5f1y84f3MhHXRx6nD7J8V/l/S5fSkVhSF9FhxXYj UMWqvMM2jjDz7BmACU/2U9n3OQon1uT+eHG7tWFdpW3fRztsSugj3J20oSPPrZ9A oygwjThk0SIKjzmQ60Zzxnk1IF1EIjZRuUvFtzlEebMSNTWOXhs= =Ey1y -----END PGP SIGNATURE----- --82evfD9Ogz2JrdWZ--