7
7
*
8
8
* Copyright (c) 1994, Regents of the University of California
9
9
*
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 $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
27
27
#define Num_pg_attrdef_indices 1
28
28
#define Num_pg_relcheck_indices 1
29
29
#define Num_pg_trigger_indices 1
30
- #define Num_pg_objoid_indices 1
30
+ #define Num_pg_description_indices 1
31
31
32
32
33
33
/*
34
34
* Names of indices on system catalogs
35
35
*/
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 "
50
50
51
51
extern char * Name_pg_attr_indices [];
52
52
extern char * Name_pg_proc_indices [];
@@ -55,7 +55,7 @@ extern char *Name_pg_class_indices[];
55
55
extern char * Name_pg_attrdef_indices [];
56
56
extern char * Name_pg_relcheck_indices [];
57
57
extern char * Name_pg_trigger_indices [];
58
- extern char * Name_pg_objoid_indices [];
58
+ extern char * Name_pg_description_indices [];
59
59
60
60
extern char * IndexedCatalogNames [];
61
61
@@ -100,26 +100,27 @@ extern HeapTuple ClassOidIndexScan(Relation heapRelation, Oid relId);
100
100
* The keyword is DECLARE_INDEX every thing after that is just like in a
101
101
* normal specification of the 'define index' POSTQUEL command.
102
102
*/
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 ));
106
106
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 ));
110
110
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 ));
113
113
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 ));
116
116
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 ));
119
118
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 ));
121
120
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 ));
123
124
124
125
/* now build indices in the initialization scripts */
125
126
BUILD_INDICES
0 commit comments