77 *
88 * Copyright (c) 1994, Regents of the University of California
99 *
10- * $Id: indexing.h,v 1.26 1999/11/0102:29:26 momjian Exp $
10+ * $Id: indexing.h,v 1.27 1999/11/0104:00:57 momjian Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
1919/*
2020 * Some definitions for indices on pg_attribute
2121 */
22- #define Num_pg_amop_indices 2
23- #define Num_pg_attr_indices 3
22+ #define Num_pg_amop_indices 2
23+ #define Num_pg_attr_indices 3
2424#define Num_pg_index_indices 1
25- #define Num_pg_proc_indices 2
26- #define Num_pg_type_indices 2
27- #define Num_pg_class_indices 2
28- #define Num_pg_attrdef_indices 1
29- #define Num_pg_relcheck_indices 1
30- #define Num_pg_trigger_indices 3
25+ #define Num_pg_proc_indices 2
26+ #define Num_pg_type_indices 2
27+ #define Num_pg_class_indices 2
28+ #define Num_pg_attrdef_indices 1
29+ #define Num_pg_relcheck_indices 1
30+ #define Num_pg_trigger_indices 3
3131#define Num_pg_description_indices 1
3232
3333
3636 */
3737#define AccessMethodOpidIndex "pg_amop_opid_index"
3838#define AccessMethodStrategyIndex "pg_amop_strategy_index"
39- #define AttributeNameIndex "pg_attribute_relid_attnam_index"
40- #define AttributeNumIndex "pg_attribute_relid_attnum_index"
41- #define IndexRelidIndex "pg_index_indexrelid_index"
42- #define AttributeRelidIndex "pg_attribute_attrelid_index"
43- #define ProcedureOidIndex "pg_proc_oid_index"
44- #define ProcedureNameIndex "pg_proc_proname_narg_type_index"
45- #define TypeOidIndex "pg_type_oid_index"
46- #define TypeNameIndex "pg_type_typname_index"
47- #define ClassOidIndex "pg_class_oid_index"
48- #define ClassNameIndex "pg_class_relname_index"
49- #define AttrDefaultIndex "pg_attrdef_adrelid_index"
50- #define RelCheckIndex "pg_relcheck_rcrelid_index"
51- #define TriggerRelidIndex "pg_trigger_tgrelid_index"
52- #define TriggerConstrNameIndex "pg_trigger_tgconstrname_index"
53- #define TriggerConstrRelidIndex "pg_trigger_tgconstrrelid_index"
54- #define DescriptionObjIndex "pg_description_objoid_index"
39+ #define AttributeNameIndex "pg_attribute_relid_attnam_index"
40+ #define AttributeNumIndex "pg_attribute_relid_attnum_index"
41+ #define IndexRelidIndex "pg_index_indexrelid_index"
42+ #define AttributeRelidIndex "pg_attribute_attrelid_index"
43+ #define ProcedureOidIndex "pg_proc_oid_index"
44+ #define ProcedureNameIndex "pg_proc_proname_narg_type_index"
45+ #define TypeOidIndex "pg_type_oid_index"
46+ #define TypeNameIndex "pg_type_typname_index"
47+ #define ClassOidIndex "pg_class_oid_index"
48+ #define ClassNameIndex "pg_class_relname_index"
49+ #define AttrDefaultIndex "pg_attrdef_adrelid_index"
50+ #define RelCheckIndex "pg_relcheck_rcrelid_index"
51+ #define TriggerRelidIndex "pg_trigger_tgrelid_index"
52+ #define TriggerConstrNameIndex "pg_trigger_tgconstrname_index"
53+ #define TriggerConstrRelidIndex "pg_trigger_tgconstrrelid_index"
54+ #define DescriptionObjIndex "pg_description_objoid_index"
5555
5656extern char * Name_pg_amop_indices [];
5757extern char * Name_pg_attr_indices [];
@@ -75,25 +75,23 @@ extern char *IndexedCatalogNames[];
7575extern void CatalogOpenIndices (int nIndices ,char * * names ,Relation * idescs );
7676extern void CatalogCloseIndices (int nIndices ,Relation * idescs );
7777extern void CatalogIndexInsert (Relation * idescs ,
78- int nIndices ,
79- Relation heapRelation ,
80- HeapTuple heapTuple );
78+ int nIndices ,
79+ Relation heapRelation ,
80+ HeapTuple heapTuple );
8181extern bool CatalogHasIndex (char * catName ,Oid catId );
8282
8383extern HeapTuple AccessMethodOpidIndexScan (Relation heapRelation ,
84- Oid claid ,Oid opopr ,Oid opid );
84+ Oid claid ,Oid opopr ,Oid opid );
8585extern HeapTuple AccessMethodStrategyIndexScan (Relation heapRelation ,
86- Oid opid ,Oid claid ,int2 opstrategy );
86+ Oid opid ,Oid claid ,int2 opstrategy );
8787extern HeapTuple AttributeNameIndexScan (Relation heapRelation ,
88- Oid relid ,
89- char * attname );
88+ Oid relid ,char * attname );
9089extern HeapTuple AttributeNumIndexScan (Relation heapRelation ,
91- Oid relid ,
92- AttrNumber attnum );
90+ Oid relid ,AttrNumber attnum );
9391extern HeapTuple IndexRelidIndexScan (Relation heapRelation ,Oid relid );
9492extern HeapTuple ProcedureOidIndexScan (Relation heapRelation ,Oid procId );
9593extern HeapTuple ProcedureNameIndexScan (Relation heapRelation ,
96- char * procName ,int2 nargs ,Oid * argTypes );
94+ char * procName ,int2 nargs ,Oid * argTypes );
9795extern HeapTuple TypeOidIndexScan (Relation heapRelation ,Oid typeId );
9896extern HeapTuple TypeNameIndexScan (Relation heapRelation ,char * typeName );
9997extern HeapTuple ClassNameIndexScan (Relation heapRelation ,char * relName );