77 *
88 * Copyright (c) 1994, Regents of the University of California
99 *
10- * $Id: indexing.h,v 1.11 1997/11/15 20:57:38 momjian Exp $
10+ * $Id: indexing.h,v 1.12 1997/11/17 16:59:34 momjian Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
2727#define Num_pg_attrdef_indices 1
2828#define Num_pg_relcheck_indices 1
2929#define Num_pg_trigger_indices 1
30- #define Num_pg_objoid_indices 1
30+ #define Num_pg_description_indices 1
3131
3232
3333/*
3434 * Names of indices on system catalogs
3535 */
36- #define AttributeNameIndex "pg_attnameind "
37- #define AttributeNumIndex "pg_attnumind "
38- #define AttributeRelidIndex "pg_attrelidind "
39- #define ProcedureNameIndex "pg_procnameind "
40- #define ProcedureOidIndex "pg_procidind "
41- #define ProcedureSrcIndex "pg_procsrcind "
42- #define TypeNameIndex "pg_typenameind "
43- #define TypeOidIndex "pg_typeidind "
44- #define ClassNameIndex "pg_classnameind "
45- #define ClassOidIndex "pg_classoidind "
46- #define AttrDefaultIndex "pg_attrdefind "
47- #define RelCheckIndex "pg_relcheckind "
48- #define TriggerRelidIndex "pg_trigrelidind "
49- #define DescriptionObjIndex "pg_descrobjind "
36+ #define AttributeNameIndex "pg_attribute_mkoidname_index "
37+ #define AttributeNumIndex "pg_attribute_mkoidint2_index "
38+ #define AttributeRelidIndex "pg_attribute_attrelid_index "
39+ #define ProcedureOidIndex "pg_proc_oid_index "
40+ #define ProcedureNameIndex "pg_proc_proname_index "
41+ #define ProcedureSrcIndex "pg_proc_prosrc_index "
42+ #define TypeOidIndex "pg_type_oid_index "
43+ #define TypeNameIndex "pg_type_typname_index "
44+ #define ClassOidIndex "pg_class_oid_index "
45+ #define ClassNameIndex "pg_class_relname_index "
46+ #define AttrDefaultIndex "pg_attrdef_adrelid_index "
47+ #define RelCheckIndex "pg_relcheck_rcrelid_index "
48+ #define TriggerRelidIndex "pg_trigger_tgrelid_index "
49+ #define DescriptionObjIndex "pg_description_objoid_index "
5050
5151extern char * Name_pg_attr_indices [];
5252extern char * Name_pg_proc_indices [];
@@ -55,7 +55,7 @@ extern char *Name_pg_class_indices[];
5555extern char * Name_pg_attrdef_indices [];
5656extern char * Name_pg_relcheck_indices [];
5757extern char * Name_pg_trigger_indices [];
58- extern char * Name_pg_objoid_indices [];
58+ extern char * Name_pg_description_indices [];
5959
6060extern char * IndexedCatalogNames [];
6161
@@ -100,26 +100,27 @@ extern HeapTuple ClassOidIndexScan(Relation heapRelation, Oid relId);
100100 * The keyword is DECLARE_INDEX every thing after that is just like in a
101101 * normal specification of the 'define index' POSTQUEL command.
102102 */
103- DECLARE_INDEX (pg_attnameind on pg_attribute using btree (mkoidname (attrelid ,attname )oidname_ops ));
104- DECLARE_INDEX (pg_attnumind on pg_attribute using btree (mkoidint2 (attrelid ,attnum )oidint2_ops ));
105- DECLARE_INDEX (pg_attrelidind on pg_attribute using btree (attrelid oid_ops ));
103+ DECLARE_INDEX (pg_attribute_mkoidname_index on pg_attribute using btree (mkoidname (attrelid ,attname )oidname_ops ));
104+ DECLARE_INDEX (pg_attribute_mkoidint2_index on pg_attribute using btree (mkoidint2 (attrelid ,attnum )oidint2_ops ));
105+ DECLARE_INDEX (pg_attribute_attrelid_index on pg_attribute using btree (attrelid oid_ops ));
106106
107- DECLARE_INDEX (pg_procidind on pg_proc using btree (Oid oid_ops ));
108- DECLARE_INDEX (pg_procnameind on pg_proc using btree (proname name_ops ));
109- DECLARE_INDEX (pg_procsrcind on pg_proc using btree (prosrc text_ops ));
107+ DECLARE_INDEX (pg_proc_oid_index on pg_proc using btree (oid oid_ops ));
108+ DECLARE_INDEX (pg_proc_proname_index on pg_proc using btree (proname name_ops ));
109+ DECLARE_INDEX (pg_proc_prosrc_index on pg_proc using btree (prosrc text_ops ));
110110
111- DECLARE_INDEX (pg_typeidind on pg_type using btree (Oid oid_ops ));
112- DECLARE_INDEX (pg_typenameind on pg_type using btree (typname name_ops ));
111+ DECLARE_INDEX (pg_type_oid_index on pg_type using btree (oid oid_ops ));
112+ DECLARE_INDEX (pg_type_typname_index on pg_type using btree (typname name_ops ));
113113
114- DECLARE_INDEX (pg_classnameind on pg_class using btree (relname name_ops ));
115- DECLARE_INDEX (pg_classoidind on pg_class using btree (Oid oid_ops ));
114+ DECLARE_INDEX (pg_class_oid_index on pg_class using btree (oid oid_ops ));
115+ DECLARE_INDEX (pg_class_relname_index on pg_class using btree (relname name_ops ));
116116
117- DECLARE_INDEX (pg_attrdefind on pg_attrdef using btree (adrelid oid_ops ));
118- DECLARE_INDEX (pg_relcheckind on pg_relcheck using btree (rcrelid oid_ops ));
117+ DECLARE_INDEX (pg_attrdef_adrelid_index on pg_attrdef using btree (adrelid oid_ops ));
119118
120- DECLARE_INDEX (pg_trigrelidind on pg_trigger using btree (tgrelid oid_ops ));
119+ DECLARE_INDEX (pg_relcheck_rcrelid_index on pg_relcheck using btree (rcrelid oid_ops ));
121120
122- DECLARE_INDEX (pg_descrobjind on pg_description using btree (objoid oid_ops ));
121+ DECLARE_INDEX (pg_trigger_tgrelid_index on pg_trigger using btree (tgrelid oid_ops ));
122+
123+ DECLARE_INDEX (pg_description_objoid_index on pg_description using btree (objoid oid_ops ));
123124
124125/* now build indices in the initialization scripts */
125126BUILD_INDICES