52.36. pg\_partitioned\_table

| 52.36. `pg_partitioned_table`  |                   |                           |                  |                               |
|:------------------------------:|-------------------|---------------------------|------------------|-------------------------------|
|[Prev](catalog-pg-opfamily.html)|[Up](catalogs.html)|Chapter 52. System Catalogs|[Home](index.html)| [Next](catalog-pg-policy.html)|

---

## 52.36. `pg_partitioned_table`

[]()

 The catalog `pg_partitioned_table` stores information about how tables are partitioned.

**Table 52.36. `pg_partitioned_table` Columns**

|                                                                                                                                                                                                               Column Type<br/><br/> Description                                                                                                                                                                                                               |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                                                                                                                                            `partrelid` `oid` (references [`pg_class`](catalog-pg-class.html).`oid`)<br/><br/> The OID of the [`pg_class`](catalog-pg-class.html) entry for this partitioned table                                                                                                                                             |
|                                                                                                                                                         `partstrat` `char`<br/><br/> Partitioning strategy; `h` = hash partitioned table, `l` = list partitioned table, `r` = range partitioned table                                                                                                                                                         |
|                                                                                                                                                                                            `partnatts` `int2`<br/><br/> The number of columns in the partition key                                                                                                                                                                                            |
|                                                                                             `partdefid` `oid` (references [`pg_class`](catalog-pg-class.html).`oid`)<br/><br/> The OID of the [`pg_class`](catalog-pg-class.html) entry for the default partition of this partitioned table, or zero if this partitioned table does not have a default partition                                                                                              |
|`partattrs` `int2vector` (references [`pg_attribute`](catalog-pg-attribute.html).`attnum`)<br/><br/> This is an array of `partnatts` values that indicate which table columns are part of the partition key. For example, a value of `1 3` would mean that the first and the third table columns make up the partition key. A zero in this array indicates that the corresponding partition key column is an expression, rather than a simple column reference.|
|                                                                                                        `partclass` `oidvector` (references [`pg_opclass`](catalog-pg-opclass.html).`oid`)<br/><br/> For each column in the partition key, this contains the OID of the operator class to use. See [`pg_opclass`](catalog-pg-opclass.html) for details.                                                                                                        |
|                                                                                              `partcollation` `oidvector` (references [`pg_collation`](catalog-pg-collation.html).`oid`)<br/><br/> For each column in the partition key, this contains the OID of the collation to use for partitioning, or zero if the column is not of a collatable data type.                                                                                               |
|                                                                                   `partexprs` `pg_node_tree`<br/><br/> Expression trees (in `nodeToString()` representation) for partition key columns that are not simple column references. This is a list with one element for each zero entry in `partattrs`. Null if all partition key columns are simple references.                                                                                    |

---

|[Prev](catalog-pg-opfamily.html)|[Up](catalogs.html)| [Next](catalog-pg-policy.html)|
|:-------------------------------|:-----------------:|------------------------------:|
|      52.35. `pg_opfamily`      |[Home](index.html) |       52.37. `pg_policy`      |

 // \<![CDATA[ \<-- For SVG support if ('WebSocket' in window) { (function() { function refreshCSS() { var sheets = [].slice.call(document.getElementsByTagName("link")); var head = document.getElementsByTagName("head")[0]; for (var i = 0; i \< sheets.length; ++i) { var elem = sheets[i]; head.removeChild(elem); var rel = elem.rel; if (elem.href && typeof rel != "string" || rel.length == 0 || rel.toLowerCase() == "stylesheet") { var url = elem.href.replace(/(&|\\?)\_cacheOverride=\\d+/, ''); elem.href = url + (url.indexOf('?') \>= 0 ? '&' : '?') + '\_cacheOverride=' + (new Date().valueOf()); } head.appendChild(elem); } } var protocol = window.location.protocol === 'http:' ? 'ws://' : 'wss://'; var address = protocol + window.location.host + window.location.pathname + '/ws'; var socket = new WebSocket(address); socket.onmessage = function(msg) { if (msg.data == 'reload') window.location.reload(); else if (msg.data == 'refreshcss') refreshCSS(); }; console.log('Live reload enabled.'); })(); } // ]]\>