On 2019-Feb-08, Michael Paquier wrote:
> 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.
I noticed days ago that if you call pg_partition_root on the topmost
partitioned table, the server crashes :-)
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services