PostgreSQL Source Code  git master
pg_partitioned_table.h File Reference
#include "catalog/genbki.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 PartitionedRelationId   3350
 
#define Natts_pg_partitioned_table   8
 
#define Anum_pg_partitioned_table_partrelid   1
 
#define Anum_pg_partitioned_table_partstrat   2
 
#define Anum_pg_partitioned_table_partnatts   3
 
#define Anum_pg_partitioned_table_partdefid   4
 
#define Anum_pg_partitioned_table_partattrs   5
 
#define Anum_pg_partitioned_table_partclass   6
 
#define Anum_pg_partitioned_table_partcollation   7
 
#define Anum_pg_partitioned_table_partexprs   8
 

Typedefs

typedef FormData_pg_partitioned_tableForm_pg_partitioned_table
 

Functions

 CATALOG (pg_partitioned_table, 3350) BKI_WITHOUT_OIDS
 

Variables

 FormData_pg_partitioned_table
 

Macro Definition Documentation

◆ Anum_pg_partitioned_table_partattrs

#define Anum_pg_partitioned_table_partattrs   5

Definition at line 72 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

◆ Anum_pg_partitioned_table_partclass

#define Anum_pg_partitioned_table_partclass   6

◆ Anum_pg_partitioned_table_partcollation

#define Anum_pg_partitioned_table_partcollation   7

◆ Anum_pg_partitioned_table_partdefid

#define Anum_pg_partitioned_table_partdefid   4

Definition at line 71 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

◆ Anum_pg_partitioned_table_partexprs

#define Anum_pg_partitioned_table_partexprs   8

◆ Anum_pg_partitioned_table_partnatts

#define Anum_pg_partitioned_table_partnatts   3

Definition at line 70 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

◆ Anum_pg_partitioned_table_partrelid

#define Anum_pg_partitioned_table_partrelid   1

Definition at line 68 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

◆ Anum_pg_partitioned_table_partstrat

#define Anum_pg_partitioned_table_partstrat   2

Definition at line 69 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

◆ Natts_pg_partitioned_table

#define Natts_pg_partitioned_table   8

Definition at line 67 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

◆ PartitionedRelationId

#define PartitionedRelationId   3350

Typedef Documentation

◆ Form_pg_partitioned_table

Function Documentation

◆ CATALOG()

CATALOG ( pg_partitioned_table  ,
3350   
)

Definition at line 30 of file pg_partitioned_table.h.

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; /* each member of the array is the attribute
45  * number of a partition key column, or 0 if
46  * the column is actually an expression */
47 
48 #ifdef CATALOG_VARLEN
49  oidvector partclass; /* operator class to compare keys */
50  oidvector partcollation; /* user-specified collation for keys */
51  pg_node_tree partexprs; /* list of expressions in the partition key;
52  * one item for each zero entry in partattrs[] */
53 #endif
signed short int16
Definition: c.h:293
Definition: c.h:536
unsigned int Oid
Definition: postgres_ext.h:31
FormData_pg_partitioned_table
Definition: c.h:525

Variable Documentation

◆ FormData_pg_partitioned_table

FormData_pg_partitioned_table

Definition at line 54 of file pg_partitioned_table.h.