]> begriffs open source - ai-pg/blob - full-docs/txt/catalog-pg-partitioned-table.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / catalog-pg-partitioned-table.txt
1
2 52.37. pg_partitioned_table #
3
4    The catalog pg_partitioned_table stores information about how tables
5    are partitioned.
6
7    Table 52.37. pg_partitioned_table Columns
8
9    Column Type
10
11    Description
12
13    partrelid oid (references pg_class.oid)
14
15    The OID of the pg_class entry for this partitioned table
16
17    partstrat char
18
19    Partitioning strategy; h = hash partitioned table, l = list partitioned
20    table, r = range partitioned table
21
22    partnatts int2
23
24    The number of columns in the partition key
25
26    partdefid oid (references pg_class.oid)
27
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
30    default partition
31
32    partattrs int2vector (references pg_attribute.attnum)
33
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.
39
40    partclass oidvector (references pg_opclass.oid)
41
42    For each column in the partition key, this contains the OID of the
43    operator class to use. See pg_opclass for details.
44
45    partcollation oidvector (references pg_collation.oid)
46
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
49    collatable data type.
50
51    partexprs pg_node_tree
52
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.