2 52.37. pg_partitioned_table #
4 The catalog pg_partitioned_table stores information about how tables
7 Table 52.37. pg_partitioned_table Columns
13 partrelid oid (references pg_class.oid)
15 The OID of the pg_class entry for this partitioned table
19 Partitioning strategy; h = hash partitioned table, l = list partitioned
20 table, r = range partitioned table
24 The number of columns in the partition key
26 partdefid oid (references pg_class.oid)
28 The OID of the pg_class entry for the default partition of this
29 partitioned table, or zero if this partitioned table does not have a
32 partattrs int2vector (references pg_attribute.attnum)
34 This is an array of partnatts values that indicate which table columns
35 are part of the partition key. For example, a value of 1 3 would mean
36 that the first and the third table columns make up the partition key. A
37 zero in this array indicates that the corresponding partition key
38 column is an expression, rather than a simple column reference.
40 partclass oidvector (references pg_opclass.oid)
42 For each column in the partition key, this contains the OID of the
43 operator class to use. See pg_opclass for details.
45 partcollation oidvector (references pg_collation.oid)
47 For each column in the partition key, this contains the OID of the
48 collation to use for partitioning, or zero if the column is not of a
51 partexprs pg_node_tree
53 Expression trees (in nodeToString() representation) for partition key
54 columns that are not simple column references. This is a list with one
55 element for each zero entry in partattrs. Null if all partition key
56 columns are simple references.