summaryrefslogtreecommitdiffstats
path: root/src/include/catalog/pg_type.dat
blob: e8be0008353d077df8bef148f170b13a44ba597e (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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
#----------------------------------------------------------------------
#
# pg_type.dat
#    Initial contents of the pg_type 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_type.dat
#
#----------------------------------------------------------------------

[

# For types used in the system catalogs, make sure the values here match
# TypInfo[] in bootstrap.c.

# OID symbol macro names for pg_type OIDs are generated by genbki.pl
# according to the following rule, so you don't need to specify them
# here:
#  foo_bar  ->  FOO_BAROID
# _foo_bar  ->  FOO_BARARRAYOID
#
# The only oid_symbol entries in this file are for names that don't match
# this rule, and are grandfathered in.

# To autogenerate an array type, add 'array_type_oid => 'nnnn' to the element
# type, which will instruct genbki.pl to generate a BKI entry for it.
# In a few cases, the array type's properties don't match the normal pattern
# so it can't be autogenerated; in such cases do not write array_type_oid.

# Once upon a time these entries were ordered by OID.  Lately it's often
# been the custom to insert new entries adjacent to related older entries.
# Try to do one or the other though, don't just insert entries at random.

# OIDS 1 - 99

{ oid => '16', array_type_oid => '1000',
  descr => 'boolean, \'true\'/\'false\'',
  typname => 'bool', typlen => '1', typbyval => 't', typcategory => 'B',
  typispreferred => 't', typinput => 'boolin', typoutput => 'boolout',
  typreceive => 'boolrecv', typsend => 'boolsend', typalign => 'c' },
{ oid => '17', array_type_oid => '1001',
  descr => 'variable-length string, binary values escaped',
  typname => 'bytea', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'byteain', typoutput => 'byteaout', typreceive => 'bytearecv',
  typsend => 'byteasend', typalign => 'i', typstorage => 'x' },
{ oid => '18', array_type_oid => '1002', descr => 'single character',
  typname => 'char', typlen => '1', typbyval => 't', typcategory => 'S',
  typinput => 'charin', typoutput => 'charout', typreceive => 'charrecv',
  typsend => 'charsend', typalign => 'c' },
{ oid => '19', array_type_oid => '1003',
  descr => '63-byte type for storing system identifiers',
  typname => 'name', typlen => 'NAMEDATALEN', typbyval => 'f',
  typcategory => 'S', typelem => 'char', typinput => 'namein',
  typoutput => 'nameout', typreceive => 'namerecv', typsend => 'namesend',
  typalign => 'c', typcollation => 'C' },
{ oid => '20', array_type_oid => '1016',
  descr => '~18 digit integer, 8-byte storage',
  typname => 'int8', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
  typcategory => 'N', typinput => 'int8in', typoutput => 'int8out',
  typreceive => 'int8recv', typsend => 'int8send', typalign => 'd' },
{ oid => '21', array_type_oid => '1005',
  descr => '-32 thousand to 32 thousand, 2-byte storage',
  typname => 'int2', typlen => '2', typbyval => 't', typcategory => 'N',
  typinput => 'int2in', typoutput => 'int2out', typreceive => 'int2recv',
  typsend => 'int2send', typalign => 's' },
{ oid => '22', array_type_oid => '1006',
  descr => 'array of int2, used in system tables',
  typname => 'int2vector', typlen => '-1', typbyval => 'f', typcategory => 'A',
  typelem => 'int2', typinput => 'int2vectorin', typoutput => 'int2vectorout',
  typreceive => 'int2vectorrecv', typsend => 'int2vectorsend',
  typalign => 'i' },
{ oid => '23', array_type_oid => '1007',
  descr => '-2 billion to 2 billion integer, 4-byte storage',
  typname => 'int4', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'int4in', typoutput => 'int4out', typreceive => 'int4recv',
  typsend => 'int4send', typalign => 'i' },
{ oid => '24', array_type_oid => '1008', descr => 'registered procedure',
  typname => 'regproc', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regprocin', typoutput => 'regprocout',
  typreceive => 'regprocrecv', typsend => 'regprocsend', typalign => 'i' },
{ oid => '25', array_type_oid => '1009',
  descr => 'variable-length string, no limit specified',
  typname => 'text', typlen => '-1', typbyval => 'f', typcategory => 'S',
  typispreferred => 't', typinput => 'textin', typoutput => 'textout',
  typreceive => 'textrecv', typsend => 'textsend', typalign => 'i',
  typstorage => 'x', typcollation => 'default' },
{ oid => '26', array_type_oid => '1028',
  descr => 'object identifier(oid), maximum 4 billion',
  typname => 'oid', typlen => '4', typbyval => 't', typcategory => 'N',
  typispreferred => 't', typinput => 'oidin', typoutput => 'oidout',
  typreceive => 'oidrecv', typsend => 'oidsend', typalign => 'i' },
{ oid => '27', array_type_oid => '1010',
  descr => '(block, offset), physical location of tuple',
  typname => 'tid', typlen => '6', typbyval => 'f', typcategory => 'U',
  typinput => 'tidin', typoutput => 'tidout', typreceive => 'tidrecv',
  typsend => 'tidsend', typalign => 's' },
{ oid => '28', array_type_oid => '1011', descr => 'transaction id',
  typname => 'xid', typlen => '4', typbyval => 't', typcategory => 'U',
  typinput => 'xidin', typoutput => 'xidout', typreceive => 'xidrecv',
  typsend => 'xidsend', typalign => 'i' },
{ oid => '29', array_type_oid => '1012',
  descr => 'command identifier type, sequence in transaction id',
  typname => 'cid', typlen => '4', typbyval => 't', typcategory => 'U',
  typinput => 'cidin', typoutput => 'cidout', typreceive => 'cidrecv',
  typsend => 'cidsend', typalign => 'i' },
{ oid => '30', array_type_oid => '1013',
  descr => 'array of oids, used in system tables',
  typname => 'oidvector', typlen => '-1', typbyval => 'f', typcategory => 'A',
  typelem => 'oid', typinput => 'oidvectorin', typoutput => 'oidvectorout',
  typreceive => 'oidvectorrecv', typsend => 'oidvectorsend', typalign => 'i' },

# hand-built rowtype entries for bootstrapped catalogs
# NB: OIDs assigned here must match the BKI_ROWTYPE_OID declarations
{ oid => '71',
  typname => 'pg_type', typlen => '-1', typbyval => 'f', typtype => 'c',
  typcategory => 'C', typrelid => 'pg_type', typinput => 'record_in',
  typoutput => 'record_out', typreceive => 'record_recv',
  typsend => 'record_send', typalign => 'd', typstorage => 'x' },
{ oid => '75',
  typname => 'pg_attribute', typlen => '-1', typbyval => 'f', typtype => 'c',
  typcategory => 'C', typrelid => 'pg_attribute', typinput => 'record_in',
  typoutput => 'record_out', typreceive => 'record_recv',
  typsend => 'record_send', typalign => 'd', typstorage => 'x' },
{ oid => '81',
  typname => 'pg_proc', typlen => '-1', typbyval => 'f', typtype => 'c',
  typcategory => 'C', typrelid => 'pg_proc', typinput => 'record_in',
  typoutput => 'record_out', typreceive => 'record_recv',
  typsend => 'record_send', typalign => 'd', typstorage => 'x' },
{ oid => '83',
  typname => 'pg_class', typlen => '-1', typbyval => 'f', typtype => 'c',
  typcategory => 'C', typrelid => 'pg_class', typinput => 'record_in',
  typoutput => 'record_out', typreceive => 'record_recv',
  typsend => 'record_send', typalign => 'd', typstorage => 'x' },

# OIDS 100 - 199

{ oid => '114', array_type_oid => '199', descr => 'JSON stored as text',
  typname => 'json', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'json_in', typoutput => 'json_out', typreceive => 'json_recv',
  typsend => 'json_send', typalign => 'i', typstorage => 'x' },
{ oid => '142', array_type_oid => '143', descr => 'XML content',
  typname => 'xml', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'xml_in', typoutput => 'xml_out', typreceive => 'xml_recv',
  typsend => 'xml_send', typalign => 'i', typstorage => 'x' },
{ oid => '194', oid_symbol => 'PGNODETREEOID',
  descr => 'string representing an internal node tree',
  typname => 'pg_node_tree', typlen => '-1', typbyval => 'f',
  typcategory => 'S', typinput => 'pg_node_tree_in',
  typoutput => 'pg_node_tree_out', typreceive => 'pg_node_tree_recv',
  typsend => 'pg_node_tree_send', typalign => 'i', typstorage => 'x',
  typcollation => 'default' },
{ oid => '3361', oid_symbol => 'PGNDISTINCTOID',
  descr => 'multivariate ndistinct coefficients',
  typname => 'pg_ndistinct', typlen => '-1', typbyval => 'f',
  typcategory => 'S', typinput => 'pg_ndistinct_in',
  typoutput => 'pg_ndistinct_out', typreceive => 'pg_ndistinct_recv',
  typsend => 'pg_ndistinct_send', typalign => 'i', typstorage => 'x',
  typcollation => 'default' },
{ oid => '3402', oid_symbol => 'PGDEPENDENCIESOID',
  descr => 'multivariate dependencies',
  typname => 'pg_dependencies', typlen => '-1', typbyval => 'f',
  typcategory => 'S', typinput => 'pg_dependencies_in',
  typoutput => 'pg_dependencies_out', typreceive => 'pg_dependencies_recv',
  typsend => 'pg_dependencies_send', typalign => 'i', typstorage => 'x',
  typcollation => 'default' },
{ oid => '5017', oid_symbol => 'PGMCVLISTOID',
  descr => 'multivariate MCV list',
  typname => 'pg_mcv_list', typlen => '-1', typbyval => 'f', typcategory => 'S',
  typinput => 'pg_mcv_list_in', typoutput => 'pg_mcv_list_out',
  typreceive => 'pg_mcv_list_recv', typsend => 'pg_mcv_list_send',
  typalign => 'i', typstorage => 'x', typcollation => 'default' },
{ oid => '32', oid_symbol => 'PGDDLCOMMANDOID',
  descr => 'internal type for passing CollectedCommand',
  typname => 'pg_ddl_command', typlen => 'SIZEOF_POINTER', typbyval => 't',
  typtype => 'p', typcategory => 'P', typinput => 'pg_ddl_command_in',
  typoutput => 'pg_ddl_command_out', typreceive => 'pg_ddl_command_recv',
  typsend => 'pg_ddl_command_send', typalign => 'ALIGNOF_POINTER' },
{ oid => '5069', array_type_oid => '271', descr => 'full transaction id',
  typname => 'xid8', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
  typcategory => 'U', typinput => 'xid8in', typoutput => 'xid8out',
  typreceive => 'xid8recv', typsend => 'xid8send', typalign => 'd' },

# OIDS 600 - 699

{ oid => '600', array_type_oid => '1017',
  descr => 'geometric point \'(x, y)\'',
  typname => 'point', typlen => '16', typbyval => 'f', typcategory => 'G',
  typelem => 'float8', typinput => 'point_in', typoutput => 'point_out',
  typreceive => 'point_recv', typsend => 'point_send', typalign => 'd' },
{ oid => '601', array_type_oid => '1018',
  descr => 'geometric line segment \'(pt1,pt2)\'',
  typname => 'lseg', typlen => '32', typbyval => 'f', typcategory => 'G',
  typelem => 'point', typinput => 'lseg_in', typoutput => 'lseg_out',
  typreceive => 'lseg_recv', typsend => 'lseg_send', typalign => 'd' },
{ oid => '602', array_type_oid => '1019',
  descr => 'geometric path \'(pt1,...)\'',
  typname => 'path', typlen => '-1', typbyval => 'f', typcategory => 'G',
  typinput => 'path_in', typoutput => 'path_out', typreceive => 'path_recv',
  typsend => 'path_send', typalign => 'd', typstorage => 'x' },
{ oid => '603', array_type_oid => '1020',
  descr => 'geometric box \'(lower left,upper right)\'',
  typname => 'box', typlen => '32', typbyval => 'f', typcategory => 'G',
  typdelim => ';', typelem => 'point', typinput => 'box_in',
  typoutput => 'box_out', typreceive => 'box_recv', typsend => 'box_send',
  typalign => 'd' },
{ oid => '604', array_type_oid => '1027',
  descr => 'geometric polygon \'(pt1,...)\'',
  typname => 'polygon', typlen => '-1', typbyval => 'f', typcategory => 'G',
  typinput => 'poly_in', typoutput => 'poly_out', typreceive => 'poly_recv',
  typsend => 'poly_send', typalign => 'd', typstorage => 'x' },
{ oid => '628', array_type_oid => '629', descr => 'geometric line',
  typname => 'line', typlen => '24', typbyval => 'f', typcategory => 'G',
  typelem => 'float8', typinput => 'line_in', typoutput => 'line_out',
  typreceive => 'line_recv', typsend => 'line_send', typalign => 'd' },

# OIDS 700 - 799

{ oid => '700', array_type_oid => '1021',
  descr => 'single-precision floating point number, 4-byte storage',
  typname => 'float4', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'float4in', typoutput => 'float4out', typreceive => 'float4recv',
  typsend => 'float4send', typalign => 'i' },
{ oid => '701', array_type_oid => '1022',
  descr => 'double-precision floating point number, 8-byte storage',
  typname => 'float8', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
  typcategory => 'N', typispreferred => 't', typinput => 'float8in',
  typoutput => 'float8out', typreceive => 'float8recv', typsend => 'float8send',
  typalign => 'd' },
{ oid => '705', descr => 'pseudo-type representing an undetermined type',
  typname => 'unknown', typlen => '-2', typbyval => 'f', typtype => 'p',
  typcategory => 'X', typinput => 'unknownin', typoutput => 'unknownout',
  typreceive => 'unknownrecv', typsend => 'unknownsend', typalign => 'c' },
{ oid => '718', array_type_oid => '719',
  descr => 'geometric circle \'(center,radius)\'',
  typname => 'circle', typlen => '24', typbyval => 'f', typcategory => 'G',
  typinput => 'circle_in', typoutput => 'circle_out',
  typreceive => 'circle_recv', typsend => 'circle_send', typalign => 'd' },
{ oid => '790', oid_symbol => 'CASHOID', array_type_oid => '791',
  descr => 'monetary amounts, $d,ddd.cc',
  typname => 'money', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
  typcategory => 'N', typinput => 'cash_in', typoutput => 'cash_out',
  typreceive => 'cash_recv', typsend => 'cash_send', typalign => 'd' },

# OIDS 800 - 899

{ oid => '829', array_type_oid => '1040',
  descr => 'XX:XX:XX:XX:XX:XX, MAC address',
  typname => 'macaddr', typlen => '6', typbyval => 'f', typcategory => 'U',
  typinput => 'macaddr_in', typoutput => 'macaddr_out',
  typreceive => 'macaddr_recv', typsend => 'macaddr_send', typalign => 'i' },
{ oid => '869', array_type_oid => '1041',
  descr => 'IP address/netmask, host address, netmask optional',
  typname => 'inet', typlen => '-1', typbyval => 'f', typcategory => 'I',
  typispreferred => 't', typinput => 'inet_in', typoutput => 'inet_out',
  typreceive => 'inet_recv', typsend => 'inet_send', typalign => 'i',
  typstorage => 'm' },
{ oid => '650', array_type_oid => '651',
  descr => 'network IP address/netmask, network address',
  typname => 'cidr', typlen => '-1', typbyval => 'f', typcategory => 'I',
  typinput => 'cidr_in', typoutput => 'cidr_out', typreceive => 'cidr_recv',
  typsend => 'cidr_send', typalign => 'i', typstorage => 'm' },
{ oid => '774', array_type_oid => '775',
  descr => 'XX:XX:XX:XX:XX:XX:XX:XX, MAC address',
  typname => 'macaddr8', typlen => '8', typbyval => 'f', typcategory => 'U',
  typinput => 'macaddr8_in', typoutput => 'macaddr8_out',
  typreceive => 'macaddr8_recv', typsend => 'macaddr8_send', typalign => 'i' },

# OIDS 1000 - 1099

{ oid => '1033', array_type_oid => '1034', descr => 'access control list',
  typname => 'aclitem', typlen => '12', typbyval => 'f', typcategory => 'U',
  typinput => 'aclitemin', typoutput => 'aclitemout', typreceive => '-',
  typsend => '-', typalign => 'i' },
{ oid => '1042', array_type_oid => '1014',
  descr => 'char(length), blank-padded string, fixed storage length',
  typname => 'bpchar', typlen => '-1', typbyval => 'f', typcategory => 'S',
  typinput => 'bpcharin', typoutput => 'bpcharout', typreceive => 'bpcharrecv',
  typsend => 'bpcharsend', typmodin => 'bpchartypmodin',
  typmodout => 'bpchartypmodout', typalign => 'i', typstorage => 'x',
  typcollation => 'default' },
{ oid => '1043', array_type_oid => '1015',
  descr => 'varchar(length), non-blank-padded string, variable storage length',
  typname => 'varchar', typlen => '-1', typbyval => 'f', typcategory => 'S',
  typinput => 'varcharin', typoutput => 'varcharout',
  typreceive => 'varcharrecv', typsend => 'varcharsend',
  typmodin => 'varchartypmodin', typmodout => 'varchartypmodout',
  typalign => 'i', typstorage => 'x', typcollation => 'default' },
{ oid => '1082', array_type_oid => '1182', descr => 'date',
  typname => 'date', typlen => '4', typbyval => 't', typcategory => 'D',
  typinput => 'date_in', typoutput => 'date_out', typreceive => 'date_recv',
  typsend => 'date_send', typalign => 'i' },
{ oid => '1083', array_type_oid => '1183', descr => 'time of day',
  typname => 'time', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
  typcategory => 'D', typinput => 'time_in', typoutput => 'time_out',
  typreceive => 'time_recv', typsend => 'time_send', typmodin => 'timetypmodin',
  typmodout => 'timetypmodout', typalign => 'd' },

# OIDS 1100 - 1199

{ oid => '1114', array_type_oid => '1115', descr => 'date and time',
  typname => 'timestamp', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
  typcategory => 'D', typinput => 'timestamp_in', typoutput => 'timestamp_out',
  typreceive => 'timestamp_recv', typsend => 'timestamp_send',
  typmodin => 'timestamptypmodin', typmodout => 'timestamptypmodout',
  typalign => 'd' },
{ oid => '1184', array_type_oid => '1185',
  descr => 'date and time with time zone',
  typname => 'timestamptz', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
  typcategory => 'D', typispreferred => 't', typinput => 'timestamptz_in',
  typoutput => 'timestamptz_out', typreceive => 'timestamptz_recv',
  typsend => 'timestamptz_send', typmodin => 'timestamptztypmodin',
  typmodout => 'timestamptztypmodout', typalign => 'd' },
{ oid => '1186', array_type_oid => '1187',
  descr => '@ <number> <units>, time interval',
  typname => 'interval', typlen => '16', typbyval => 'f', typcategory => 'T',
  typispreferred => 't', typinput => 'interval_in', typoutput => 'interval_out',
  typreceive => 'interval_recv', typsend => 'interval_send',
  typmodin => 'intervaltypmodin', typmodout => 'intervaltypmodout',
  typalign => 'd' },

# OIDS 1200 - 1299

{ oid => '1266', array_type_oid => '1270',
  descr => 'time of day with time zone',
  typname => 'timetz', typlen => '12', typbyval => 'f', typcategory => 'D',
  typinput => 'timetz_in', typoutput => 'timetz_out',
  typreceive => 'timetz_recv', typsend => 'timetz_send',
  typmodin => 'timetztypmodin', typmodout => 'timetztypmodout',
  typalign => 'd' },

# OIDS 1500 - 1599

{ oid => '1560', array_type_oid => '1561', descr => 'fixed-length bit string',
  typname => 'bit', typlen => '-1', typbyval => 'f', typcategory => 'V',
  typinput => 'bit_in', typoutput => 'bit_out', typreceive => 'bit_recv',
  typsend => 'bit_send', typmodin => 'bittypmodin', typmodout => 'bittypmodout',
  typalign => 'i', typstorage => 'x' },
{ oid => '1562', array_type_oid => '1563',
  descr => 'variable-length bit string',
  typname => 'varbit', typlen => '-1', typbyval => 'f', typcategory => 'V',
  typispreferred => 't', typinput => 'varbit_in', typoutput => 'varbit_out',
  typreceive => 'varbit_recv', typsend => 'varbit_send',
  typmodin => 'varbittypmodin', typmodout => 'varbittypmodout', typalign => 'i',
  typstorage => 'x' },

# OIDS 1700 - 1799

{ oid => '1700', array_type_oid => '1231',
  descr => 'numeric(precision, decimal), arbitrary precision number',
  typname => 'numeric', typlen => '-1', typbyval => 'f', typcategory => 'N',
  typinput => 'numeric_in', typoutput => 'numeric_out',
  typreceive => 'numeric_recv', typsend => 'numeric_send',
  typmodin => 'numerictypmodin', typmodout => 'numerictypmodout',
  typalign => 'i', typstorage => 'm' },

{ oid => '1790', array_type_oid => '2201',
  descr => 'reference to cursor (portal name)',
  typname => 'refcursor', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'textin', typoutput => 'textout', typreceive => 'textrecv',
  typsend => 'textsend', typalign => 'i', typstorage => 'x' },

# OIDS 2200 - 2299

{ oid => '2202', array_type_oid => '2207',
  descr => 'registered procedure (with args)',
  typname => 'regprocedure', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regprocedurein', typoutput => 'regprocedureout',
  typreceive => 'regprocedurerecv', typsend => 'regproceduresend',
  typalign => 'i' },
{ oid => '2203', array_type_oid => '2208', descr => 'registered operator',
  typname => 'regoper', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regoperin', typoutput => 'regoperout',
  typreceive => 'regoperrecv', typsend => 'regopersend', typalign => 'i' },
{ oid => '2204', array_type_oid => '2209',
  descr => 'registered operator (with args)',
  typname => 'regoperator', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regoperatorin', typoutput => 'regoperatorout',
  typreceive => 'regoperatorrecv', typsend => 'regoperatorsend',
  typalign => 'i' },
{ oid => '2205', array_type_oid => '2210', descr => 'registered class',
  typname => 'regclass', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regclassin', typoutput => 'regclassout',
  typreceive => 'regclassrecv', typsend => 'regclasssend', typalign => 'i' },
{ oid => '4191', array_type_oid => '4192', descr => 'registered collation',
  typname => 'regcollation', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regcollationin', typoutput => 'regcollationout',
  typreceive => 'regcollationrecv', typsend => 'regcollationsend',
  typalign => 'i' },
{ oid => '2206', array_type_oid => '2211', descr => 'registered type',
  typname => 'regtype', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regtypein', typoutput => 'regtypeout',
  typreceive => 'regtyperecv', typsend => 'regtypesend', typalign => 'i' },
{ oid => '4096', array_type_oid => '4097', descr => 'registered role',
  typname => 'regrole', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regrolein', typoutput => 'regroleout',
  typreceive => 'regrolerecv', typsend => 'regrolesend', typalign => 'i' },
{ oid => '4089', array_type_oid => '4090', descr => 'registered namespace',
  typname => 'regnamespace', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regnamespacein', typoutput => 'regnamespaceout',
  typreceive => 'regnamespacerecv', typsend => 'regnamespacesend',
  typalign => 'i' },

# uuid
{ oid => '2950', array_type_oid => '2951', descr => 'UUID datatype',
  typname => 'uuid', typlen => '16', typbyval => 'f', typcategory => 'U',
  typinput => 'uuid_in', typoutput => 'uuid_out', typreceive => 'uuid_recv',
  typsend => 'uuid_send', typalign => 'c' },

# pg_lsn
{ oid => '3220', oid_symbol => 'LSNOID', array_type_oid => '3221',
  descr => 'PostgreSQL LSN datatype',
  typname => 'pg_lsn', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
  typcategory => 'U', typinput => 'pg_lsn_in', typoutput => 'pg_lsn_out',
  typreceive => 'pg_lsn_recv', typsend => 'pg_lsn_send', typalign => 'd' },

# text search
{ oid => '3614', array_type_oid => '3643',
  descr => 'text representation for text search',
  typname => 'tsvector', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'tsvectorin', typoutput => 'tsvectorout',
  typreceive => 'tsvectorrecv', typsend => 'tsvectorsend',
  typanalyze => 'ts_typanalyze', typalign => 'i', typstorage => 'x' },
{ oid => '3642', array_type_oid => '3644',
  descr => 'GiST index internal text representation for text search',
  typname => 'gtsvector', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'gtsvectorin', typoutput => 'gtsvectorout', typreceive => '-',
  typsend => '-', typalign => 'i' },
{ oid => '3615', array_type_oid => '3645',
  descr => 'query representation for text search',
  typname => 'tsquery', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'tsqueryin', typoutput => 'tsqueryout',
  typreceive => 'tsqueryrecv', typsend => 'tsquerysend', typalign => 'i' },
{ oid => '3734', array_type_oid => '3735',
  descr => 'registered text search configuration',
  typname => 'regconfig', typlen => '4', typbyval => 't', typcategory => 'N',
  typinput => 'regconfigin', typoutput => 'regconfigout',
  typreceive => 'regconfigrecv', typsend => 'regconfigsend', typalign => 'i' },
{ oid => '3769', array_type_oid => '3770',
  descr => 'registered text search dictionary',
  typname => 'regdictionary', typlen => '4', typbyval => 't',
  typcategory => 'N', typinput => 'regdictionaryin',
  typoutput => 'regdictionaryout', typreceive => 'regdictionaryrecv',
  typsend => 'regdictionarysend', typalign => 'i' },

# jsonb
{ oid => '3802', array_type_oid => '3807', descr => 'Binary JSON',
  typname => 'jsonb', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'jsonb_in', typoutput => 'jsonb_out', typreceive => 'jsonb_recv',
  typsend => 'jsonb_send', typalign => 'i', typstorage => 'x' },
{ oid => '4072', array_type_oid => '4073', descr => 'JSON path',
  typname => 'jsonpath', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'jsonpath_in', typoutput => 'jsonpath_out',
  typreceive => 'jsonpath_recv', typsend => 'jsonpath_send', typalign => 'i',
  typstorage => 'x' },

{ oid => '2970', array_type_oid => '2949', descr => 'txid snapshot',
  typname => 'txid_snapshot', typlen => '-1', typbyval => 'f',
  typcategory => 'U', typinput => 'txid_snapshot_in',
  typoutput => 'txid_snapshot_out', typreceive => 'txid_snapshot_recv',
  typsend => 'txid_snapshot_send', typalign => 'd', typstorage => 'x' },
{ oid => '5038', array_type_oid => '5039', descr => 'snapshot',
  typname => 'pg_snapshot', typlen => '-1', typbyval => 'f', typcategory => 'U',
  typinput => 'pg_snapshot_in', typoutput => 'pg_snapshot_out',
  typreceive => 'pg_snapshot_recv', typsend => 'pg_snapshot_send',
  typalign => 'd', typstorage => 'x' },

# range types
{ oid => '3904', array_type_oid => '3905', descr => 'range of integers',
  typname => 'int4range', typlen => '-1', typbyval => 'f', typtype => 'r',
  typcategory => 'R', typinput => 'range_in', typoutput => 'range_out',
  typreceive => 'range_recv', typsend => 'range_send',
  typanalyze => 'range_typanalyze', typalign => 'i', typstorage => 'x' },
{ oid => '3906', array_type_oid => '3907', descr => 'range of numerics',
  typname => 'numrange', typlen => '-1', typbyval => 'f', typtype => 'r',
  typcategory => 'R', typinput => 'range_in', typoutput => 'range_out',
  typreceive => 'range_recv', typsend => 'range_send',
  typanalyze => 'range_typanalyze', typalign => 'i', typstorage => 'x' },
{ oid => '3908', array_type_oid => '3909',
  descr => 'range of timestamps without time zone',
  typname => 'tsrange', typlen => '-1', typbyval => 'f', typtype => 'r',
  typcategory => 'R', typinput => 'range_in', typoutput => 'range_out',
  typreceive => 'range_recv', typsend => 'range_send',
  typanalyze => 'range_typanalyze', typalign => 'd', typstorage => 'x' },
{ oid => '3910', array_type_oid => '3911',
  descr => 'range of timestamps with time zone',
  typname => 'tstzrange', typlen => '-1', typbyval => 'f', typtype => 'r',
  typcategory => 'R', typinput => 'range_in', typoutput => 'range_out',
  typreceive => 'range_recv', typsend => 'range_send',
  typanalyze => 'range_typanalyze', typalign => 'd', typstorage => 'x' },
{ oid => '3912', array_type_oid => '3913', descr => 'range of dates',
  typname => 'daterange', typlen => '-1', typbyval => 'f', typtype => 'r',
  typcategory => 'R', typinput => 'range_in', typoutput => 'range_out',
  typreceive => 'range_recv', typsend => 'range_send',
  typanalyze => 'range_typanalyze', typalign => 'i', typstorage => 'x' },
{ oid => '3926', array_type_oid => '3927', descr => 'range of bigints',
  typname => 'int8range', typlen => '-1', typbyval => 'f', typtype => 'r',
  typcategory => 'R', typinput => 'range_in', typoutput => 'range_out',
  typreceive => 'range_recv', typsend => 'range_send',
  typanalyze => 'range_typanalyze', typalign => 'd', typstorage => 'x' },

# pseudo-types
# types with typtype='p' represent various special cases in the type system.
# These cannot be used to define table columns, but are valid as function
# argument and result types (if supported by the function's implementation
# language).
# Note: cstring is a borderline case; it is still considered a pseudo-type,
# but there is now support for it in records and arrays.  Perhaps we should
# just treat it as a regular base type?

{ oid => '2249', descr => 'pseudo-type representing any composite type',
  typname => 'record', typlen => '-1', typbyval => 'f', typtype => 'p',
  typcategory => 'P', typarray => '_record', typinput => 'record_in',
  typoutput => 'record_out', typreceive => 'record_recv',
  typsend => 'record_send', typalign => 'd', typstorage => 'x' },
# Arrays of records have typcategory P, so they can't be autogenerated.
{ oid => '2287',
  typname => '_record', typlen => '-1', typbyval => 'f', typtype => 'p',
  typcategory => 'P', typelem => 'record', typinput => 'array_in',
  typoutput => 'array_out', typreceive => 'array_recv', typsend => 'array_send',
  typanalyze => 'array_typanalyze', typalign => 'd', typstorage => 'x' },
{ oid => '2275', array_type_oid => '1263', descr => 'C-style string',
  typname => 'cstring', typlen => '-2', typbyval => 'f', typtype => 'p',
  typcategory => 'P', typinput => 'cstring_in', typoutput => 'cstring_out',
  typreceive => 'cstring_recv', typsend => 'cstring_send', typalign => 'c' },
{ oid => '2276', descr => 'pseudo-type representing any type',
  typname => 'any', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'any_in', typoutput => 'any_out',
  typreceive => '-', typsend => '-', typalign => 'i' },
{ oid => '2277', descr => 'pseudo-type representing a polymorphic array type',
  typname => 'anyarray', typlen => '-1', typbyval => 'f', typtype => 'p',
  typcategory => 'P', typinput => 'anyarray_in', typoutput => 'anyarray_out',
  typreceive => 'anyarray_recv', typsend => 'anyarray_send', typalign => 'd',
  typstorage => 'x' },
{ oid => '2278',
  descr => 'pseudo-type for the result of a function with no real result',
  typname => 'void', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'void_in', typoutput => 'void_out',
  typreceive => 'void_recv', typsend => 'void_send', typalign => 'i' },
{ oid => '2279', descr => 'pseudo-type for the result of a trigger function',
  typname => 'trigger', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'trigger_in', typoutput => 'trigger_out',
  typreceive => '-', typsend => '-', typalign => 'i' },
{ oid => '3838', oid_symbol => 'EVTTRIGGEROID',
  descr => 'pseudo-type for the result of an event trigger function',
  typname => 'event_trigger', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'event_trigger_in',
  typoutput => 'event_trigger_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '2280',
  descr => 'pseudo-type for the result of a language handler function',
  typname => 'language_handler', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'language_handler_in',
  typoutput => 'language_handler_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '2281',
  descr => 'pseudo-type representing an internal data structure',
  typname => 'internal', typlen => 'SIZEOF_POINTER', typbyval => 't',
  typtype => 'p', typcategory => 'P', typinput => 'internal_in',
  typoutput => 'internal_out', typreceive => '-', typsend => '-',
  typalign => 'ALIGNOF_POINTER' },
{ oid => '2283', descr => 'pseudo-type representing a polymorphic base type',
  typname => 'anyelement', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'anyelement_in',
  typoutput => 'anyelement_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '2776',
  descr => 'pseudo-type representing a polymorphic base type that is not an array',
  typname => 'anynonarray', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'anynonarray_in',
  typoutput => 'anynonarray_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '3500',
  descr => 'pseudo-type representing a polymorphic base type that is an enum',
  typname => 'anyenum', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'anyenum_in', typoutput => 'anyenum_out',
  typreceive => '-', typsend => '-', typalign => 'i' },
{ oid => '3115',
  descr => 'pseudo-type for the result of an FDW handler function',
  typname => 'fdw_handler', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'fdw_handler_in',
  typoutput => 'fdw_handler_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '325',
  descr => 'pseudo-type for the result of an index AM handler function',
  typname => 'index_am_handler', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'index_am_handler_in',
  typoutput => 'index_am_handler_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '3310',
  descr => 'pseudo-type for the result of a tablesample method function',
  typname => 'tsm_handler', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'tsm_handler_in',
  typoutput => 'tsm_handler_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '269',
  typname => 'table_am_handler', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'table_am_handler_in',
  typoutput => 'table_am_handler_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '3831',
  descr => 'pseudo-type representing a range over a polymorphic base type',
  typname => 'anyrange', typlen => '-1', typbyval => 'f', typtype => 'p',
  typcategory => 'P', typinput => 'anyrange_in', typoutput => 'anyrange_out',
  typreceive => '-', typsend => '-', typalign => 'd', typstorage => 'x' },
{ oid => '5077',
  descr => 'pseudo-type representing a polymorphic common type',
  typname => 'anycompatible', typlen => '4', typbyval => 't', typtype => 'p',
  typcategory => 'P', typinput => 'anycompatible_in',
  typoutput => 'anycompatible_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '5078',
  descr => 'pseudo-type representing an array of polymorphic common type elements',
  typname => 'anycompatiblearray', typlen => '-1', typbyval => 'f',
  typtype => 'p', typcategory => 'P', typinput => 'anycompatiblearray_in',
  typoutput => 'anycompatiblearray_out',
  typreceive => 'anycompatiblearray_recv', typsend => 'anycompatiblearray_send',
  typalign => 'd', typstorage => 'x' },
{ oid => '5079',
  descr => 'pseudo-type representing a polymorphic common type that is not an array',
  typname => 'anycompatiblenonarray', typlen => '4', typbyval => 't',
  typtype => 'p', typcategory => 'P', typinput => 'anycompatiblenonarray_in',
  typoutput => 'anycompatiblenonarray_out', typreceive => '-', typsend => '-',
  typalign => 'i' },
{ oid => '5080',
  descr => 'pseudo-type representing a range over a polymorphic common type',
  typname => 'anycompatiblerange', typlen => '-1', typbyval => 'f',
  typtype => 'p', typcategory => 'P', typinput => 'anycompatiblerange_in',
  typoutput => 'anycompatiblerange_out', typreceive => '-', typsend => '-',
  typalign => 'd', typstorage => 'x' },

]