PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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   7
 
#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_partattrs   4
 
#define Anum_pg_partitioned_table_partclass   5
 
#define Anum_pg_partitioned_table_partcollation   6
 
#define Anum_pg_partitioned_table_partexprs   7
 

Typedefs

typedef
FormData_pg_partitioned_table
Form_pg_partitioned_table
 

Functions

 CATALOG (pg_partitioned_table, 3350) BKI_WITHOUT_OIDS
 

Variables

 FormData_pg_partitioned_table
 

Macro Definition Documentation

#define Anum_pg_partitioned_table_partattrs   4

Definition at line 69 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

#define Anum_pg_partitioned_table_partclass   5
#define Anum_pg_partitioned_table_partcollation   6
#define Anum_pg_partitioned_table_partexprs   7
#define Anum_pg_partitioned_table_partnatts   3

Definition at line 68 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

#define Anum_pg_partitioned_table_partrelid   1

Definition at line 66 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

#define Anum_pg_partitioned_table_partstrat   2

Definition at line 67 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

#define Natts_pg_partitioned_table   7

Definition at line 65 of file pg_partitioned_table.h.

Referenced by StorePartitionKey().

#define PartitionedRelationId   3350

Definition at line 28 of file pg_partitioned_table.h.

Referenced by RemovePartitionKeyByRelId(), and StorePartitionKey().

Typedef Documentation

Function Documentation

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 
36  /*
37  * variable-length fields start here, but we allow direct access to
38  * partattrs via the C struct. That's because the first variable-length
39  * field of a heap tuple can be reliably accessed using its C struct
40  * offset, as previous fields are all non-nullable fixed-length fields.
41  */
42  int2vector partattrs; /* each member of the array is the attribute
43  * number of a partition key column, or 0 if
44  * the column is actually an expression */
45 
46 #ifdef CATALOG_VARLEN
47  oidvector partclass; /* operator class to compare keys */
48  oidvector partcollation; /* user-specified collation for keys */
49  pg_node_tree partexprs; /* list of expressions in the partition key;
50  * one item for each zero entry in partattrs[] */
51 #endif
signed short int16
Definition: c.h:255
Definition: c.h:478
unsigned int Oid
Definition: postgres_ext.h:31
FormData_pg_partitioned_table
Definition: c.h:467

Variable Documentation

FormData_pg_partitioned_table

Definition at line 52 of file pg_partitioned_table.h.