{"Entry":{"collection":"func","key":"pg-partition-root","name":"pg_partition_root","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"11","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"12"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"0a0b6fac91abf54ec8b2944eda34e5c131d536a288c5d569187173f874b34e59","first_version":"12","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.594782+08:00","last_version":"20","name":"pg_partition_root","name_key":"pg_partition_root","position":29071,"present_in":["12","13","14","15","16","17","18","19","20"],"signature":"pg_partition_root ( regclass ) → regclass","signature_count":1,"slug":"pg-partition-root","source_rev":"b7bd9cda","summary":"Returns the top-most parent of the partition tree to which the given relation belongs.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-partition-root","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-partition-root","SourceRevision":"b7bd9cda","Facts":{"description":"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.","description_html":"Returns the top-most parent of the partition tree to which the given relation belongs. Returns \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the relation does not exist or is not a partition or partitioned table.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-PARTITION","file":"functions-admin.html","slug":"18"},"group":"admin","group_label":"System Administration Functions","lang":"en","layout":"table-new","pages":["functions-admin.html"],"prose_only":false,"signatures":[{"description":"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.","description_html":"Returns the top-most parent of the partition tree to which the given relation belongs. Returns \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the relation does not exist or is not a partition or partitioned table.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_partition_root\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregclass\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregclass\u003c/code\u003e","returns":"regclass","text":"pg_partition_root ( regclass ) → regclass","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-PARTITION","file":"functions-admin.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-partition-root","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_partition_root","Summary":"返回给定关系所属的分区树的最顶级父节点。如果关系不存在，或者不是分区或分区表，则返回NULL。","BodyHTML":"返回给定关系所属的分区树的最顶级父节点。如果关系不存在，或者不是分区或分区表，则返回\u003ccode\u003eNULL\u003c/code\u003e。\u003cpre\u003epg_partition_root ( regclass ) → regclass\u003c/pre\u003e返回给定关系所属的分区树的最顶级父节点。如果关系不存在，或者不是分区或分区表，则返回\u003ccode\u003eNULL\u003c/code\u003e。","SourceRevision":"2026-09-12T08:18:26.491985+00:00@e2a86b52","ContentHash":"f90449c3421d74a20151b5b3f85deebf731545d79b00d0247974b420ea000a0d","Payload":{"description_zh":"返回给定关系所属的分区树的最顶级父节点。如果关系不存在，或者不是分区或分区表，则返回NULL。","description_zh_html":"返回给定关系所属的分区树的最顶级父节点。如果关系不存在，或者不是分区或分区表，则返回\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。","signatures":[{"description_zh":"返回给定关系所属的分区树的最顶级父节点。如果关系不存在，或者不是分区或分区表，则返回NULL。","description_zh_html":"返回给定关系所属的分区树的最顶级父节点。如果关系不存在，或者不是分区或分区表，则返回\u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e。","returns":"regclass","text":"pg_partition_root ( regclass ) → regclass","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"6151029c69e1115c5bcb33bd292583762f0355da035f4c89fc11f89f77fcc829","Text":"pg_partition_root ( regclass ) → regclass","Returns":"regclass","Payload":{"description":"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.","description_html":"Returns the top-most parent of the partition tree to which the given relation belongs. Returns \u003ccode class=\"literal\"\u003eNULL\u003c/code\u003e if the relation does not exist or is not a partition or partitioned table.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_partition_root\u003c/code\u003e ( \u003ccode class=\"type\"\u003eregclass\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eregclass\u003c/code\u003e","returns":"regclass","text":"pg_partition_root ( regclass ) → regclass","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
