pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pg_partition_root to display top-most parent of a partition
Date: Fri, 08 Feb 2019 00:07:26 +0000
Message-ID: <E1grthW-00078n-Az@gemulon.postgresql.org> (raw)

Add pg_partition_root to display top-most parent of a partition tree

This is useful when looking at partition trees with multiple layers, and
combined with pg_partition_tree, it provides the possibility to show up
an entire tree by just knowing one member at any level.

Author: Michael Paquier
Reviewed-by: Álvaro Herrera, Amit Langote
Discussion: https://postgr.es/m/20181207014015.GP2407@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3677a0b26bb2f3f72d16dc7fa6f34c305badacce

Modified Files
--------------
doc/src/sgml/func.sgml                       | 11 ++++
src/backend/utils/adt/partitionfuncs.c       | 75 ++++++++++++++++++++++++----
src/include/catalog/catversion.h             |  2 +-
src/include/catalog/pg_proc.dat              |  5 ++
src/test/regress/expected/partition_info.out | 58 +++++++++++++++++++++
src/test/regress/sql/partition_info.sql      | 13 +++++
6 files changed, 153 insertions(+), 11 deletions(-)



view thread (10+ messages)  latest in thread

Message-ID: <E1grthW-00078n-Az@gemulon.postgresql.org>
Permalink:  ../E1grthW-00078n-Az@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1grthW-00078n-Az@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add pg_partition_root to display top-most parent of a partition
  In-Reply-To: <E1grthW-00078n-Az@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