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.

Macros

#define IndexIsValid(indexForm)   ((indexForm)->indisvalid)
 
#define IndexIsReady(indexForm)   ((indexForm)->indisready)
 
#define IndexIsLive(indexForm)   ((indexForm)->indislive)
 

Typedefs

typedef FormData_pg_indexForm_pg_index
 

Functions

 CATALOG (pg_index, 2610, IndexRelationId) BKI_WITHOUT_OIDS BKI_SCHEMA_MACRO
 

Variables

 FormData_pg_index
 

Macro Definition Documentation

◆ IndexIsLive

#define IndexIsLive (   indexForm)    ((indexForm)->indislive)

Definition at line 87 of file pg_index.h.

Referenced by RelationGetIndexList().

◆ IndexIsReady

#define IndexIsReady (   indexForm)    ((indexForm)->indisready)

Definition at line 86 of file pg_index.h.

Referenced by BuildIndexInfo(), toast_save_datum(), and vac_open_indexes().

◆ IndexIsValid

Typedef Documentation

◆ Form_pg_index

Definition at line 66 of file pg_index.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_index  ,
2610  ,
IndexRelationId   
)

Definition at line 29 of file pg_index.h.

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; /* column numbers of indexed cols, or 0 */
48 
49 #ifdef CATALOG_VARLEN
50  oidvector indcollation; /* collation identifiers */
51  oidvector indclass; /* opclass identifiers */
52  int2vector indoption; /* per-column flags (AM-specific meanings) */
53  pg_node_tree indexprs; /* expression trees for index attributes that
54  * are not simple column references; one for
55  * each zero entry in indkey[] */
56  pg_node_tree indpred; /* expression tree for predicate, if a partial
57  * index; else NULL */
58 #endif
FormData_pg_index
Definition: pg_index.h:59
signed short int16
Definition: c.h:312
Definition: c.h:555
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:544

Variable Documentation

◆ FormData_pg_index

FormData_pg_index

Definition at line 59 of file pg_index.h.