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

Go to the source code of this file.

Macros

#define AccessMethodStrategyIndexId   2653
 
#define AccessMethodOperatorIndexId   2654
 
#define AccessMethodOperatorOidIndexId   2756
 

Typedefs

typedef FormData_pg_amopForm_pg_amop
 

Functions

 CATALOG (pg_amop, 2602, AccessMethodOperatorRelationId)
 
 DECLARE_UNIQUE_INDEX (pg_amop_fam_strat_index, 2653, on pg_amop using btree(amopfamily oid_ops, amoplefttype oid_ops, amoprighttype oid_ops, amopstrategy int2_ops))
 
 DECLARE_UNIQUE_INDEX (pg_amop_opr_fam_index, 2654, on pg_amop using btree(amopopr oid_ops, amoppurpose char_ops, amopfamily oid_ops))
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_amop_oid_index, 2756, on pg_amop using btree(oid oid_ops))
 

Variables

 FormData_pg_amop
 

Macro Definition Documentation

◆ AccessMethodOperatorIndexId

#define AccessMethodOperatorIndexId   2654

Definition at line 93 of file pg_amop.h.

◆ AccessMethodOperatorOidIndexId

#define AccessMethodOperatorOidIndexId   2756

Definition at line 95 of file pg_amop.h.

Referenced by getObjectDescription(), getObjectIdentityParts(), and storeOperators().

◆ AccessMethodStrategyIndexId

#define AccessMethodStrategyIndexId   2653

Definition at line 91 of file pg_amop.h.

Typedef Documentation

◆ Form_pg_amop

Definition at line 88 of file pg_amop.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_amop  ,
2602  ,
AccessMethodOperatorRelationId   
)

Definition at line 54 of file pg_amop.h.

References BKI_DEFAULT, BKI_LOOKUP, and BKI_LOOKUP_OPT.

55 {
56  Oid oid; /* oid */
57 
58  /* the index opfamily this entry is for */
59  Oid amopfamily BKI_LOOKUP(pg_opfamily);
60 
61  /* operator's left input data type */
62  Oid amoplefttype BKI_LOOKUP(pg_type);
63 
64  /* operator's right input data type */
65  Oid amoprighttype BKI_LOOKUP(pg_type);
66 
67  /* operator strategy number */
68  int16 amopstrategy;
69 
70  /* is operator for 's'earch or 'o'rdering? */
71  char amoppurpose BKI_DEFAULT(s);
72 
73  /* the operator's pg_operator OID */
74  Oid amopopr BKI_LOOKUP(pg_operator);
75 
76  /* the index access method this entry is for */
77  Oid amopmethod BKI_LOOKUP(pg_am);
78 
79  /* ordering opfamily OID, or 0 if search op */
80  Oid amopsortfamily BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_opfamily);
signed short int16
Definition: c.h:428
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_DEFAULT(value)
Definition: genbki.h:35
FormData_pg_amop
Definition: pg_amop.h:81
#define BKI_LOOKUP_OPT(catalog)
Definition: genbki.h:47
#define BKI_LOOKUP(catalog)
Definition: genbki.h:46

◆ DECLARE_UNIQUE_INDEX() [1/2]

DECLARE_UNIQUE_INDEX ( pg_amop_fam_strat_index  ,
2653  ,
on pg_amop using   btreeamopfamily oid_ops, amoplefttype oid_ops, amoprighttype oid_ops, amopstrategy int2_ops 
)

◆ DECLARE_UNIQUE_INDEX() [2/2]

DECLARE_UNIQUE_INDEX ( pg_amop_opr_fam_index  ,
2654  ,
on pg_amop using   btreeamopopr oid_ops, amoppurpose char_ops, amopfamily oid_ops 
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_amop_oid_index  ,
2756  ,
on pg_amop using   btreeoid oid_ops 
)

Variable Documentation

◆ FormData_pg_amop

FormData_pg_amop

Definition at line 81 of file pg_amop.h.