↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Administration Functions

pg_partition_root

Read the PG 18 manual

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

Signatures & examples

pg_partition_root ( regclass ) → regclass
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.
Version history 2
  1. 12 → 13 changed
  2. 11 → 12 added

Definition snapshot: b7bd9cda · English manual source