pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: psql \dP: list partitioned tables and indexes
Date: Sun, 07 Apr 2019 19:07:39 +0000
Message-ID: <E1hDD8l-0002Pf-W7@gemulon.postgresql.org> (raw)

psql \dP: list partitioned tables and indexes

The new command lists partitioned relations (tables and/or indexes),
possibly with their sizes, possibly including partitioned partitions;
their parents (if not top-level); if indexes show the tables they belong
to; and their descriptions.

While there are various possible improvements to this, having it in this
form is already a great improvement over not having any way to obtain
this report.

Author: Pavel Stěhule, with help from Mathias Brossard, Amit Langote and
        Justin Pryzby.
Reviewed-by: Amit Langote, Mathias Brossard, Melanie Plageman,
        Michaël Paquier, Álvaro Herrera

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1c5d9270e339662cdd78d51d0b859d4f0a11aa91

Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml     |  33 ++++++
src/bin/psql/command.c             |  17 +++
src/bin/psql/describe.c            | 214 +++++++++++++++++++++++++++++++++++++
src/bin/psql/describe.h            |   3 +
src/bin/psql/help.c                |   3 +-
src/bin/psql/tab-complete.c        |  27 ++++-
src/test/regress/expected/psql.out | 131 +++++++++++++++++++++++
src/test/regress/sql/psql.sql      |  69 ++++++++++++
8 files changed, 495 insertions(+), 2 deletions(-)



Message-ID: <E1hDD8l-0002Pf-W7@gemulon.postgresql.org>
Permalink:  ../E1hDD8l-0002Pf-W7@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hDD8l-0002Pf-W7@gemulon.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 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-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: psql \dP: list partitioned tables and indexes
  In-Reply-To: <E1hDD8l-0002Pf-W7@gemulon.postgresql.org>
  References: <E1hDD8l-0002Pf-W7@gemulon.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