PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_index.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_index_d.h"
Include dependency graph for pg_index.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_index, 2610, IndexRelationId) BKI_SCHEMA_MACRO
 
 DECLARE_TOAST_WITH_MACRO (pg_index, 6351, 6352, PgIndexToastTable, PgIndexToastIndex)
 
 DECLARE_INDEX (pg_index_indrelid_index, 2678, IndexIndrelidIndexId, pg_index, btree(indrelid oid_ops))
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_index_indexrelid_index, 2679, IndexRelidIndexId, pg_index, btree(indexrelid oid_ops))
 
 MAKE_SYSCACHE (INDEXRELID, pg_index_indexrelid_index, 64)
 
 DECLARE_ARRAY_FOREIGN_KEY_OPT ((indrelid, indkey), pg_attribute,(attrelid, attnum))
 

Variables

END_CATALOG_STRUCT typedef FormData_pg_indexForm_pg_index
 
 FormData_pg_index
 

Function Documentation

◆ CATALOG()

BEGIN_CATALOG_STRUCT CATALOG ( pg_index  ,
2610  ,
IndexRelationId   
)

Definition at line 31 of file pg_index.h.

32{
33 Oid indexrelid BKI_LOOKUP(pg_class); /* OID of the index */
34 Oid indrelid BKI_LOOKUP(pg_class); /* OID of the relation it
35 * indexes */
36 int16 indnatts; /* total number of columns in index */
37 int16 indnkeyatts; /* number of key columns in index */
38 bool indisunique; /* is this a unique index? */
39 bool indnullsnotdistinct; /* null treatment in unique index */
40 bool indisprimary; /* is this index for primary key? */
41 bool indisexclusion; /* is this index for exclusion constraint? */
42 bool indimmediate; /* is uniqueness enforced immediately? */
43 bool indisclustered; /* is this the index last clustered by? */
44 bool indisvalid; /* is this index valid for use by queries? */
45 bool indcheckxmin; /* must we wait for xmin to be old? */
46 bool indisready; /* is this index ready for inserts? */
47 bool indislive; /* is this index alive at all? */
48 bool indisreplident; /* is this index the identity for replication? */
49
50 /* variable-length fields start here, but we allow direct access to indkey */
51 int2vector indkey BKI_FORCE_NOT_NULL; /* column numbers of indexed cols,
52 * or 0 */
53
54#ifdef CATALOG_VARLEN
57 int2vector indoption BKI_FORCE_NOT_NULL; /* per-column flags
58 * (AM-specific meanings) */
59 pg_node_tree indexprs; /* expression trees for index attributes that
60 * are not simple column references; one for
61 * each zero entry in indkey[] */
62 pg_node_tree indpred; /* expression tree for predicate, if a partial
63 * index; else NULL */
64#endif
int16_t int16
Definition c.h:553
#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_index
Definition pg_index.h:65
unsigned int Oid
static int fb(int x)
Definition c.h:757

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

◆ DECLARE_ARRAY_FOREIGN_KEY_OPT()

DECLARE_ARRAY_FOREIGN_KEY_OPT ( (indrelid, indkey ,
pg_attribute  ,
(attrelid, attnum  
)

◆ DECLARE_INDEX()

DECLARE_INDEX ( pg_index_indrelid_index  ,
2678  ,
IndexIndrelidIndexId  ,
pg_index  ,
btree(indrelid oid_ops  
)

◆ DECLARE_TOAST_WITH_MACRO()

DECLARE_TOAST_WITH_MACRO ( pg_index  ,
6351  ,
6352  ,
PgIndexToastTable  ,
PgIndexToastIndex   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_index_indexrelid_index  ,
2679  ,
IndexRelidIndexId  ,
pg_index  ,
btree(indexrelid oid_ops  
)

◆ MAKE_SYSCACHE()

MAKE_SYSCACHE ( INDEXRELID  ,
pg_index_indexrelid_index  ,
64   
)

Variable Documentation

◆ Form_pg_index

◆ FormData_pg_index

FormData_pg_index

Definition at line 65 of file pg_index.h.