summaryrefslogtreecommitdiffstats
path: root/src/include/catalog/pg_opclass.dat
blob: f2342bb328cb7b167111e473b0991cc3a360808f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
#----------------------------------------------------------------------
#
# pg_opclass.dat
#    Initial contents of the pg_opclass system catalog.
#
# Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# src/include/catalog/pg_opclass.dat
#
#----------------------------------------------------------------------

[

# Note: we hard-wire an OID only for a few entries that have to be explicitly
# referenced in the C code or in built-in catalog entries.  The rest get OIDs
# assigned on-the-fly during initdb.

{ opcmethod => 'btree', opcname => 'array_ops', opcfamily => 'btree/array_ops',
  opcintype => 'anyarray' },
{ opcmethod => 'hash', opcname => 'array_ops', opcfamily => 'hash/array_ops',
  opcintype => 'anyarray' },
{ opcmethod => 'btree', opcname => 'bit_ops', opcfamily => 'btree/bit_ops',
  opcintype => 'bit' },
{ opcmethod => 'btree', opcname => 'bool_ops', opcfamily => 'btree/bool_ops',
  opcintype => 'bool' },
{ opcmethod => 'btree', opcname => 'bpchar_ops',
  opcfamily => 'btree/bpchar_ops', opcintype => 'bpchar' },
{ opcmethod => 'hash', opcname => 'bpchar_ops', opcfamily => 'hash/bpchar_ops',
  opcintype => 'bpchar' },
{ opcmethod => 'btree', opcname => 'bytea_ops', opcfamily => 'btree/bytea_ops',
  opcintype => 'bytea' },
{ opcmethod => 'btree', opcname => 'char_ops', opcfamily => 'btree/char_ops',
  opcintype => 'char' },
{ opcmethod => 'hash', opcname => 'char_ops', opcfamily => 'hash/char_ops',
  opcintype => 'char' },
{ opcmethod => 'btree', opcname => 'cidr_ops', opcfamily => 'btree/network_ops',
  opcintype => 'inet', opcdefault => 'f' },
{ opcmethod => 'hash', opcname => 'cidr_ops', opcfamily => 'hash/network_ops',
  opcintype => 'inet', opcdefault => 'f' },
{ oid => '3122', oid_symbol => 'DATE_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'date_ops',
  opcfamily => 'btree/datetime_ops', opcintype => 'date' },
{ opcmethod => 'hash', opcname => 'date_ops', opcfamily => 'hash/date_ops',
  opcintype => 'date' },
{ opcmethod => 'btree', opcname => 'float4_ops', opcfamily => 'btree/float_ops',
  opcintype => 'float4' },
{ opcmethod => 'hash', opcname => 'float4_ops', opcfamily => 'hash/float_ops',
  opcintype => 'float4' },
{ oid => '3123', oid_symbol => 'FLOAT8_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'float8_ops', opcfamily => 'btree/float_ops',
  opcintype => 'float8' },
{ opcmethod => 'hash', opcname => 'float8_ops', opcfamily => 'hash/float_ops',
  opcintype => 'float8' },
{ opcmethod => 'btree', opcname => 'inet_ops', opcfamily => 'btree/network_ops',
  opcintype => 'inet' },
{ opcmethod => 'hash', opcname => 'inet_ops', opcfamily => 'hash/network_ops',
  opcintype => 'inet' },
{ opcmethod => 'gist', opcname => 'inet_ops', opcfamily => 'gist/network_ops',
  opcintype => 'inet', opcdefault => 'f' },
{ opcmethod => 'spgist', opcname => 'inet_ops',
  opcfamily => 'spgist/network_ops', opcintype => 'inet' },
{ oid => '1979', oid_symbol => 'INT2_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'int2_ops', opcfamily => 'btree/integer_ops',
  opcintype => 'int2' },
{ opcmethod => 'hash', opcname => 'int2_ops', opcfamily => 'hash/integer_ops',
  opcintype => 'int2' },
{ oid => '1978', oid_symbol => 'INT4_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'int4_ops', opcfamily => 'btree/integer_ops',
  opcintype => 'int4' },
{ opcmethod => 'hash', opcname => 'int4_ops', opcfamily => 'hash/integer_ops',
  opcintype => 'int4' },
{ oid => '3124', oid_symbol => 'INT8_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'int8_ops', opcfamily => 'btree/integer_ops',
  opcintype => 'int8' },
{ opcmethod => 'hash', opcname => 'int8_ops', opcfamily => 'hash/integer_ops',
  opcintype => 'int8' },
{ opcmethod => 'btree', opcname => 'interval_ops',
  opcfamily => 'btree/interval_ops', opcintype => 'interval' },
{ opcmethod => 'hash', opcname => 'interval_ops',
  opcfamily => 'hash/interval_ops', opcintype => 'interval' },
{ opcmethod => 'btree', opcname => 'macaddr_ops',
  opcfamily => 'btree/macaddr_ops', opcintype => 'macaddr' },
{ opcmethod => 'hash', opcname => 'macaddr_ops',
  opcfamily => 'hash/macaddr_ops', opcintype => 'macaddr' },
{ opcmethod => 'btree', opcname => 'macaddr8_ops',
  opcfamily => 'btree/macaddr8_ops', opcintype => 'macaddr8' },
{ opcmethod => 'hash', opcname => 'macaddr8_ops',
  opcfamily => 'hash/macaddr8_ops', opcintype => 'macaddr8' },

# Here's an ugly little hack to save space in the system catalog indexes.
# btree doesn't ordinarily allow a storage type different from input type;
# but cstring and name are the same thing except for trailing padding,
# and we can safely omit that within an index entry.  So we declare the
# btree opclass for name as using cstring storage type.
{ opcmethod => 'btree', opcname => 'name_ops', opcfamily => 'btree/text_ops',
  opcintype => 'name', opckeytype => 'cstring' },

{ opcmethod => 'hash', opcname => 'name_ops', opcfamily => 'hash/text_ops',
  opcintype => 'name' },
{ oid => '3125', oid_symbol => 'NUMERIC_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'numeric_ops',
  opcfamily => 'btree/numeric_ops', opcintype => 'numeric' },
{ opcmethod => 'hash', opcname => 'numeric_ops',
  opcfamily => 'hash/numeric_ops', opcintype => 'numeric' },
{ oid => '1981', oid_symbol => 'OID_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'oid_ops', opcfamily => 'btree/oid_ops',
  opcintype => 'oid' },
{ opcmethod => 'hash', opcname => 'oid_ops', opcfamily => 'hash/oid_ops',
  opcintype => 'oid' },
{ opcmethod => 'btree', opcname => 'oidvector_ops',
  opcfamily => 'btree/oidvector_ops', opcintype => 'oidvector' },
{ opcmethod => 'hash', opcname => 'oidvector_ops',
  opcfamily => 'hash/oidvector_ops', opcintype => 'oidvector' },
{ opcmethod => 'btree', opcname => 'record_ops',
  opcfamily => 'btree/record_ops', opcintype => 'record' },
{ opcmethod => 'btree', opcname => 'record_image_ops',
  opcfamily => 'btree/record_image_ops', opcintype => 'record',
  opcdefault => 'f' },
{ oid => '3126', oid_symbol => 'TEXT_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'text_ops', opcfamily => 'btree/text_ops',
  opcintype => 'text' },
{ opcmethod => 'hash', opcname => 'text_ops', opcfamily => 'hash/text_ops',
  opcintype => 'text' },
{ opcmethod => 'btree', opcname => 'time_ops', opcfamily => 'btree/time_ops',
  opcintype => 'time' },
{ opcmethod => 'hash', opcname => 'time_ops', opcfamily => 'hash/time_ops',
  opcintype => 'time' },
{ oid => '3127', oid_symbol => 'TIMESTAMPTZ_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'timestamptz_ops',
  opcfamily => 'btree/datetime_ops', opcintype => 'timestamptz' },
{ opcmethod => 'hash', opcname => 'timestamptz_ops',
  opcfamily => 'hash/timestamptz_ops', opcintype => 'timestamptz' },
{ opcmethod => 'btree', opcname => 'timetz_ops',
  opcfamily => 'btree/timetz_ops', opcintype => 'timetz' },
{ opcmethod => 'hash', opcname => 'timetz_ops', opcfamily => 'hash/timetz_ops',
  opcintype => 'timetz' },
{ opcmethod => 'btree', opcname => 'varbit_ops',
  opcfamily => 'btree/varbit_ops', opcintype => 'varbit' },
{ opcmethod => 'btree', opcname => 'varchar_ops', opcfamily => 'btree/text_ops',
  opcintype => 'text', opcdefault => 'f' },
{ opcmethod => 'hash', opcname => 'varchar_ops', opcfamily => 'hash/text_ops',
  opcintype => 'text', opcdefault => 'f' },
{ oid => '3128', oid_symbol => 'TIMESTAMP_BTREE_OPS_OID',
  opcmethod => 'btree', opcname => 'timestamp_ops',
  opcfamily => 'btree/datetime_ops', opcintype => 'timestamp' },
{ opcmethod => 'hash', opcname => 'timestamp_ops',
  opcfamily => 'hash/timestamp_ops', opcintype => 'timestamp' },
{ oid => '4217', oid_symbol => 'TEXT_BTREE_PATTERN_OPS_OID',
  opcmethod => 'btree', opcname => 'text_pattern_ops',
  opcfamily => 'btree/text_pattern_ops', opcintype => 'text',
  opcdefault => 'f' },
{ oid => '4218', oid_symbol => 'VARCHAR_BTREE_PATTERN_OPS_OID',
  opcmethod => 'btree', opcname => 'varchar_pattern_ops',
  opcfamily => 'btree/text_pattern_ops', opcintype => 'text',
  opcdefault => 'f' },
{ oid => '4219', oid_symbol => 'BPCHAR_BTREE_PATTERN_OPS_OID',
  opcmethod => 'btree', opcname => 'bpchar_pattern_ops',
  opcfamily => 'btree/bpchar_pattern_ops', opcintype => 'bpchar',
  opcdefault => 'f' },
{ opcmethod => 'btree', opcname => 'money_ops', opcfamily => 'btree/money_ops',
  opcintype => 'money' },
{ opcmethod => 'hash', opcname => 'bool_ops', opcfamily => 'hash/bool_ops',
  opcintype => 'bool' },
{ opcmethod => 'hash', opcname => 'bytea_ops', opcfamily => 'hash/bytea_ops',
  opcintype => 'bytea' },
{ opcmethod => 'btree', opcname => 'tid_ops', opcfamily => 'btree/tid_ops',
  opcintype => 'tid' },
{ opcmethod => 'hash', opcname => 'xid_ops', opcfamily => 'hash/xid_ops',
  opcintype => 'xid' },
{ opcmethod => 'hash', opcname => 'xid8_ops', opcfamily => 'hash/xid8_ops',
  opcintype => 'xid8' },
{ opcmethod => 'btree', opcname => 'xid8_ops', opcfamily => 'btree/xid8_ops',
  opcintype => 'xid8' },
{ opcmethod => 'hash', opcname => 'cid_ops', opcfamily => 'hash/cid_ops',
  opcintype => 'cid' },
{ opcmethod => 'hash', opcname => 'tid_ops', opcfamily => 'hash/tid_ops',
  opcintype => 'tid' },
{ opcmethod => 'hash', opcname => 'text_pattern_ops',
  opcfamily => 'hash/text_pattern_ops', opcintype => 'text',
  opcdefault => 'f' },
{ opcmethod => 'hash', opcname => 'varchar_pattern_ops',
  opcfamily => 'hash/text_pattern_ops', opcintype => 'text',
  opcdefault => 'f' },
{ opcmethod => 'hash', opcname => 'bpchar_pattern_ops',
  opcfamily => 'hash/bpchar_pattern_ops', opcintype => 'bpchar',
  opcdefault => 'f' },
{ opcmethod => 'hash', opcname => 'aclitem_ops',
  opcfamily => 'hash/aclitem_ops', opcintype => 'aclitem' },
{ opcmethod => 'gist', opcname => 'box_ops', opcfamily => 'gist/box_ops',
  opcintype => 'box' },
{ opcmethod => 'gist', opcname => 'point_ops', opcfamily => 'gist/point_ops',
  opcintype => 'point', opckeytype => 'box' },
{ opcmethod => 'gist', opcname => 'poly_ops', opcfamily => 'gist/poly_ops',
  opcintype => 'polygon', opckeytype => 'box' },
{ opcmethod => 'gist', opcname => 'circle_ops', opcfamily => 'gist/circle_ops',
  opcintype => 'circle', opckeytype => 'box' },
{ opcmethod => 'gin', opcname => 'array_ops', opcfamily => 'gin/array_ops',
  opcintype => 'anyarray', opckeytype => 'anyelement' },
{ opcmethod => 'btree', opcname => 'uuid_ops', opcfamily => 'btree/uuid_ops',
  opcintype => 'uuid' },
{ opcmethod => 'hash', opcname => 'uuid_ops', opcfamily => 'hash/uuid_ops',
  opcintype => 'uuid' },
{ opcmethod => 'btree', opcname => 'pg_lsn_ops',
  opcfamily => 'btree/pg_lsn_ops', opcintype => 'pg_lsn' },
{ opcmethod => 'hash', opcname => 'pg_lsn_ops', opcfamily => 'hash/pg_lsn_ops',
  opcintype => 'pg_lsn' },
{ opcmethod => 'btree', opcname => 'enum_ops', opcfamily => 'btree/enum_ops',
  opcintype => 'anyenum' },
{ opcmethod => 'hash', opcname => 'enum_ops', opcfamily => 'hash/enum_ops',
  opcintype => 'anyenum' },
{ opcmethod => 'btree', opcname => 'tsvector_ops',
  opcfamily => 'btree/tsvector_ops', opcintype => 'tsvector' },
{ opcmethod => 'gist', opcname => 'tsvector_ops',
  opcfamily => 'gist/tsvector_ops', opcintype => 'tsvector',
  opckeytype => 'gtsvector' },
{ opcmethod => 'gin', opcname => 'tsvector_ops',
  opcfamily => 'gin/tsvector_ops', opcintype => 'tsvector',
  opckeytype => 'text' },
{ opcmethod => 'btree', opcname => 'tsquery_ops',
  opcfamily => 'btree/tsquery_ops', opcintype => 'tsquery' },
{ opcmethod => 'gist', opcname => 'tsquery_ops',
  opcfamily => 'gist/tsquery_ops', opcintype => 'tsquery',
  opckeytype => 'int8' },
{ opcmethod => 'btree', opcname => 'range_ops', opcfamily => 'btree/range_ops',
  opcintype => 'anyrange' },
{ opcmethod => 'hash', opcname => 'range_ops', opcfamily => 'hash/range_ops',
  opcintype => 'anyrange' },
{ opcmethod => 'gist', opcname => 'range_ops', opcfamily => 'gist/range_ops',
  opcintype => 'anyrange' },
{ opcmethod => 'spgist', opcname => 'range_ops',
  opcfamily => 'spgist/range_ops', opcintype => 'anyrange' },
{ opcmethod => 'spgist', opcname => 'box_ops', opcfamily => 'spgist/box_ops',
  opcintype => 'box' },
{ opcmethod => 'spgist', opcname => 'quad_point_ops',
  opcfamily => 'spgist/quad_point_ops', opcintype => 'point' },
{ opcmethod => 'spgist', opcname => 'kd_point_ops',
  opcfamily => 'spgist/kd_point_ops', opcintype => 'point', opcdefault => 'f' },
{ opcmethod => 'spgist', opcname => 'text_ops', opcfamily => 'spgist/text_ops',
  opcintype => 'text' },
{ opcmethod => 'spgist', opcname => 'poly_ops', opcfamily => 'spgist/poly_ops',
  opcintype => 'polygon', opckeytype => 'box' },
{ opcmethod => 'btree', opcname => 'jsonb_ops', opcfamily => 'btree/jsonb_ops',
  opcintype => 'jsonb' },
{ opcmethod => 'hash', opcname => 'jsonb_ops', opcfamily => 'hash/jsonb_ops',
  opcintype => 'jsonb' },
{ opcmethod => 'gin', opcname => 'jsonb_ops', opcfamily => 'gin/jsonb_ops',
  opcintype => 'jsonb', opckeytype => 'text' },
{ opcmethod => 'gin', opcname => 'jsonb_path_ops',
  opcfamily => 'gin/jsonb_path_ops', opcintype => 'jsonb', opcdefault => 'f',
  opckeytype => 'int4' },

# BRIN operator classes

# no brin opclass for bool

{ opcmethod => 'brin', opcname => 'bytea_minmax_ops',
  opcfamily => 'brin/bytea_minmax_ops', opcintype => 'bytea',
  opckeytype => 'bytea' },
{ opcmethod => 'brin', opcname => 'char_minmax_ops',
  opcfamily => 'brin/char_minmax_ops', opcintype => 'char',
  opckeytype => 'char' },
{ opcmethod => 'brin', opcname => 'name_minmax_ops',
  opcfamily => 'brin/name_minmax_ops', opcintype => 'name',
  opckeytype => 'name' },
{ opcmethod => 'brin', opcname => 'int8_minmax_ops',
  opcfamily => 'brin/integer_minmax_ops', opcintype => 'int8',
  opckeytype => 'int8' },
{ opcmethod => 'brin', opcname => 'int2_minmax_ops',
  opcfamily => 'brin/integer_minmax_ops', opcintype => 'int2',
  opckeytype => 'int2' },
{ opcmethod => 'brin', opcname => 'int4_minmax_ops',
  opcfamily => 'brin/integer_minmax_ops', opcintype => 'int4',
  opckeytype => 'int4' },
{ opcmethod => 'brin', opcname => 'text_minmax_ops',
  opcfamily => 'brin/text_minmax_ops', opcintype => 'text',
  opckeytype => 'text' },
{ opcmethod => 'brin', opcname => 'oid_minmax_ops',
  opcfamily => 'brin/oid_minmax_ops', opcintype => 'oid', opckeytype => 'oid' },
{ opcmethod => 'brin', opcname => 'tid_minmax_ops',
  opcfamily => 'brin/tid_minmax_ops', opcintype => 'tid', opckeytype => 'tid' },
{ opcmethod => 'brin', opcname => 'float4_minmax_ops',
  opcfamily => 'brin/float_minmax_ops', opcintype => 'float4',
  opckeytype => 'float4' },
{ opcmethod => 'brin', opcname => 'float8_minmax_ops',
  opcfamily => 'brin/float_minmax_ops', opcintype => 'float8',
  opckeytype => 'float8' },
{ opcmethod => 'brin', opcname => 'macaddr_minmax_ops',
  opcfamily => 'brin/macaddr_minmax_ops', opcintype => 'macaddr',
  opckeytype => 'macaddr' },
{ opcmethod => 'brin', opcname => 'macaddr8_minmax_ops',
  opcfamily => 'brin/macaddr8_minmax_ops', opcintype => 'macaddr8',
  opckeytype => 'macaddr8' },
{ opcmethod => 'brin', opcname => 'inet_minmax_ops',
  opcfamily => 'brin/network_minmax_ops', opcintype => 'inet',
  opcdefault => 'f', opckeytype => 'inet' },
{ opcmethod => 'brin', opcname => 'inet_inclusion_ops',
  opcfamily => 'brin/network_inclusion_ops', opcintype => 'inet',
  opckeytype => 'inet' },
{ opcmethod => 'brin', opcname => 'bpchar_minmax_ops',
  opcfamily => 'brin/bpchar_minmax_ops', opcintype => 'bpchar',
  opckeytype => 'bpchar' },
{ opcmethod => 'brin', opcname => 'time_minmax_ops',
  opcfamily => 'brin/time_minmax_ops', opcintype => 'time',
  opckeytype => 'time' },
{ opcmethod => 'brin', opcname => 'date_minmax_ops',
  opcfamily => 'brin/datetime_minmax_ops', opcintype => 'date',
  opckeytype => 'date' },
{ opcmethod => 'brin', opcname => 'timestamp_minmax_ops',
  opcfamily => 'brin/datetime_minmax_ops', opcintype => 'timestamp',
  opckeytype => 'timestamp' },
{ opcmethod => 'brin', opcname => 'timestamptz_minmax_ops',
  opcfamily => 'brin/datetime_minmax_ops', opcintype => 'timestamptz',
  opckeytype => 'timestamptz' },
{ opcmethod => 'brin', opcname => 'interval_minmax_ops',
  opcfamily => 'brin/interval_minmax_ops', opcintype => 'interval',
  opckeytype => 'interval' },
{ opcmethod => 'brin', opcname => 'timetz_minmax_ops',
  opcfamily => 'brin/timetz_minmax_ops', opcintype => 'timetz',
  opckeytype => 'timetz' },
{ opcmethod => 'brin', opcname => 'bit_minmax_ops',
  opcfamily => 'brin/bit_minmax_ops', opcintype => 'bit', opckeytype => 'bit' },
{ opcmethod => 'brin', opcname => 'varbit_minmax_ops',
  opcfamily => 'brin/varbit_minmax_ops', opcintype => 'varbit',
  opckeytype => 'varbit' },
{ opcmethod => 'brin', opcname => 'numeric_minmax_ops',
  opcfamily => 'brin/numeric_minmax_ops', opcintype => 'numeric',
  opckeytype => 'numeric' },

# no brin opclass for record, anyarray

{ opcmethod => 'brin', opcname => 'uuid_minmax_ops',
  opcfamily => 'brin/uuid_minmax_ops', opcintype => 'uuid',
  opckeytype => 'uuid' },
{ opcmethod => 'brin', opcname => 'range_inclusion_ops',
  opcfamily => 'brin/range_inclusion_ops', opcintype => 'anyrange',
  opckeytype => 'anyrange' },
{ opcmethod => 'brin', opcname => 'pg_lsn_minmax_ops',
  opcfamily => 'brin/pg_lsn_minmax_ops', opcintype => 'pg_lsn',
  opckeytype => 'pg_lsn' },

# no brin opclass for enum, tsvector, tsquery, jsonb

{ opcmethod => 'brin', opcname => 'box_inclusion_ops',
  opcfamily => 'brin/box_inclusion_ops', opcintype => 'box',
  opckeytype => 'box' },

# no brin opclass for the geometric types except box

]