PostgreSQL Source Code  git master
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.

Macros

#define PartitionedRelidIndexId   3351
 

Typedefs

typedef FormData_pg_partitioned_tableForm_pg_partitioned_table
 

Functions

 CATALOG (pg_partitioned_table, 3350, PartitionedRelationId)
 
 DECLARE_TOAST (pg_partitioned_table, 4165, 4166)
 
 DECLARE_UNIQUE_INDEX (pg_partitioned_table_partrelid_index, 3351, on pg_partitioned_table using btree(partrelid oid_ops))
 

Variables

 FormData_pg_partitioned_table
 

Macro Definition Documentation

◆ PartitionedRelidIndexId

#define PartitionedRelidIndexId   3351

Definition at line 70 of file pg_partitioned_table.h.

Typedef Documentation

◆ Form_pg_partitioned_table

Function Documentation

◆ CATALOG()

CATALOG ( pg_partitioned_table  ,
3350  ,
PartitionedRelationId   
)

Definition at line 30 of file pg_partitioned_table.h.

References BKI_FORCE_NOT_NULL.

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

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_partitioned_table  ,
4165  ,
4166   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_partitioned_table_partrelid_index  ,
3351  ,
on pg_partitioned_table using   btreepartrelid oid_ops 
)

Variable Documentation

◆ FormData_pg_partitioned_table

FormData_pg_partitioned_table

Definition at line 58 of file pg_partitioned_table.h.