pg_partition_root ( regclass ) → regclassReturns the top-most parent of the partition tree to which the given relation belongs. Returns
NULL if the relation does not exist or is not a partition or partitioned table.Functions / System Administration Functions
Returns the top-most parent of the partition tree to which the given relation belongs.
Reading PG 18current·documented in 9 of 27 versions, 12 to 20
pg_partition_root ( regclass ) → regclassReturns the top-most parent of the partition tree to which the given relation belongs. Returns
NULL if the relation does not exist or is not a partition or partitioned table.Definition snapshot: b7bd9cda · English manual source