pg_partitions
pg_partitions#
The pg_partitions system view is used to show the structure of a partitioned table.
Table 1. pg_catalog.pg_partitions
column |
type |
references |
description |
|---|---|---|---|
|
name |
The name of the schema the partitioned table is in. |
|
|
name |
The name of the top-level parent table. |
|
|
name |
The relation name of the partitioned table (this is the table name to use if accessing the partition directly). |
|
|
name |
The name of the partition (this is the name to use if referring to the partition in an |
|
|
name |
The relation name of the parent table one level up from this partition. |
|
|
name |
The given name of the parent table one level up from this partition. |
|
|
text |
The type of partition (range or list). |
|
|
smallint |
The level of this partition in the hierarchy. |
|
|
bigint |
For range partitions, the rank of the partition compared to other partitions of the same level. |
|
|
smallint |
The rule order position of this partition. |
|
|
text |
For list partitions, the list value(s) associated with this partition. |
|
|
text |
For range partitions, the start value of this partition. |
|
|
boolean |
|
|
|
text |
For range partitions, the end value of this partition. |
|
|
boolean |
|
|
|
text |
The |
|
|
boolean |
|
|
|
text |
The entire partition specification for this partition. |
|
|
name |
The tablespace of parent table. |
|
|
name |
The tablespace of the partation table. |