pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: mahadevan@rapidloop.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15245: pg_stat_all_tables does not include partition master tables
Date: Sun, 17 Jun 2018 21:06:53 +0900
Message-ID: <20180617120653.GD1411@paquier.xyz> (raw)
In-Reply-To: <152922564661.24801.3078728743990100425@wrigleys.postgresql.org>
References: <152922564661.24801.3078728743990100425@wrigleys.postgresql.org>

On Sun, Jun 17, 2018 at 08:54:06AM +0000, PG Bug reporting form wrote:
> The system view pg_catalog.pg_stat_all_tables (and therefore also
> pg_catalog.pg_stat_user_tables) do not list partition master tables (CREATE
> TABLE ... PARTITION BY ..).
> 
> This is because it only includes rows from pg_class with relkind IN ('r',
> 't', 'm')  (as defined in src/backend/catalog/system_views.sql).
> 
> IMHO, it should also include rows with relkind = 'p'.

Why?  A parent partition has no physical presence and no data of its
own.
--
Michael

Attachments:

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

view thread (16+ messages)  latest in thread

Message-ID: <20180617120653.GD1411@paquier.xyz>
Permalink:  ../20180617120653.GD1411@paquier.xyz/
Also on:    postgresql.org/message-id/20180617120653.GD1411@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, mahadevan@rapidloop.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #15245: pg_stat_all_tables does not include partition master tables
  In-Reply-To: <20180617120653.GD1411@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