PostgreSQL Source Code
git master
|
#include "access/attnum.h"
#include "fmgr.h"
#include "nodes/parsenodes.h"
#include "nodes/pg_list.h"
#include "nodes/primnodes.h"
#include "partitioning/partdefs.h"
#include "utils/relcache.h"
Go to the source code of this file.
Data Structures | |
struct | PartitionKeyData |
Typedefs | |
typedef struct PartitionKeyData | PartitionKeyData |
Functions | |
PartitionKey | RelationGetPartitionKey (Relation rel) |
List * | RelationGetPartitionQual (Relation rel) |
Expr * | get_partition_qual_relid (Oid relid) |
static int | get_partition_strategy (PartitionKey key) |
static int | get_partition_natts (PartitionKey key) |
static List * | get_partition_exprs (PartitionKey key) |
static int16 | get_partition_col_attnum (PartitionKey key, int col) |
static Oid | get_partition_col_typid (PartitionKey key, int col) |
static int32 | get_partition_col_typmod (PartitionKey key, int col) |
static Oid | get_partition_col_collation (PartitionKey key, int col) |
typedef struct PartitionKeyData PartitionKeyData |
|
inlinestatic |
Definition at line 80 of file partcache.h.
References sort-test::key.
Referenced by ExecBuildSlotPartitionKeyDescription(), and has_partition_attrs().
|
inlinestatic |
Definition at line 98 of file partcache.h.
References sort-test::key.
Referenced by transformPartitionBound(), and transformPartitionRangeBounds().
|
inlinestatic |
Definition at line 86 of file partcache.h.
References sort-test::key.
Referenced by ExecBuildSlotPartitionKeyDescription(), transformPartitionBound(), and transformPartitionRangeBounds().
|
inlinestatic |
Definition at line 92 of file partcache.h.
References sort-test::key.
Referenced by transformPartitionBound(), and transformPartitionRangeBounds().
|
inlinestatic |
Definition at line 71 of file partcache.h.
References sort-test::key.
Referenced by has_partition_attrs(), transformPartitionBound(), and transformPartitionRangeBounds().
|
inlinestatic |
Definition at line 65 of file partcache.h.
References sort-test::key.
Referenced by ExecBuildSlotPartitionKeyDescription(), has_partition_attrs(), and transformPartitionBound().
Definition at line 299 of file partcache.c.
References AccessShareLock, AND_EXPR, generate_partition_qual(), get_rel_relispartition(), linitial, list_length(), makeBoolExpr(), NIL, NoLock, relation_close(), and relation_open().
Referenced by pg_get_partconstrdef_string(), and pg_get_partition_constraintdef().
|
inlinestatic |
Definition at line 59 of file partcache.h.
References sort-test::key.
Referenced by transformPartitionBound().
PartitionKey RelationGetPartitionKey | ( | Relation | rel | ) |
Definition at line 51 of file partcache.c.
References RelationData::rd_partkey, RelationData::rd_rel, RelationBuildPartitionKey(), and unlikely.
Referenced by check_new_partition_bound(), CreatePartitionPruneState(), DefineIndex(), ExecBuildSlotPartitionKeyDescription(), ExecInitPartitionDispatchInfo(), find_partition_scheme(), get_qual_for_hash(), get_qual_for_list(), get_qual_for_range(), get_qual_from_partbound(), has_partition_attrs(), RelationBuildPartitionDesc(), satisfies_hash_partition(), set_baserel_partition_key_exprs(), transformPartitionBound(), transformPartitionCmd(), and transformPartitionRangeBounds().
Definition at line 277 of file partcache.c.
References generate_partition_qual(), NIL, and RelationData::rd_rel.
Referenced by ATExecAttachPartition(), DetachAddConstraintIfNeeded(), ExecPartitionCheck(), and set_baserel_partition_constraint().