1 | /*------------------------------------------------------------------------- |
2 | * |
3 | * indexing.h |
4 | * This file provides some definitions to support indexing |
5 | * on system catalogs |
6 | * |
7 | * Caution: all #define's with numeric values in this file had better be |
8 | * object OIDs, else renumber_oids.pl might change them inappropriately. |
9 | * |
10 | * |
11 | * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group |
12 | * Portions Copyright (c) 1994, Regents of the University of California |
13 | * |
14 | * src/include/catalog/indexing.h |
15 | * |
16 | *------------------------------------------------------------------------- |
17 | */ |
18 | #ifndef INDEXING_H |
19 | #define INDEXING_H |
20 | |
21 | #include "access/htup.h" |
22 | #include "utils/relcache.h" |
23 | |
24 | /* |
25 | * The state object used by CatalogOpenIndexes and friends is actually the |
26 | * same as the executor's ResultRelInfo, but we give it another type name |
27 | * to decouple callers from that fact. |
28 | */ |
29 | typedef struct ResultRelInfo *CatalogIndexState; |
30 | |
31 | /* |
32 | * indexing.c prototypes |
33 | */ |
34 | extern CatalogIndexState CatalogOpenIndexes(Relation heapRel); |
35 | extern void CatalogCloseIndexes(CatalogIndexState indstate); |
36 | extern void CatalogTupleInsert(Relation heapRel, HeapTuple tup); |
37 | extern void CatalogTupleInsertWithInfo(Relation heapRel, HeapTuple tup, |
38 | CatalogIndexState indstate); |
39 | extern void CatalogTupleUpdate(Relation heapRel, ItemPointer otid, |
40 | HeapTuple tup); |
41 | extern void CatalogTupleUpdateWithInfo(Relation heapRel, |
42 | ItemPointer otid, HeapTuple tup, |
43 | CatalogIndexState indstate); |
44 | extern void CatalogTupleDelete(Relation heapRel, ItemPointer tid); |
45 | |
46 | |
47 | /* |
48 | * These macros are just to keep the C compiler from spitting up on the |
49 | * upcoming commands for Catalog.pm. |
50 | */ |
51 | #define DECLARE_INDEX(name,oid,decl) extern int no_such_variable |
52 | #define DECLARE_UNIQUE_INDEX(name,oid,decl) extern int no_such_variable |
53 | |
54 | |
55 | /* |
56 | * What follows are lines processed by genbki.pl to create the statements |
57 | * the bootstrap parser will turn into DefineIndex calls. |
58 | * |
59 | * The keyword is DECLARE_INDEX or DECLARE_UNIQUE_INDEX. The first two |
60 | * arguments are the index name and OID, the rest is much like a standard |
61 | * 'create index' SQL command. |
62 | * |
63 | * For each index, we also provide a #define for its OID. References to |
64 | * the index in the C code should always use these #defines, not the actual |
65 | * index name (much less the numeric OID). |
66 | */ |
67 | |
68 | DECLARE_UNIQUE_INDEX(pg_aggregate_fnoid_index, 2650, on pg_aggregate using btree(aggfnoid oid_ops)); |
69 | #define AggregateFnoidIndexId 2650 |
70 | |
71 | DECLARE_UNIQUE_INDEX(pg_am_name_index, 2651, on pg_am using btree(amname name_ops)); |
72 | #define AmNameIndexId 2651 |
73 | DECLARE_UNIQUE_INDEX(pg_am_oid_index, 2652, on pg_am using btree(oid oid_ops)); |
74 | #define AmOidIndexId 2652 |
75 | |
76 | 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)); |
77 | #define AccessMethodStrategyIndexId 2653 |
78 | DECLARE_UNIQUE_INDEX(pg_amop_opr_fam_index, 2654, on pg_amop using btree(amopopr oid_ops, amoppurpose char_ops, amopfamily oid_ops)); |
79 | #define AccessMethodOperatorIndexId 2654 |
80 | DECLARE_UNIQUE_INDEX(pg_amop_oid_index, 2756, on pg_amop using btree(oid oid_ops)); |
81 | #define AccessMethodOperatorOidIndexId 2756 |
82 | |
83 | DECLARE_UNIQUE_INDEX(pg_amproc_fam_proc_index, 2655, on pg_amproc using btree(amprocfamily oid_ops, amproclefttype oid_ops, amprocrighttype oid_ops, amprocnum int2_ops)); |
84 | #define AccessMethodProcedureIndexId 2655 |
85 | DECLARE_UNIQUE_INDEX(pg_amproc_oid_index, 2757, on pg_amproc using btree(oid oid_ops)); |
86 | #define AccessMethodProcedureOidIndexId 2757 |
87 | |
88 | DECLARE_UNIQUE_INDEX(pg_attrdef_adrelid_adnum_index, 2656, on pg_attrdef using btree(adrelid oid_ops, adnum int2_ops)); |
89 | #define AttrDefaultIndexId 2656 |
90 | DECLARE_UNIQUE_INDEX(pg_attrdef_oid_index, 2657, on pg_attrdef using btree(oid oid_ops)); |
91 | #define AttrDefaultOidIndexId 2657 |
92 | |
93 | DECLARE_UNIQUE_INDEX(pg_attribute_relid_attnam_index, 2658, on pg_attribute using btree(attrelid oid_ops, attname name_ops)); |
94 | #define AttributeRelidNameIndexId 2658 |
95 | DECLARE_UNIQUE_INDEX(pg_attribute_relid_attnum_index, 2659, on pg_attribute using btree(attrelid oid_ops, attnum int2_ops)); |
96 | #define AttributeRelidNumIndexId 2659 |
97 | |
98 | DECLARE_UNIQUE_INDEX(pg_authid_rolname_index, 2676, on pg_authid using btree(rolname name_ops)); |
99 | #define AuthIdRolnameIndexId 2676 |
100 | DECLARE_UNIQUE_INDEX(pg_authid_oid_index, 2677, on pg_authid using btree(oid oid_ops)); |
101 | #define AuthIdOidIndexId 2677 |
102 | |
103 | DECLARE_UNIQUE_INDEX(pg_auth_members_role_member_index, 2694, on pg_auth_members using btree(roleid oid_ops, member oid_ops)); |
104 | #define AuthMemRoleMemIndexId 2694 |
105 | DECLARE_UNIQUE_INDEX(pg_auth_members_member_role_index, 2695, on pg_auth_members using btree(member oid_ops, roleid oid_ops)); |
106 | #define AuthMemMemRoleIndexId 2695 |
107 | |
108 | DECLARE_UNIQUE_INDEX(pg_cast_oid_index, 2660, on pg_cast using btree(oid oid_ops)); |
109 | #define CastOidIndexId 2660 |
110 | DECLARE_UNIQUE_INDEX(pg_cast_source_target_index, 2661, on pg_cast using btree(castsource oid_ops, casttarget oid_ops)); |
111 | #define CastSourceTargetIndexId 2661 |
112 | |
113 | DECLARE_UNIQUE_INDEX(pg_class_oid_index, 2662, on pg_class using btree(oid oid_ops)); |
114 | #define ClassOidIndexId 2662 |
115 | DECLARE_UNIQUE_INDEX(pg_class_relname_nsp_index, 2663, on pg_class using btree(relname name_ops, relnamespace oid_ops)); |
116 | #define ClassNameNspIndexId 2663 |
117 | DECLARE_INDEX(pg_class_tblspc_relfilenode_index, 3455, on pg_class using btree(reltablespace oid_ops, relfilenode oid_ops)); |
118 | #define ClassTblspcRelfilenodeIndexId 3455 |
119 | |
120 | DECLARE_UNIQUE_INDEX(pg_collation_name_enc_nsp_index, 3164, on pg_collation using btree(collname name_ops, collencoding int4_ops, collnamespace oid_ops)); |
121 | #define CollationNameEncNspIndexId 3164 |
122 | DECLARE_UNIQUE_INDEX(pg_collation_oid_index, 3085, on pg_collation using btree(oid oid_ops)); |
123 | #define CollationOidIndexId 3085 |
124 | |
125 | DECLARE_INDEX(pg_constraint_conname_nsp_index, 2664, on pg_constraint using btree(conname name_ops, connamespace oid_ops)); |
126 | #define ConstraintNameNspIndexId 2664 |
127 | DECLARE_UNIQUE_INDEX(pg_constraint_conrelid_contypid_conname_index, 2665, on pg_constraint using btree(conrelid oid_ops, contypid oid_ops, conname name_ops)); |
128 | #define ConstraintRelidTypidNameIndexId 2665 |
129 | DECLARE_INDEX(pg_constraint_contypid_index, 2666, on pg_constraint using btree(contypid oid_ops)); |
130 | #define ConstraintTypidIndexId 2666 |
131 | DECLARE_UNIQUE_INDEX(pg_constraint_oid_index, 2667, on pg_constraint using btree(oid oid_ops)); |
132 | #define ConstraintOidIndexId 2667 |
133 | DECLARE_INDEX(pg_constraint_conparentid_index, 2579, on pg_constraint using btree(conparentid oid_ops)); |
134 | #define ConstraintParentIndexId 2579 |
135 | |
136 | DECLARE_UNIQUE_INDEX(pg_conversion_default_index, 2668, on pg_conversion using btree(connamespace oid_ops, conforencoding int4_ops, contoencoding int4_ops, oid oid_ops)); |
137 | #define ConversionDefaultIndexId 2668 |
138 | DECLARE_UNIQUE_INDEX(pg_conversion_name_nsp_index, 2669, on pg_conversion using btree(conname name_ops, connamespace oid_ops)); |
139 | #define ConversionNameNspIndexId 2669 |
140 | DECLARE_UNIQUE_INDEX(pg_conversion_oid_index, 2670, on pg_conversion using btree(oid oid_ops)); |
141 | #define ConversionOidIndexId 2670 |
142 | |
143 | DECLARE_UNIQUE_INDEX(pg_database_datname_index, 2671, on pg_database using btree(datname name_ops)); |
144 | #define DatabaseNameIndexId 2671 |
145 | DECLARE_UNIQUE_INDEX(pg_database_oid_index, 2672, on pg_database using btree(oid oid_ops)); |
146 | #define DatabaseOidIndexId 2672 |
147 | |
148 | DECLARE_INDEX(pg_depend_depender_index, 2673, on pg_depend using btree(classid oid_ops, objid oid_ops, objsubid int4_ops)); |
149 | #define DependDependerIndexId 2673 |
150 | DECLARE_INDEX(pg_depend_reference_index, 2674, on pg_depend using btree(refclassid oid_ops, refobjid oid_ops, refobjsubid int4_ops)); |
151 | #define DependReferenceIndexId 2674 |
152 | |
153 | DECLARE_UNIQUE_INDEX(pg_description_o_c_o_index, 2675, on pg_description using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops)); |
154 | #define DescriptionObjIndexId 2675 |
155 | DECLARE_UNIQUE_INDEX(pg_shdescription_o_c_index, 2397, on pg_shdescription using btree(objoid oid_ops, classoid oid_ops)); |
156 | #define SharedDescriptionObjIndexId 2397 |
157 | |
158 | DECLARE_UNIQUE_INDEX(pg_enum_oid_index, 3502, on pg_enum using btree(oid oid_ops)); |
159 | #define EnumOidIndexId 3502 |
160 | DECLARE_UNIQUE_INDEX(pg_enum_typid_label_index, 3503, on pg_enum using btree(enumtypid oid_ops, enumlabel name_ops)); |
161 | #define EnumTypIdLabelIndexId 3503 |
162 | DECLARE_UNIQUE_INDEX(pg_enum_typid_sortorder_index, 3534, on pg_enum using btree(enumtypid oid_ops, enumsortorder float4_ops)); |
163 | #define EnumTypIdSortOrderIndexId 3534 |
164 | |
165 | DECLARE_INDEX(pg_index_indrelid_index, 2678, on pg_index using btree(indrelid oid_ops)); |
166 | #define IndexIndrelidIndexId 2678 |
167 | DECLARE_UNIQUE_INDEX(pg_index_indexrelid_index, 2679, on pg_index using btree(indexrelid oid_ops)); |
168 | #define IndexRelidIndexId 2679 |
169 | |
170 | DECLARE_UNIQUE_INDEX(pg_inherits_relid_seqno_index, 2680, on pg_inherits using btree(inhrelid oid_ops, inhseqno int4_ops)); |
171 | #define InheritsRelidSeqnoIndexId 2680 |
172 | DECLARE_INDEX(pg_inherits_parent_index, 2187, on pg_inherits using btree(inhparent oid_ops)); |
173 | #define InheritsParentIndexId 2187 |
174 | |
175 | DECLARE_UNIQUE_INDEX(pg_init_privs_o_c_o_index, 3395, on pg_init_privs using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops)); |
176 | #define InitPrivsObjIndexId 3395 |
177 | |
178 | DECLARE_UNIQUE_INDEX(pg_language_name_index, 2681, on pg_language using btree(lanname name_ops)); |
179 | #define LanguageNameIndexId 2681 |
180 | DECLARE_UNIQUE_INDEX(pg_language_oid_index, 2682, on pg_language using btree(oid oid_ops)); |
181 | #define LanguageOidIndexId 2682 |
182 | |
183 | DECLARE_UNIQUE_INDEX(pg_largeobject_loid_pn_index, 2683, on pg_largeobject using btree(loid oid_ops, pageno int4_ops)); |
184 | #define LargeObjectLOidPNIndexId 2683 |
185 | |
186 | DECLARE_UNIQUE_INDEX(pg_largeobject_metadata_oid_index, 2996, on pg_largeobject_metadata using btree(oid oid_ops)); |
187 | #define LargeObjectMetadataOidIndexId 2996 |
188 | |
189 | DECLARE_UNIQUE_INDEX(pg_namespace_nspname_index, 2684, on pg_namespace using btree(nspname name_ops)); |
190 | #define NamespaceNameIndexId 2684 |
191 | DECLARE_UNIQUE_INDEX(pg_namespace_oid_index, 2685, on pg_namespace using btree(oid oid_ops)); |
192 | #define NamespaceOidIndexId 2685 |
193 | |
194 | DECLARE_UNIQUE_INDEX(pg_opclass_am_name_nsp_index, 2686, on pg_opclass using btree(opcmethod oid_ops, opcname name_ops, opcnamespace oid_ops)); |
195 | #define OpclassAmNameNspIndexId 2686 |
196 | DECLARE_UNIQUE_INDEX(pg_opclass_oid_index, 2687, on pg_opclass using btree(oid oid_ops)); |
197 | #define OpclassOidIndexId 2687 |
198 | |
199 | DECLARE_UNIQUE_INDEX(pg_operator_oid_index, 2688, on pg_operator using btree(oid oid_ops)); |
200 | #define OperatorOidIndexId 2688 |
201 | DECLARE_UNIQUE_INDEX(pg_operator_oprname_l_r_n_index, 2689, on pg_operator using btree(oprname name_ops, oprleft oid_ops, oprright oid_ops, oprnamespace oid_ops)); |
202 | #define OperatorNameNspIndexId 2689 |
203 | |
204 | DECLARE_UNIQUE_INDEX(pg_opfamily_am_name_nsp_index, 2754, on pg_opfamily using btree(opfmethod oid_ops, opfname name_ops, opfnamespace oid_ops)); |
205 | #define OpfamilyAmNameNspIndexId 2754 |
206 | DECLARE_UNIQUE_INDEX(pg_opfamily_oid_index, 2755, on pg_opfamily using btree(oid oid_ops)); |
207 | #define OpfamilyOidIndexId 2755 |
208 | |
209 | DECLARE_UNIQUE_INDEX(pg_pltemplate_name_index, 1137, on pg_pltemplate using btree(tmplname name_ops)); |
210 | #define PLTemplateNameIndexId 1137 |
211 | |
212 | DECLARE_UNIQUE_INDEX(pg_proc_oid_index, 2690, on pg_proc using btree(oid oid_ops)); |
213 | #define ProcedureOidIndexId 2690 |
214 | DECLARE_UNIQUE_INDEX(pg_proc_proname_args_nsp_index, 2691, on pg_proc using btree(proname name_ops, proargtypes oidvector_ops, pronamespace oid_ops)); |
215 | #define ProcedureNameArgsNspIndexId 2691 |
216 | |
217 | DECLARE_UNIQUE_INDEX(pg_rewrite_oid_index, 2692, on pg_rewrite using btree(oid oid_ops)); |
218 | #define RewriteOidIndexId 2692 |
219 | DECLARE_UNIQUE_INDEX(pg_rewrite_rel_rulename_index, 2693, on pg_rewrite using btree(ev_class oid_ops, rulename name_ops)); |
220 | #define RewriteRelRulenameIndexId 2693 |
221 | |
222 | DECLARE_UNIQUE_INDEX(pg_sequence_seqrelid_index, 5002, on pg_sequence using btree(seqrelid oid_ops)); |
223 | #define SequenceRelidIndexId 5002 |
224 | |
225 | DECLARE_INDEX(pg_shdepend_depender_index, 1232, on pg_shdepend using btree(dbid oid_ops, classid oid_ops, objid oid_ops, objsubid int4_ops)); |
226 | #define SharedDependDependerIndexId 1232 |
227 | DECLARE_INDEX(pg_shdepend_reference_index, 1233, on pg_shdepend using btree(refclassid oid_ops, refobjid oid_ops)); |
228 | #define SharedDependReferenceIndexId 1233 |
229 | |
230 | DECLARE_UNIQUE_INDEX(pg_statistic_relid_att_inh_index, 2696, on pg_statistic using btree(starelid oid_ops, staattnum int2_ops, stainherit bool_ops)); |
231 | #define StatisticRelidAttnumInhIndexId 2696 |
232 | |
233 | DECLARE_UNIQUE_INDEX(pg_statistic_ext_oid_index, 3380, on pg_statistic_ext using btree(oid oid_ops)); |
234 | #define StatisticExtOidIndexId 3380 |
235 | DECLARE_UNIQUE_INDEX(pg_statistic_ext_name_index, 3997, on pg_statistic_ext using btree(stxname name_ops, stxnamespace oid_ops)); |
236 | #define StatisticExtNameIndexId 3997 |
237 | DECLARE_INDEX(pg_statistic_ext_relid_index, 3379, on pg_statistic_ext using btree(stxrelid oid_ops)); |
238 | #define StatisticExtRelidIndexId 3379 |
239 | |
240 | DECLARE_UNIQUE_INDEX(pg_statistic_ext_data_stxoid_index, 3433, on pg_statistic_ext_data using btree(stxoid oid_ops)); |
241 | #define StatisticExtDataStxoidIndexId 3433 |
242 | |
243 | DECLARE_UNIQUE_INDEX(pg_tablespace_oid_index, 2697, on pg_tablespace using btree(oid oid_ops)); |
244 | #define TablespaceOidIndexId 2697 |
245 | DECLARE_UNIQUE_INDEX(pg_tablespace_spcname_index, 2698, on pg_tablespace using btree(spcname name_ops)); |
246 | #define TablespaceNameIndexId 2698 |
247 | |
248 | DECLARE_UNIQUE_INDEX(pg_transform_oid_index, 3574, on pg_transform using btree(oid oid_ops)); |
249 | #define TransformOidIndexId 3574 |
250 | DECLARE_UNIQUE_INDEX(pg_transform_type_lang_index, 3575, on pg_transform using btree(trftype oid_ops, trflang oid_ops)); |
251 | #define TransformTypeLangIndexId 3575 |
252 | |
253 | DECLARE_INDEX(pg_trigger_tgconstraint_index, 2699, on pg_trigger using btree(tgconstraint oid_ops)); |
254 | #define TriggerConstraintIndexId 2699 |
255 | DECLARE_UNIQUE_INDEX(pg_trigger_tgrelid_tgname_index, 2701, on pg_trigger using btree(tgrelid oid_ops, tgname name_ops)); |
256 | #define TriggerRelidNameIndexId 2701 |
257 | DECLARE_UNIQUE_INDEX(pg_trigger_oid_index, 2702, on pg_trigger using btree(oid oid_ops)); |
258 | #define TriggerOidIndexId 2702 |
259 | |
260 | DECLARE_UNIQUE_INDEX(pg_event_trigger_evtname_index, 3467, on pg_event_trigger using btree(evtname name_ops)); |
261 | #define EventTriggerNameIndexId 3467 |
262 | DECLARE_UNIQUE_INDEX(pg_event_trigger_oid_index, 3468, on pg_event_trigger using btree(oid oid_ops)); |
263 | #define EventTriggerOidIndexId 3468 |
264 | |
265 | DECLARE_UNIQUE_INDEX(pg_ts_config_cfgname_index, 3608, on pg_ts_config using btree(cfgname name_ops, cfgnamespace oid_ops)); |
266 | #define TSConfigNameNspIndexId 3608 |
267 | DECLARE_UNIQUE_INDEX(pg_ts_config_oid_index, 3712, on pg_ts_config using btree(oid oid_ops)); |
268 | #define TSConfigOidIndexId 3712 |
269 | |
270 | DECLARE_UNIQUE_INDEX(pg_ts_config_map_index, 3609, on pg_ts_config_map using btree(mapcfg oid_ops, maptokentype int4_ops, mapseqno int4_ops)); |
271 | #define TSConfigMapIndexId 3609 |
272 | |
273 | DECLARE_UNIQUE_INDEX(pg_ts_dict_dictname_index, 3604, on pg_ts_dict using btree(dictname name_ops, dictnamespace oid_ops)); |
274 | #define TSDictionaryNameNspIndexId 3604 |
275 | DECLARE_UNIQUE_INDEX(pg_ts_dict_oid_index, 3605, on pg_ts_dict using btree(oid oid_ops)); |
276 | #define TSDictionaryOidIndexId 3605 |
277 | |
278 | DECLARE_UNIQUE_INDEX(pg_ts_parser_prsname_index, 3606, on pg_ts_parser using btree(prsname name_ops, prsnamespace oid_ops)); |
279 | #define TSParserNameNspIndexId 3606 |
280 | DECLARE_UNIQUE_INDEX(pg_ts_parser_oid_index, 3607, on pg_ts_parser using btree(oid oid_ops)); |
281 | #define TSParserOidIndexId 3607 |
282 | |
283 | DECLARE_UNIQUE_INDEX(pg_ts_template_tmplname_index, 3766, on pg_ts_template using btree(tmplname name_ops, tmplnamespace oid_ops)); |
284 | #define TSTemplateNameNspIndexId 3766 |
285 | DECLARE_UNIQUE_INDEX(pg_ts_template_oid_index, 3767, on pg_ts_template using btree(oid oid_ops)); |
286 | #define TSTemplateOidIndexId 3767 |
287 | |
288 | DECLARE_UNIQUE_INDEX(pg_type_oid_index, 2703, on pg_type using btree(oid oid_ops)); |
289 | #define TypeOidIndexId 2703 |
290 | DECLARE_UNIQUE_INDEX(pg_type_typname_nsp_index, 2704, on pg_type using btree(typname name_ops, typnamespace oid_ops)); |
291 | #define TypeNameNspIndexId 2704 |
292 | |
293 | DECLARE_UNIQUE_INDEX(pg_foreign_data_wrapper_oid_index, 112, on pg_foreign_data_wrapper using btree(oid oid_ops)); |
294 | #define ForeignDataWrapperOidIndexId 112 |
295 | DECLARE_UNIQUE_INDEX(pg_foreign_data_wrapper_name_index, 548, on pg_foreign_data_wrapper using btree(fdwname name_ops)); |
296 | #define ForeignDataWrapperNameIndexId 548 |
297 | |
298 | DECLARE_UNIQUE_INDEX(pg_foreign_server_oid_index, 113, on pg_foreign_server using btree(oid oid_ops)); |
299 | #define ForeignServerOidIndexId 113 |
300 | DECLARE_UNIQUE_INDEX(pg_foreign_server_name_index, 549, on pg_foreign_server using btree(srvname name_ops)); |
301 | #define ForeignServerNameIndexId 549 |
302 | |
303 | DECLARE_UNIQUE_INDEX(pg_user_mapping_oid_index, 174, on pg_user_mapping using btree(oid oid_ops)); |
304 | #define UserMappingOidIndexId 174 |
305 | DECLARE_UNIQUE_INDEX(pg_user_mapping_user_server_index, 175, on pg_user_mapping using btree(umuser oid_ops, umserver oid_ops)); |
306 | #define UserMappingUserServerIndexId 175 |
307 | |
308 | DECLARE_UNIQUE_INDEX(pg_foreign_table_relid_index, 3119, on pg_foreign_table using btree(ftrelid oid_ops)); |
309 | #define ForeignTableRelidIndexId 3119 |
310 | |
311 | DECLARE_UNIQUE_INDEX(pg_default_acl_role_nsp_obj_index, 827, on pg_default_acl using btree(defaclrole oid_ops, defaclnamespace oid_ops, defaclobjtype char_ops)); |
312 | #define DefaultAclRoleNspObjIndexId 827 |
313 | DECLARE_UNIQUE_INDEX(pg_default_acl_oid_index, 828, on pg_default_acl using btree(oid oid_ops)); |
314 | #define DefaultAclOidIndexId 828 |
315 | |
316 | DECLARE_UNIQUE_INDEX(pg_db_role_setting_databaseid_rol_index, 2965, on pg_db_role_setting using btree(setdatabase oid_ops, setrole oid_ops)); |
317 | #define DbRoleSettingDatidRolidIndexId 2965 |
318 | |
319 | DECLARE_UNIQUE_INDEX(pg_seclabel_object_index, 3597, on pg_seclabel using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops, provider text_ops)); |
320 | #define SecLabelObjectIndexId 3597 |
321 | |
322 | DECLARE_UNIQUE_INDEX(pg_shseclabel_object_index, 3593, on pg_shseclabel using btree(objoid oid_ops, classoid oid_ops, provider text_ops)); |
323 | #define SharedSecLabelObjectIndexId 3593 |
324 | |
325 | DECLARE_UNIQUE_INDEX(pg_extension_oid_index, 3080, on pg_extension using btree(oid oid_ops)); |
326 | #define ExtensionOidIndexId 3080 |
327 | DECLARE_UNIQUE_INDEX(pg_extension_name_index, 3081, on pg_extension using btree(extname name_ops)); |
328 | #define ExtensionNameIndexId 3081 |
329 | |
330 | DECLARE_UNIQUE_INDEX(pg_range_rngtypid_index, 3542, on pg_range using btree(rngtypid oid_ops)); |
331 | #define RangeTypidIndexId 3542 |
332 | |
333 | DECLARE_UNIQUE_INDEX(pg_policy_oid_index, 3257, on pg_policy using btree(oid oid_ops)); |
334 | #define PolicyOidIndexId 3257 |
335 | |
336 | DECLARE_UNIQUE_INDEX(pg_policy_polrelid_polname_index, 3258, on pg_policy using btree(polrelid oid_ops, polname name_ops)); |
337 | #define PolicyPolrelidPolnameIndexId 3258 |
338 | |
339 | DECLARE_UNIQUE_INDEX(pg_replication_origin_roiident_index, 6001, on pg_replication_origin using btree(roident oid_ops)); |
340 | #define ReplicationOriginIdentIndex 6001 |
341 | |
342 | DECLARE_UNIQUE_INDEX(pg_replication_origin_roname_index, 6002, on pg_replication_origin using btree(roname text_ops)); |
343 | #define ReplicationOriginNameIndex 6002 |
344 | |
345 | DECLARE_UNIQUE_INDEX(pg_partitioned_table_partrelid_index, 3351, on pg_partitioned_table using btree(partrelid oid_ops)); |
346 | #define PartitionedRelidIndexId 3351 |
347 | |
348 | DECLARE_UNIQUE_INDEX(pg_publication_oid_index, 6110, on pg_publication using btree(oid oid_ops)); |
349 | #define PublicationObjectIndexId 6110 |
350 | |
351 | DECLARE_UNIQUE_INDEX(pg_publication_pubname_index, 6111, on pg_publication using btree(pubname name_ops)); |
352 | #define PublicationNameIndexId 6111 |
353 | |
354 | DECLARE_UNIQUE_INDEX(pg_publication_rel_oid_index, 6112, on pg_publication_rel using btree(oid oid_ops)); |
355 | #define PublicationRelObjectIndexId 6112 |
356 | |
357 | DECLARE_UNIQUE_INDEX(pg_publication_rel_prrelid_prpubid_index, 6113, on pg_publication_rel using btree(prrelid oid_ops, prpubid oid_ops)); |
358 | #define PublicationRelPrrelidPrpubidIndexId 6113 |
359 | |
360 | DECLARE_UNIQUE_INDEX(pg_subscription_oid_index, 6114, on pg_subscription using btree(oid oid_ops)); |
361 | #define SubscriptionObjectIndexId 6114 |
362 | |
363 | DECLARE_UNIQUE_INDEX(pg_subscription_subname_index, 6115, on pg_subscription using btree(subdbid oid_ops, subname name_ops)); |
364 | #define SubscriptionNameIndexId 6115 |
365 | |
366 | DECLARE_UNIQUE_INDEX(pg_subscription_rel_srrelid_srsubid_index, 6117, on pg_subscription_rel using btree(srrelid oid_ops, srsubid oid_ops)); |
367 | #define SubscriptionRelSrrelidSrsubidIndexId 6117 |
368 | |
369 | #endif /* INDEXING_H */ |
370 | |