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

Typedefs

typedef FormData_pg_indexForm_pg_index
 

Functions

 CATALOG (pg_index, 2610, IndexRelationId) BKI_SCHEMA_MACRO
 

Variables

 FormData_pg_index
 

Typedef Documentation

◆ Form_pg_index

Definition at line 68 of file pg_index.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_index  ,
2610  ,
IndexRelationId   
)

Definition at line 29 of file pg_index.h.

References BKI_FORCE_NOT_NULL.

30 {
31  Oid indexrelid; /* OID of the index */
32  Oid indrelid; /* OID of the relation it indexes */
33  int16 indnatts; /* total number of columns in index */
34  int16 indnkeyatts; /* number of key columns in index */
35  bool indisunique; /* is this a unique index? */
36  bool indisprimary; /* is this index for primary key? */
37  bool indisexclusion; /* is this index for exclusion constraint? */
38  bool indimmediate; /* is uniqueness enforced immediately? */
39  bool indisclustered; /* is this the index last clustered by? */
40  bool indisvalid; /* is this index valid for use by queries? */
41  bool indcheckxmin; /* must we wait for xmin to be old? */
42  bool indisready; /* is this index ready for inserts? */
43  bool indislive; /* is this index alive at all? */
44  bool indisreplident; /* is this index the identity for replication? */
45 
46  /* variable-length fields start here, but we allow direct access to indkey */
47  int2vector indkey BKI_FORCE_NOT_NULL; /* column numbers of indexed cols,
48  * or 0 */
49 
50 #ifdef CATALOG_VARLEN
51  oidvector indcollation BKI_FORCE_NOT_NULL; /* collation identifiers */
52  oidvector indclass BKI_FORCE_NOT_NULL; /* opclass identifiers */
53  int2vector indoption BKI_FORCE_NOT_NULL; /* per-column flags
54  * (AM-specific meanings) */
55  pg_node_tree indexprs; /* expression trees for index attributes that
56  * are not simple column references; one for
57  * each zero entry in indkey[] */
58  pg_node_tree indpred; /* expression tree for predicate, if a partial
59  * index; else NULL */
60 #endif
FormData_pg_index
Definition: pg_index.h:61
signed short int16
Definition: c.h:361
Definition: c.h:601
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
Definition: c.h:590

Variable Documentation

◆ FormData_pg_index

FormData_pg_index

Definition at line 61 of file pg_index.h.