Re: partition tree inspection functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: partition tree inspection functions
Date
Msg-id b24e77c4-3ac1-7c2e-9359-629385578175@2ndquadrant.com
Whole thread Raw
In response to partition tree inspection functions  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Responses Re: partition tree inspection functions
List pgsql-hackers
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?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Copy function for logical replication slots
Next
From: Amit Langote
Date:
Subject: Re: partition tree inspection functions