pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: mahadevan@rapidloop.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15245: pg_stat_all_tables does not include partition master tables
Date: Mon, 18 Jun 2018 15:05:30 +0900
Message-ID: <20180618060530.GH3721@paquier.xyz> (raw)
In-Reply-To: <CAKJS1f9cAMbXym0UE0U_Zfg_qEdnm=RJWPDnEHdU5o3vAGE2Kg@mail.gmail.com>
References: <152922564661.24801.3078728743990100425@wrigleys.postgresql.org>
	<CAKJS1f9cAMbXym0UE0U_Zfg_qEdnm=RJWPDnEHdU5o3vAGE2Kg@mail.gmail.com>

On Mon, Jun 18, 2018 at 05:49:47PM +1200, David Rowley wrote:
> FWIW there was a similar discussion of whether
> pg_relation_size('<partitioned table>') should report the sizes of all
> its partitions in [1].  Most people seemed to vote to leave it
> returning 0.
> 
> Some of the same reasoning might apply to this case.
> 
> [1] https://www.postgresql.org/message-id/495cec7e-f8d9-7e13-4807-90dbf4eec4ea@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

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (16+ messages)  latest in thread

Message-ID: <20180618060530.GH3721@paquier.xyz>
Permalink:  ../20180618060530.GH3721@paquier.xyz/
Also on:    postgresql.org/message-id/20180618060530.GH3721@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, david.rowley@2ndquadrant.com, mahadevan@rapidloop.com
  Subject: Re: BUG #15245: pg_stat_all_tables does not include partition master tables
  In-Reply-To: <20180618060530.GH3721@paquier.xyz>
  References: <152922564661.24801.3078728743990100425@wrigleys.postgresql.org> <CAKJS1f9cAMbXym0UE0U_Zfg_qEdnm=RJWPDnEHdU5o3vAGE2Kg@mail.gmail.com> <20180618060530.GH3721@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox