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.

Typedefs

typedef FormData_pg_amopForm_pg_amop
 

Functions

 CATALOG (pg_amop, 2602, AccessMethodOperatorRelationId)
 
 DECLARE_UNIQUE_INDEX (pg_amop_fam_strat_index, 2653, AccessMethodStrategyIndexId, pg_amop, btree(amopfamily oid_ops, amoplefttype oid_ops, amoprighttype oid_ops, amopstrategy int2_ops))
 
 DECLARE_UNIQUE_INDEX (pg_amop_opr_fam_index, 2654, AccessMethodOperatorIndexId, pg_amop, btree(amopopr oid_ops, amoppurpose char_ops, amopfamily oid_ops))
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_amop_oid_index, 2756, AccessMethodOperatorOidIndexId, pg_amop, btree(oid oid_ops))
 
 MAKE_SYSCACHE (AMOPSTRATEGY, pg_amop_fam_strat_index, 64)
 
 MAKE_SYSCACHE (AMOPOPID, pg_amop_opr_fam_index, 64)
 

Variables

 FormData_pg_amop
 

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.

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:480
#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_amop
Definition: pg_amop.h:81
unsigned int Oid
Definition: postgres_ext.h:31

References BKI_DEFAULT, BKI_LOOKUP, and BKI_LOOKUP_OPT.

◆ DECLARE_UNIQUE_INDEX() [1/2]

DECLARE_UNIQUE_INDEX ( pg_amop_fam_strat_index  ,
2653  ,
AccessMethodStrategyIndexId  ,
pg_amop  ,
btree(amopfamily 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  ,
AccessMethodOperatorIndexId  ,
pg_amop  ,
btree(amopopr oid_ops, amoppurpose char_ops, amopfamily oid_ops)   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_amop_oid_index  ,
2756  ,
AccessMethodOperatorOidIndexId  ,
pg_amop  ,
btree(oid oid_ops)   
)

◆ MAKE_SYSCACHE() [1/2]

MAKE_SYSCACHE ( AMOPOPID  ,
pg_amop_opr_fam_index  ,
64   
)

◆ MAKE_SYSCACHE() [2/2]

MAKE_SYSCACHE ( AMOPSTRATEGY  ,
pg_amop_fam_strat_index  ,
64   
)

Variable Documentation

◆ FormData_pg_amop

FormData_pg_amop

Definition at line 81 of file pg_amop.h.