PostgreSQL Source Code  git master
pg_opclass.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_opclass_d.h"
Include dependency graph for pg_opclass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef FormData_pg_opclassForm_pg_opclass
 

Functions

 CATALOG (pg_opclass, 2616, OperatorClassRelationId)
 
 DECLARE_UNIQUE_INDEX (pg_opclass_am_name_nsp_index, 2686, OpclassAmNameNspIndexId, pg_opclass, btree(opcmethod oid_ops, opcname name_ops, opcnamespace oid_ops))
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_opclass_oid_index, 2687, OpclassOidIndexId, pg_opclass, btree(oid oid_ops))
 
 MAKE_SYSCACHE (CLAAMNAMENSP, pg_opclass_am_name_nsp_index, 8)
 
 MAKE_SYSCACHE (CLAOID, pg_opclass_oid_index, 8)
 

Variables

 FormData_pg_opclass
 

Typedef Documentation

◆ Form_pg_opclass

Definition at line 83 of file pg_opclass.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_opclass  ,
2616  ,
OperatorClassRelationId   
)

Definition at line 49 of file pg_opclass.h.

50 {
51  Oid oid; /* oid */
52 
53  /* index access method opclass is for */
54  Oid opcmethod BKI_LOOKUP(pg_am);
55 
56  /* name of this opclass */
57  NameData opcname;
58 
59  /* namespace of this opclass */
60  Oid opcnamespace BKI_DEFAULT(pg_catalog) BKI_LOOKUP(pg_namespace);
61 
62  /* opclass owner */
63  Oid opcowner BKI_DEFAULT(POSTGRES) BKI_LOOKUP(pg_authid);
64 
65  /* containing operator family */
66  Oid opcfamily BKI_LOOKUP(pg_opfamily);
67 
68  /* type of data indexed by opclass */
69  Oid opcintype BKI_LOOKUP(pg_type);
70 
71  /* T if opclass is default for opcintype */
72  bool opcdefault BKI_DEFAULT(t);
73 
74  /* type of data in index, or InvalidOid if same as input column type */
75  Oid opckeytype BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_type);
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46
#define BKI_DEFAULT(value)
Definition: genbki.h:35
#define BKI_LOOKUP_OPT(catalog)
Definition: genbki.h:47
FormData_pg_opclass
Definition: pg_opclass.h:76
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:732

References BKI_DEFAULT, BKI_LOOKUP, and BKI_LOOKUP_OPT.

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_opclass_am_name_nsp_index  ,
2686  ,
OpclassAmNameNspIndexId  ,
pg_opclass  ,
btree(opcmethod oid_ops, opcname name_ops, opcnamespace oid_ops)   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_opclass_oid_index  ,
2687  ,
OpclassOidIndexId  ,
pg_opclass  ,
btree(oid oid_ops)   
)

◆ MAKE_SYSCACHE() [1/2]

MAKE_SYSCACHE ( CLAAMNAMENSP  ,
pg_opclass_am_name_nsp_index  ,
 
)

◆ MAKE_SYSCACHE() [2/2]

MAKE_SYSCACHE ( CLAOID  ,
pg_opclass_oid_index  ,
 
)

Variable Documentation

◆ FormData_pg_opclass

FormData_pg_opclass

Definition at line 76 of file pg_opclass.h.