Re: partition tree inspection functions
Amit Langote <langote_amit_f8@lab.ntt.co.jp>
From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2018-06-28T08:59:11Z
Lists: pgsql-hackers
On 2018/06/28 17:40, Peter Eisentraut wrote: > On 6/26/18 07:08, Amit Langote wrote: >> As discussed a little while back [1] and also recently mentioned [2], here >> is a patch that adds a set of functions to inspect the details of a >> partition tree. There are three functions: >> >> pg_partition_parent(regclass) returns regclass >> pg_partition_root_parent(regclass) returns regclass >> pg_partition_tree_tables(regclass) returns setof regclass > > Does this add anything over writing a recursive query on pg_inherits? As far as the information output is concerned, it doesn't. Thanks, Amit
Commits
-
Add pg_partition_tree to display information about partitions
- d5eec4eefde7 12.0 landed