PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_partitioned_table.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_partitioned_table_d.h"
Include dependency graph for pg_partitioned_table.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BEGIN_CATALOG_STRUCT CATALOG (pg_partitioned_table, 3350, PartitionedRelationId)
 
 DECLARE_TOAST (pg_partitioned_table, 4165, 4166)
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_partitioned_table_partrelid_index, 3351, PartitionedRelidIndexId, pg_partitioned_table, btree(partrelid oid_ops))
 
 MAKE_SYSCACHE (PARTRELID, pg_partitioned_table_partrelid_index, 32)
 
 DECLARE_ARRAY_FOREIGN_KEY_OPT ((partrelid, partattrs), pg_attribute,(attrelid, attnum))
 

Variables

END_CATALOG_STRUCT typedef FormData_pg_partitioned_tableForm_pg_partitioned_table
 
 FormData_pg_partitioned_table
 

Function Documentation

◆ CATALOG()

Definition at line 32 of file pg_partitioned_table.h.

33{
34 Oid partrelid BKI_LOOKUP(pg_class); /* partitioned table oid */
35 char partstrat; /* partitioning strategy */
36 int16 partnatts; /* number of partition key columns */
37 Oid partdefid BKI_LOOKUP_OPT(pg_class); /* default partition oid;
38 * 0 if there isn't one */
39
40 /*
41 * variable-length fields start here, but we allow direct access to
42 * partattrs via the C struct. That's because the first variable-length
43 * field of a heap tuple can be reliably accessed using its C struct
44 * offset, as previous fields are all non-nullable fixed-length fields.
45 */
46 int2vector partattrs BKI_FORCE_NOT_NULL; /* each member of the array is
47 * the attribute number of a
48 * partition key column, or 0
49 * if the column is actually
50 * an expression */
51
52#ifdef CATALOG_VARLEN
54 * compare keys */
55 oidvector partcollation BKI_LOOKUP_OPT(pg_collation) BKI_FORCE_NOT_NULL; /* user-specified
56 * collation for keys */
57 pg_node_tree partexprs; /* list of expressions in the partition key;
58 * one item for each zero entry in partattrs[] */
59#endif
int16_t int16
Definition c.h:583
#define BKI_LOOKUP(catalog)
Definition genbki.h:65
#define BKI_LOOKUP_OPT(catalog)
Definition genbki.h:66
#define BKI_FORCE_NOT_NULL
Definition genbki.h:52
FormData_pg_partitioned_table
unsigned int Oid
static int fb(int x)
Definition c.h:787

References BKI_FORCE_NOT_NULL, BKI_LOOKUP, BKI_LOOKUP_OPT, and fb().

◆ DECLARE_ARRAY_FOREIGN_KEY_OPT()

DECLARE_ARRAY_FOREIGN_KEY_OPT ( (partrelid, partattrs)  ,
pg_attribute  ,
(attrelid, attnum  
)

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_partitioned_table  ,
4165  ,
4166   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_partitioned_table_partrelid_index  ,
3351  ,
PartitionedRelidIndexId  ,
pg_partitioned_table  ,
btree(partrelid oid_ops  
)

◆ MAKE_SYSCACHE()

MAKE_SYSCACHE ( PARTRELID  ,
pg_partitioned_table_partrelid_index  ,
32   
)

Variable Documentation

◆ Form_pg_partitioned_table

◆ FormData_pg_partitioned_table

FormData_pg_partitioned_table

Definition at line 60 of file pg_partitioned_table.h.