pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: mahadevan@rapidloop.com
Subject: BUG #15245: pg_stat_all_tables does not include partition master tables
Date: Sun, 17 Jun 2018 08:54:06 +0000
Message-ID: <152922564661.24801.3078728743990100425@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15245
Logged by:          Mahadevan Ramachandran
Email address:      mahadevan@rapidloop.com
PostgreSQL version: 10.4
Operating system:   any
Description:        

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'.



view thread (16+ messages)  latest in thread

Message-ID: <152922564661.24801.3078728743990100425@wrigleys.postgresql.org>
Permalink:  ../152922564661.24801.3078728743990100425@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/152922564661.24801.3078728743990100425@wrigleys.postgresql.org

 · 

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: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, mahadevan@rapidloop.com
  Subject: Re: BUG #15245: pg_stat_all_tables does not include partition master tables
  In-Reply-To: <152922564661.24801.3078728743990100425@wrigleys.postgresql.org>

* 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