PostgreSQL Source Code: src/include/utils/partcache.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11#ifndef PARTCACHE_H
12#define PARTCACHE_H
13
21
22
23
24
26{
30
32
33
37
38
40
41
49
50
54
55
56
57
58static inline int
60{
61 return key->strategy;
62}
63
64static inline int
66{
67 return key->partnatts;
68}
69
70static inline List *
72{
73 return key->partexprs;
74}
75
76
77
78
79static inline int16
81{
82 return key->partattrs[col];
83}
84
85static inline Oid
87{
88 return key->parttypid[col];
89}
90
91static inline int32
93{
94 return key->parttypmod[col];
95}
96
97static inline Oid
99{
100 return key->partcollation[col];
101}
102
103#endif
static int get_partition_strategy(PartitionKey key)
static int32 get_partition_col_typmod(PartitionKey key, int col)
static int16 get_partition_col_attnum(PartitionKey key, int col)
List * RelationGetPartitionQual(Relation rel)
struct PartitionKeyData PartitionKeyData
static int get_partition_natts(PartitionKey key)
Expr * get_partition_qual_relid(Oid relid)
static Oid get_partition_col_typid(PartitionKey key, int col)
static List * get_partition_exprs(PartitionKey key)
static Oid get_partition_col_collation(PartitionKey key, int col)
PartitionKey RelationGetPartitionKey(Relation rel)
PartitionStrategy strategy