pg_partition_root ( regclass ) → 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.Returns 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.
English manual coverage begins with PostgreSQL 7.1. Source history and runtime observations have their own recorded version boundaries.
Reading PG 18·Select a recorded version
NULL if the relation does not exist or is not a partition or partitioned table.pg_partition_root ( regclass ) → 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.{"inputs":[{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","version":"18.7"},{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"830e894d29fec30b7c350c915fcaed4a63b24d57f2c96150bf25fa07fb43849c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}Full definition and evidence JSON
center · PostgreSQL 18 · wiki-repair-20261023:18a3c22c6e87fb0a6c0ad7b44412f0a300b2e41c18b38532526e7d0056f77932
Text language: en · wiki-repair-20261023:18a3c22c6e87fb0a6c0ad7b44412f0a300b2e41c18b38532526e7d0056f77932