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
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
// Autogenerated file - DO NOT EDIT

/// BOOL - boolean, 'true'/'false'
pub const BOOL: Type = Type {
    oid: 16,
    descr: "BOOL - boolean, 'true'/'false'",
    name: "bool",
    kind: Kind::Boolean,
};

/// BYTEA - variable-length string, binary values escaped
pub const BYTEA: Type = Type {
    oid: 17,
    descr: "BYTEA - variable-length string, binary values escaped",
    name: "bytea",
    kind: Kind::UserDefined,
};

/// CHAR - single character
pub const CHAR: Type = Type {
    oid: 18,
    descr: "CHAR - single character",
    name: "char",
    kind: Kind::String,
};

/// NAME - 63-byte type for storing system identifiers
pub const NAME: Type = Type {
    oid: 19,
    descr: "NAME - 63-byte type for storing system identifiers",
    name: "name",
    kind: Kind::String,
};

/// INT8 - ~18 digit integer, 8-byte storage
pub const INT8: Type = Type {
    oid: 20,
    descr: "INT8 - ~18 digit integer, 8-byte storage",
    name: "int8",
    kind: Kind::Numeric,
};

/// INT2 - -32 thousand to 32 thousand, 2-byte storage
pub const INT2: Type = Type {
    oid: 21,
    descr: "INT2 - -32 thousand to 32 thousand, 2-byte storage",
    name: "int2",
    kind: Kind::Numeric,
};

/// INT2VECTOR - array of int2, used in system tables
pub const INT2_VECTOR: Type = Type {
    oid: 22,
    descr: "INT2VECTOR - array of int2, used in system tables",
    name: "int2vector",
    kind: Kind::Array(21),
};

/// INT4 - -2 billion to 2 billion integer, 4-byte storage
pub const INT4: Type = Type {
    oid: 23,
    descr: "INT4 - -2 billion to 2 billion integer, 4-byte storage",
    name: "int4",
    kind: Kind::Numeric,
};

/// REGPROC - registered procedure
pub const REGPROC: Type = Type {
    oid: 24,
    descr: "REGPROC - registered procedure",
    name: "regproc",
    kind: Kind::Numeric,
};

/// TEXT - variable-length string, no limit specified
pub const TEXT: Type = Type {
    oid: 25,
    descr: "TEXT - variable-length string, no limit specified",
    name: "text",
    kind: Kind::String,
};

/// OID - object identifier(oid), maximum 4 billion
pub const OID: Type = Type {
    oid: 26,
    descr: "OID - object identifier(oid), maximum 4 billion",
    name: "oid",
    kind: Kind::Numeric,
};

/// TID - (block, offset), physical location of tuple
pub const TID: Type = Type {
    oid: 27,
    descr: "TID - (block, offset), physical location of tuple",
    name: "tid",
    kind: Kind::UserDefined,
};

/// XID - transaction id
pub const XID: Type = Type {
    oid: 28,
    descr: "XID - transaction id",
    name: "xid",
    kind: Kind::UserDefined,
};

/// CID - command identifier type, sequence in transaction id
pub const CID: Type = Type {
    oid: 29,
    descr: "CID - command identifier type, sequence in transaction id",
    name: "cid",
    kind: Kind::UserDefined,
};

/// OIDVECTOR - array of oids, used in system tables
pub const OID_VECTOR: Type = Type {
    oid: 30,
    descr: "OIDVECTOR - array of oids, used in system tables",
    name: "oidvector",
    kind: Kind::Array(26),
};

/// PG_DDL_COMMAND - internal type for passing CollectedCommand
pub const PG_DDL_COMMAND: Type = Type {
    oid: 32,
    descr: "PG_DDL_COMMAND - internal type for passing CollectedCommand",
    name: "pg_ddl_command",
    kind: Kind::Pseudo,
};

/// JSON - JSON stored as text
pub const JSON: Type = Type {
    oid: 114,
    descr: "JSON - JSON stored as text",
    name: "json",
    kind: Kind::UserDefined,
};

/// XML - XML content
pub const XML: Type = Type {
    oid: 142,
    descr: "XML - XML content",
    name: "xml",
    kind: Kind::UserDefined,
};

/// XML[]
pub const XML_ARRAY: Type = Type {
    oid: 143,
    descr: "XML[]",
    name: "_xml",
    kind: Kind::Array(142),
};

/// PG_NODE_TREE - string representing an internal node tree
pub const PG_NODE_TREE: Type = Type {
    oid: 194,
    descr: "PG_NODE_TREE - string representing an internal node tree",
    name: "pg_node_tree",
    kind: Kind::String,
};

/// JSON[]
pub const JSON_ARRAY: Type = Type {
    oid: 199,
    descr: "JSON[]",
    name: "_json",
    kind: Kind::Array(114),
};

/// TABLE_AM_HANDLER
pub const TABLE_AM_HANDLER: Type = Type {
    oid: 269,
    descr: "TABLE_AM_HANDLER",
    name: "table_am_handler",
    kind: Kind::Pseudo,
};

/// XID8[]
pub const XID8_ARRAY: Type = Type {
    oid: 271,
    descr: "XID8[]",
    name: "_xid8",
    kind: Kind::Array(5069),
};

/// INDEX_AM_HANDLER - pseudo-type for the result of an index AM handler function
pub const INDEX_AM_HANDLER: Type = Type {
    oid: 325,
    descr: "INDEX_AM_HANDLER - pseudo-type for the result of an index AM handler function",
    name: "index_am_handler",
    kind: Kind::Pseudo,
};

/// POINT - geometric point '(x, y)'
pub const POINT: Type = Type {
    oid: 600,
    descr: "POINT - geometric point '(x, y)'",
    name: "point",
    kind: Kind::Geometric,
};

/// LSEG - geometric line segment '(pt1,pt2)'
pub const LSEG: Type = Type {
    oid: 601,
    descr: "LSEG - geometric line segment '(pt1,pt2)'",
    name: "lseg",
    kind: Kind::Geometric,
};

/// PATH - geometric path '(pt1,...)'
pub const PATH: Type = Type {
    oid: 602,
    descr: "PATH - geometric path '(pt1,...)'",
    name: "path",
    kind: Kind::Geometric,
};

/// BOX - geometric box '(lower left,upper right)'
pub const BOX: Type = Type {
    oid: 603,
    descr: "BOX - geometric box '(lower left,upper right)'",
    name: "box",
    kind: Kind::Geometric,
};

/// POLYGON - geometric polygon '(pt1,...)'
pub const POLYGON: Type = Type {
    oid: 604,
    descr: "POLYGON - geometric polygon '(pt1,...)'",
    name: "polygon",
    kind: Kind::Geometric,
};

/// LINE - geometric line
pub const LINE: Type = Type {
    oid: 628,
    descr: "LINE - geometric line",
    name: "line",
    kind: Kind::Geometric,
};

/// LINE[]
pub const LINE_ARRAY: Type = Type {
    oid: 629,
    descr: "LINE[]",
    name: "_line",
    kind: Kind::Array(628),
};

/// CIDR - network IP address/netmask, network address
pub const CIDR: Type = Type {
    oid: 650,
    descr: "CIDR - network IP address/netmask, network address",
    name: "cidr",
    kind: Kind::Network,
};

/// CIDR[]
pub const CIDR_ARRAY: Type = Type {
    oid: 651,
    descr: "CIDR[]",
    name: "_cidr",
    kind: Kind::Array(650),
};

/// FLOAT4 - single-precision floating point number, 4-byte storage
pub const FLOAT4: Type = Type {
    oid: 700,
    descr: "FLOAT4 - single-precision floating point number, 4-byte storage",
    name: "float4",
    kind: Kind::Numeric,
};

/// FLOAT8 - double-precision floating point number, 8-byte storage
pub const FLOAT8: Type = Type {
    oid: 701,
    descr: "FLOAT8 - double-precision floating point number, 8-byte storage",
    name: "float8",
    kind: Kind::Numeric,
};

/// UNKNOWN - pseudo-type representing an undetermined type
pub const UNKNOWN: Type = Type {
    oid: 705,
    descr: "UNKNOWN - pseudo-type representing an undetermined type",
    name: "unknown",
    kind: Kind::Unknow,
};

/// CIRCLE - geometric circle '(center,radius)'
pub const CIRCLE: Type = Type {
    oid: 718,
    descr: "CIRCLE - geometric circle '(center,radius)'",
    name: "circle",
    kind: Kind::Geometric,
};

/// CIRCLE[]
pub const CIRCLE_ARRAY: Type = Type {
    oid: 719,
    descr: "CIRCLE[]",
    name: "_circle",
    kind: Kind::Array(718),
};

/// MACADDR8 - XX:XX:XX:XX:XX:XX:XX:XX, MAC address
pub const MACADDR8: Type = Type {
    oid: 774,
    descr: "MACADDR8 - XX:XX:XX:XX:XX:XX:XX:XX, MAC address",
    name: "macaddr8",
    kind: Kind::UserDefined,
};

/// MACADDR8[]
pub const MACADDR8_ARRAY: Type = Type {
    oid: 775,
    descr: "MACADDR8[]",
    name: "_macaddr8",
    kind: Kind::Array(774),
};

/// MONEY - monetary amounts, $d,ddd.cc
pub const MONEY: Type = Type {
    oid: 790,
    descr: "MONEY - monetary amounts, $d,ddd.cc",
    name: "money",
    kind: Kind::Numeric,
};

/// MONEY[]
pub const MONEY_ARRAY: Type = Type {
    oid: 791,
    descr: "MONEY[]",
    name: "_money",
    kind: Kind::Array(790),
};

/// MACADDR - XX:XX:XX:XX:XX:XX, MAC address
pub const MACADDR: Type = Type {
    oid: 829,
    descr: "MACADDR - XX:XX:XX:XX:XX:XX, MAC address",
    name: "macaddr",
    kind: Kind::UserDefined,
};

/// INET - IP address/netmask, host address, netmask optional
pub const INET: Type = Type {
    oid: 869,
    descr: "INET - IP address/netmask, host address, netmask optional",
    name: "inet",
    kind: Kind::Network,
};

/// BOOL[]
pub const BOOL_ARRAY: Type = Type {
    oid: 1000,
    descr: "BOOL[]",
    name: "_bool",
    kind: Kind::Array(16),
};

/// BYTEA[]
pub const BYTEA_ARRAY: Type = Type {
    oid: 1001,
    descr: "BYTEA[]",
    name: "_bytea",
    kind: Kind::Array(17),
};

/// CHAR[]
pub const CHAR_ARRAY: Type = Type {
    oid: 1002,
    descr: "CHAR[]",
    name: "_char",
    kind: Kind::Array(18),
};

/// NAME[]
pub const NAME_ARRAY: Type = Type {
    oid: 1003,
    descr: "NAME[]",
    name: "_name",
    kind: Kind::Array(19),
};

/// INT2[]
pub const INT2_ARRAY: Type = Type {
    oid: 1005,
    descr: "INT2[]",
    name: "_int2",
    kind: Kind::Array(21),
};

/// INT2VECTOR[]
pub const INT2_VECTOR_ARRAY: Type = Type {
    oid: 1006,
    descr: "INT2VECTOR[]",
    name: "_int2vector",
    kind: Kind::Array(22),
};

/// INT4[]
pub const INT4_ARRAY: Type = Type {
    oid: 1007,
    descr: "INT4[]",
    name: "_int4",
    kind: Kind::Array(23),
};

/// REGPROC[]
pub const REGPROC_ARRAY: Type = Type {
    oid: 1008,
    descr: "REGPROC[]",
    name: "_regproc",
    kind: Kind::Array(24),
};

/// TEXT[]
pub const TEXT_ARRAY: Type = Type {
    oid: 1009,
    descr: "TEXT[]",
    name: "_text",
    kind: Kind::Array(25),
};

/// TID[]
pub const TID_ARRAY: Type = Type {
    oid: 1010,
    descr: "TID[]",
    name: "_tid",
    kind: Kind::Array(27),
};

/// XID[]
pub const XID_ARRAY: Type = Type {
    oid: 1011,
    descr: "XID[]",
    name: "_xid",
    kind: Kind::Array(28),
};

/// CID[]
pub const CID_ARRAY: Type = Type {
    oid: 1012,
    descr: "CID[]",
    name: "_cid",
    kind: Kind::Array(29),
};

/// OIDVECTOR[]
pub const OID_VECTOR_ARRAY: Type = Type {
    oid: 1013,
    descr: "OIDVECTOR[]",
    name: "_oidvector",
    kind: Kind::Array(30),
};

/// BPCHAR[]
pub const BPCHAR_ARRAY: Type = Type {
    oid: 1014,
    descr: "BPCHAR[]",
    name: "_bpchar",
    kind: Kind::Array(1042),
};

/// VARCHAR[]
pub const VARCHAR_ARRAY: Type = Type {
    oid: 1015,
    descr: "VARCHAR[]",
    name: "_varchar",
    kind: Kind::Array(1043),
};

/// INT8[]
pub const INT8_ARRAY: Type = Type {
    oid: 1016,
    descr: "INT8[]",
    name: "_int8",
    kind: Kind::Array(20),
};

/// POINT[]
pub const POINT_ARRAY: Type = Type {
    oid: 1017,
    descr: "POINT[]",
    name: "_point",
    kind: Kind::Array(600),
};

/// LSEG[]
pub const LSEG_ARRAY: Type = Type {
    oid: 1018,
    descr: "LSEG[]",
    name: "_lseg",
    kind: Kind::Array(601),
};

/// PATH[]
pub const PATH_ARRAY: Type = Type {
    oid: 1019,
    descr: "PATH[]",
    name: "_path",
    kind: Kind::Array(602),
};

/// BOX[]
pub const BOX_ARRAY: Type = Type {
    oid: 1020,
    descr: "BOX[]",
    name: "_box",
    kind: Kind::Array(603),
};

/// FLOAT4[]
pub const FLOAT4_ARRAY: Type = Type {
    oid: 1021,
    descr: "FLOAT4[]",
    name: "_float4",
    kind: Kind::Array(700),
};

/// FLOAT8[]
pub const FLOAT8_ARRAY: Type = Type {
    oid: 1022,
    descr: "FLOAT8[]",
    name: "_float8",
    kind: Kind::Array(701),
};

/// POLYGON[]
pub const POLYGON_ARRAY: Type = Type {
    oid: 1027,
    descr: "POLYGON[]",
    name: "_polygon",
    kind: Kind::Array(604),
};

/// OID[]
pub const OID_ARRAY: Type = Type {
    oid: 1028,
    descr: "OID[]",
    name: "_oid",
    kind: Kind::Array(26),
};

/// ACLITEM - access control list
pub const ACLITEM: Type = Type {
    oid: 1033,
    descr: "ACLITEM - access control list",
    name: "aclitem",
    kind: Kind::UserDefined,
};

/// ACLITEM[]
pub const ACLITEM_ARRAY: Type = Type {
    oid: 1034,
    descr: "ACLITEM[]",
    name: "_aclitem",
    kind: Kind::Array(1033),
};

/// MACADDR[]
pub const MACADDR_ARRAY: Type = Type {
    oid: 1040,
    descr: "MACADDR[]",
    name: "_macaddr",
    kind: Kind::Array(829),
};

/// INET[]
pub const INET_ARRAY: Type = Type {
    oid: 1041,
    descr: "INET[]",
    name: "_inet",
    kind: Kind::Array(869),
};

/// BPCHAR - char(length), blank-padded string, fixed storage length
pub const BPCHAR: Type = Type {
    oid: 1042,
    descr: "BPCHAR - char(length), blank-padded string, fixed storage length",
    name: "bpchar",
    kind: Kind::String,
};

/// VARCHAR - varchar(length), non-blank-padded string, variable storage length
pub const VARCHAR: Type = Type {
    oid: 1043,
    descr: "VARCHAR - varchar(length), non-blank-padded string, variable storage length",
    name: "varchar",
    kind: Kind::String,
};

/// DATE - date
pub const DATE: Type = Type {
    oid: 1082,
    descr: "DATE - date",
    name: "date",
    kind: Kind::DateTime,
};

/// TIME - time of day
pub const TIME: Type = Type {
    oid: 1083,
    descr: "TIME - time of day",
    name: "time",
    kind: Kind::DateTime,
};

/// TIMESTAMP - date and time
pub const TIMESTAMP: Type = Type {
    oid: 1114,
    descr: "TIMESTAMP - date and time",
    name: "timestamp",
    kind: Kind::DateTime,
};

/// TIMESTAMP[]
pub const TIMESTAMP_ARRAY: Type = Type {
    oid: 1115,
    descr: "TIMESTAMP[]",
    name: "_timestamp",
    kind: Kind::Array(1114),
};

/// DATE[]
pub const DATE_ARRAY: Type = Type {
    oid: 1182,
    descr: "DATE[]",
    name: "_date",
    kind: Kind::Array(1082),
};

/// TIME[]
pub const TIME_ARRAY: Type = Type {
    oid: 1183,
    descr: "TIME[]",
    name: "_time",
    kind: Kind::Array(1083),
};

/// TIMESTAMPTZ - date and time with time zone
pub const TIMESTAMPTZ: Type = Type {
    oid: 1184,
    descr: "TIMESTAMPTZ - date and time with time zone",
    name: "timestamptz",
    kind: Kind::DateTime,
};

/// TIMESTAMPTZ[]
pub const TIMESTAMPTZ_ARRAY: Type = Type {
    oid: 1185,
    descr: "TIMESTAMPTZ[]",
    name: "_timestamptz",
    kind: Kind::Array(1184),
};

/// INTERVAL - @ <number> <units>, time interval
pub const INTERVAL: Type = Type {
    oid: 1186,
    descr: "INTERVAL - @ <number> <units>, time interval",
    name: "interval",
    kind: Kind::Timestamp,
};

/// INTERVAL[]
pub const INTERVAL_ARRAY: Type = Type {
    oid: 1187,
    descr: "INTERVAL[]",
    name: "_interval",
    kind: Kind::Array(1186),
};

/// NUMERIC[]
pub const NUMERIC_ARRAY: Type = Type {
    oid: 1231,
    descr: "NUMERIC[]",
    name: "_numeric",
    kind: Kind::Array(1700),
};

/// CSTRING[]
pub const CSTRING_ARRAY: Type = Type {
    oid: 1263,
    descr: "CSTRING[]",
    name: "_cstring",
    kind: Kind::Array(2275),
};

/// TIMETZ - time of day with time zone
pub const TIMETZ: Type = Type {
    oid: 1266,
    descr: "TIMETZ - time of day with time zone",
    name: "timetz",
    kind: Kind::DateTime,
};

/// TIMETZ[]
pub const TIMETZ_ARRAY: Type = Type {
    oid: 1270,
    descr: "TIMETZ[]",
    name: "_timetz",
    kind: Kind::Array(1266),
};

/// BIT - fixed-length bit string
pub const BIT: Type = Type {
    oid: 1560,
    descr: "BIT - fixed-length bit string",
    name: "bit",
    kind: Kind::BitString,
};

/// BIT[]
pub const BIT_ARRAY: Type = Type {
    oid: 1561,
    descr: "BIT[]",
    name: "_bit",
    kind: Kind::Array(1560),
};

/// VARBIT - variable-length bit string
pub const VARBIT: Type = Type {
    oid: 1562,
    descr: "VARBIT - variable-length bit string",
    name: "varbit",
    kind: Kind::BitString,
};

/// VARBIT[]
pub const VARBIT_ARRAY: Type = Type {
    oid: 1563,
    descr: "VARBIT[]",
    name: "_varbit",
    kind: Kind::Array(1562),
};

/// NUMERIC - numeric(precision, decimal), arbitrary precision number
pub const NUMERIC: Type = Type {
    oid: 1700,
    descr: "NUMERIC - numeric(precision, decimal), arbitrary precision number",
    name: "numeric",
    kind: Kind::Numeric,
};

/// REFCURSOR - reference to cursor (portal name)
pub const REFCURSOR: Type = Type {
    oid: 1790,
    descr: "REFCURSOR - reference to cursor (portal name)",
    name: "refcursor",
    kind: Kind::UserDefined,
};

/// REFCURSOR[]
pub const REFCURSOR_ARRAY: Type = Type {
    oid: 2201,
    descr: "REFCURSOR[]",
    name: "_refcursor",
    kind: Kind::Array(1790),
};

/// REGPROCEDURE - registered procedure (with args)
pub const REGPROCEDURE: Type = Type {
    oid: 2202,
    descr: "REGPROCEDURE - registered procedure (with args)",
    name: "regprocedure",
    kind: Kind::Numeric,
};

/// REGOPER - registered operator
pub const REGOPER: Type = Type {
    oid: 2203,
    descr: "REGOPER - registered operator",
    name: "regoper",
    kind: Kind::Numeric,
};

/// REGOPERATOR - registered operator (with args)
pub const REGOPERATOR: Type = Type {
    oid: 2204,
    descr: "REGOPERATOR - registered operator (with args)",
    name: "regoperator",
    kind: Kind::Numeric,
};

/// REGCLASS - registered class
pub const REGCLASS: Type = Type {
    oid: 2205,
    descr: "REGCLASS - registered class",
    name: "regclass",
    kind: Kind::Numeric,
};

/// REGTYPE - registered type
pub const REGTYPE: Type = Type {
    oid: 2206,
    descr: "REGTYPE - registered type",
    name: "regtype",
    kind: Kind::Numeric,
};

/// REGPROCEDURE[]
pub const REGPROCEDURE_ARRAY: Type = Type {
    oid: 2207,
    descr: "REGPROCEDURE[]",
    name: "_regprocedure",
    kind: Kind::Array(2202),
};

/// REGOPER[]
pub const REGOPER_ARRAY: Type = Type {
    oid: 2208,
    descr: "REGOPER[]",
    name: "_regoper",
    kind: Kind::Array(2203),
};

/// REGOPERATOR[]
pub const REGOPERATOR_ARRAY: Type = Type {
    oid: 2209,
    descr: "REGOPERATOR[]",
    name: "_regoperator",
    kind: Kind::Array(2204),
};

/// REGCLASS[]
pub const REGCLASS_ARRAY: Type = Type {
    oid: 2210,
    descr: "REGCLASS[]",
    name: "_regclass",
    kind: Kind::Array(2205),
};

/// REGTYPE[]
pub const REGTYPE_ARRAY: Type = Type {
    oid: 2211,
    descr: "REGTYPE[]",
    name: "_regtype",
    kind: Kind::Array(2206),
};

/// RECORD - pseudo-type representing any composite type
pub const RECORD: Type = Type {
    oid: 2249,
    descr: "RECORD - pseudo-type representing any composite type",
    name: "record",
    kind: Kind::Pseudo,
};

/// CSTRING - C-style string
pub const CSTRING: Type = Type {
    oid: 2275,
    descr: "CSTRING - C-style string",
    name: "cstring",
    kind: Kind::Pseudo,
};

/// ANY - pseudo-type representing any type
pub const ANY: Type = Type {
    oid: 2276,
    descr: "ANY - pseudo-type representing any type",
    name: "any",
    kind: Kind::Pseudo,
};

/// ANYARRAY - pseudo-type representing a polymorphic array type
pub const ANYARRAY: Type = Type {
    oid: 2277,
    descr: "ANYARRAY - pseudo-type representing a polymorphic array type",
    name: "anyarray",
    kind: Kind::Pseudo,
};

/// VOID - pseudo-type for the result of a function with no real result
pub const VOID: Type = Type {
    oid: 2278,
    descr: "VOID - pseudo-type for the result of a function with no real result",
    name: "void",
    kind: Kind::Pseudo,
};

/// TRIGGER - pseudo-type for the result of a trigger function
pub const TRIGGER: Type = Type {
    oid: 2279,
    descr: "TRIGGER - pseudo-type for the result of a trigger function",
    name: "trigger",
    kind: Kind::Pseudo,
};

/// LANGUAGE_HANDLER - pseudo-type for the result of a language handler function
pub const LANGUAGE_HANDLER: Type = Type {
    oid: 2280,
    descr: "LANGUAGE_HANDLER - pseudo-type for the result of a language handler function",
    name: "language_handler",
    kind: Kind::Pseudo,
};

/// INTERNAL - pseudo-type representing an internal data structure
pub const INTERNAL: Type = Type {
    oid: 2281,
    descr: "INTERNAL - pseudo-type representing an internal data structure",
    name: "internal",
    kind: Kind::Pseudo,
};

/// OPAQUE - obsolete, deprecated pseudo-type
#[deprecated = "Remove in postgresql 13"]
pub const OPAQUE: Type = Type {
    oid: 2282,
    descr: "OPAQUE - obsolete, deprecated pseudo-type",
    name: "opaque",
    kind: Kind::Pseudo,
};

/// ANYELEMENT - pseudo-type representing a polymorphic base type
pub const ANYELEMENT: Type = Type {
    oid: 2283,
    descr: "ANYELEMENT - pseudo-type representing a polymorphic base type",
    name: "anyelement",
    kind: Kind::Pseudo,
};

/// RECORD[]
pub const RECORD_ARRAY: Type = Type {
    oid: 2287,
    descr: "RECORD[]",
    name: "_record",
    kind: Kind::Pseudo,
};

/// ANYNONARRAY - pseudo-type representing a polymorphic base type that is not an array
pub const ANYNONARRAY: Type = Type {
    oid: 2776,
    descr: "ANYNONARRAY - pseudo-type representing a polymorphic base type that is not an array",
    name: "anynonarray",
    kind: Kind::Pseudo,
};

/// TXID_SNAPSHOT[]
pub const TXID_SNAPSHOT_ARRAY: Type = Type {
    oid: 2949,
    descr: "TXID_SNAPSHOT[]",
    name: "_txid_snapshot",
    kind: Kind::Array(2970),
};

/// UUID - UUID datatype
pub const UUID: Type = Type {
    oid: 2950,
    descr: "UUID - UUID datatype",
    name: "uuid",
    kind: Kind::UserDefined,
};

/// UUID[]
pub const UUID_ARRAY: Type = Type {
    oid: 2951,
    descr: "UUID[]",
    name: "_uuid",
    kind: Kind::Array(2950),
};

/// TXID_SNAPSHOT - txid snapshot
pub const TXID_SNAPSHOT: Type = Type {
    oid: 2970,
    descr: "TXID_SNAPSHOT - txid snapshot",
    name: "txid_snapshot",
    kind: Kind::UserDefined,
};

/// FDW_HANDLER - pseudo-type for the result of an FDW handler function
pub const FDW_HANDLER: Type = Type {
    oid: 3115,
    descr: "FDW_HANDLER - pseudo-type for the result of an FDW handler function",
    name: "fdw_handler",
    kind: Kind::Pseudo,
};

/// PG_LSN - PostgreSQL LSN datatype
pub const PG_LSN: Type = Type {
    oid: 3220,
    descr: "PG_LSN - PostgreSQL LSN datatype",
    name: "pg_lsn",
    kind: Kind::UserDefined,
};

/// PG_LSN[]
pub const PG_LSN_ARRAY: Type = Type {
    oid: 3221,
    descr: "PG_LSN[]",
    name: "_pg_lsn",
    kind: Kind::Array(3220),
};

/// TSM_HANDLER - pseudo-type for the result of a tablesample method function
pub const TSM_HANDLER: Type = Type {
    oid: 3310,
    descr: "TSM_HANDLER - pseudo-type for the result of a tablesample method function",
    name: "tsm_handler",
    kind: Kind::Pseudo,
};

/// PG_NDISTINCT - multivariate ndistinct coefficients
pub const PG_NDISTINCT: Type = Type {
    oid: 3361,
    descr: "PG_NDISTINCT - multivariate ndistinct coefficients",
    name: "pg_ndistinct",
    kind: Kind::String,
};

/// PG_DEPENDENCIES - multivariate dependencies
pub const PG_DEPENDENCIES: Type = Type {
    oid: 3402,
    descr: "PG_DEPENDENCIES - multivariate dependencies",
    name: "pg_dependencies",
    kind: Kind::String,
};

/// ANYENUM - pseudo-type representing a polymorphic base type that is an enum
pub const ANYENUM: Type = Type {
    oid: 3500,
    descr: "ANYENUM - pseudo-type representing a polymorphic base type that is an enum",
    name: "anyenum",
    kind: Kind::Pseudo,
};

/// TSVECTOR - text representation for text search
pub const TS_VECTOR: Type = Type {
    oid: 3614,
    descr: "TSVECTOR - text representation for text search",
    name: "tsvector",
    kind: Kind::UserDefined,
};

/// TSQUERY - query representation for text search
pub const TSQUERY: Type = Type {
    oid: 3615,
    descr: "TSQUERY - query representation for text search",
    name: "tsquery",
    kind: Kind::UserDefined,
};

/// GTSVECTOR - GiST index internal text representation for text search
pub const GTS_VECTOR: Type = Type {
    oid: 3642,
    descr: "GTSVECTOR - GiST index internal text representation for text search",
    name: "gtsvector",
    kind: Kind::UserDefined,
};

/// TSVECTOR[]
pub const TS_VECTOR_ARRAY: Type = Type {
    oid: 3643,
    descr: "TSVECTOR[]",
    name: "_tsvector",
    kind: Kind::Array(3614),
};

/// GTSVECTOR[]
pub const GTS_VECTOR_ARRAY: Type = Type {
    oid: 3644,
    descr: "GTSVECTOR[]",
    name: "_gtsvector",
    kind: Kind::Array(3642),
};

/// TSQUERY[]
pub const TSQUERY_ARRAY: Type = Type {
    oid: 3645,
    descr: "TSQUERY[]",
    name: "_tsquery",
    kind: Kind::Array(3615),
};

/// REGCONFIG - registered text search configuration
pub const REGCONFIG: Type = Type {
    oid: 3734,
    descr: "REGCONFIG - registered text search configuration",
    name: "regconfig",
    kind: Kind::Numeric,
};

/// REGCONFIG[]
pub const REGCONFIG_ARRAY: Type = Type {
    oid: 3735,
    descr: "REGCONFIG[]",
    name: "_regconfig",
    kind: Kind::Array(3734),
};

/// REGDICTIONARY - registered text search dictionary
pub const REGDICTIONARY: Type = Type {
    oid: 3769,
    descr: "REGDICTIONARY - registered text search dictionary",
    name: "regdictionary",
    kind: Kind::Numeric,
};

/// REGDICTIONARY[]
pub const REGDICTIONARY_ARRAY: Type = Type {
    oid: 3770,
    descr: "REGDICTIONARY[]",
    name: "_regdictionary",
    kind: Kind::Array(3769),
};

/// JSONB - Binary JSON
pub const JSONB: Type = Type {
    oid: 3802,
    descr: "JSONB - Binary JSON",
    name: "jsonb",
    kind: Kind::UserDefined,
};

/// JSONB[]
pub const JSONB_ARRAY: Type = Type {
    oid: 3807,
    descr: "JSONB[]",
    name: "_jsonb",
    kind: Kind::Array(3802),
};

/// ANYRANGE - pseudo-type representing a range over a polymorphic base type
pub const ANY_RANGE: Type = Type {
    oid: 3831,
    descr: "ANYRANGE - pseudo-type representing a range over a polymorphic base type",
    name: "anyrange",
    kind: Kind::Pseudo,
};

/// EVENT_TRIGGER - pseudo-type for the result of an event trigger function
pub const EVENT_TRIGGER: Type = Type {
    oid: 3838,
    descr: "EVENT_TRIGGER - pseudo-type for the result of an event trigger function",
    name: "event_trigger",
    kind: Kind::Pseudo,
};

/// INT4RANGE - range of integers
pub const INT4_RANGE: Type = Type {
    oid: 3904,
    descr: "INT4RANGE - range of integers",
    name: "int4range",
    kind: Kind::Range(23),
};

/// INT4RANGE[]
pub const INT4_RANGE_ARRAY: Type = Type {
    oid: 3905,
    descr: "INT4RANGE[]",
    name: "_int4range",
    kind: Kind::Array(3904),
};

/// NUMRANGE - range of numerics
pub const NUM_RANGE: Type = Type {
    oid: 3906,
    descr: "NUMRANGE - range of numerics",
    name: "numrange",
    kind: Kind::Range(1700),
};

/// NUMRANGE[]
pub const NUM_RANGE_ARRAY: Type = Type {
    oid: 3907,
    descr: "NUMRANGE[]",
    name: "_numrange",
    kind: Kind::Array(3906),
};

/// TSRANGE - range of timestamps without time zone
pub const TS_RANGE: Type = Type {
    oid: 3908,
    descr: "TSRANGE - range of timestamps without time zone",
    name: "tsrange",
    kind: Kind::Range(1114),
};

/// TSRANGE[]
pub const TS_RANGE_ARRAY: Type = Type {
    oid: 3909,
    descr: "TSRANGE[]",
    name: "_tsrange",
    kind: Kind::Array(3908),
};

/// TSTZRANGE - range of timestamps with time zone
pub const TSTZ_RANGE: Type = Type {
    oid: 3910,
    descr: "TSTZRANGE - range of timestamps with time zone",
    name: "tstzrange",
    kind: Kind::Range(1184),
};

/// TSTZRANGE[]
pub const TSTZ_RANGE_ARRAY: Type = Type {
    oid: 3911,
    descr: "TSTZRANGE[]",
    name: "_tstzrange",
    kind: Kind::Array(3910),
};

/// DATERANGE - range of dates
pub const DATE_RANGE: Type = Type {
    oid: 3912,
    descr: "DATERANGE - range of dates",
    name: "daterange",
    kind: Kind::Range(1082),
};

/// DATERANGE[]
pub const DATE_RANGE_ARRAY: Type = Type {
    oid: 3913,
    descr: "DATERANGE[]",
    name: "_daterange",
    kind: Kind::Array(3912),
};

/// INT8RANGE - range of bigints
pub const INT8_RANGE: Type = Type {
    oid: 3926,
    descr: "INT8RANGE - range of bigints",
    name: "int8range",
    kind: Kind::Range(20),
};

/// INT8RANGE[]
pub const INT8_RANGE_ARRAY: Type = Type {
    oid: 3927,
    descr: "INT8RANGE[]",
    name: "_int8range",
    kind: Kind::Array(3926),
};

/// JSONPATH - JSON path
pub const JSONPATH: Type = Type {
    oid: 4072,
    descr: "JSONPATH - JSON path",
    name: "jsonpath",
    kind: Kind::UserDefined,
};

/// JSONPATH[]
pub const JSONPATH_ARRAY: Type = Type {
    oid: 4073,
    descr: "JSONPATH[]",
    name: "_jsonpath",
    kind: Kind::Array(4072),
};

/// REGNAMESPACE - registered namespace
pub const REGNAMESPACE: Type = Type {
    oid: 4089,
    descr: "REGNAMESPACE - registered namespace",
    name: "regnamespace",
    kind: Kind::Numeric,
};

/// REGNAMESPACE[]
pub const REGNAMESPACE_ARRAY: Type = Type {
    oid: 4090,
    descr: "REGNAMESPACE[]",
    name: "_regnamespace",
    kind: Kind::Array(4089),
};

/// REGROLE - registered role
pub const REGROLE: Type = Type {
    oid: 4096,
    descr: "REGROLE - registered role",
    name: "regrole",
    kind: Kind::Numeric,
};

/// REGROLE[]
pub const REGROLE_ARRAY: Type = Type {
    oid: 4097,
    descr: "REGROLE[]",
    name: "_regrole",
    kind: Kind::Array(4096),
};

/// REGCOLLATION - registered collation
pub const REGCOLLATION: Type = Type {
    oid: 4191,
    descr: "REGCOLLATION - registered collation",
    name: "regcollation",
    kind: Kind::Numeric,
};

/// REGCOLLATION[]
pub const REGCOLLATION_ARRAY: Type = Type {
    oid: 4192,
    descr: "REGCOLLATION[]",
    name: "_regcollation",
    kind: Kind::Array(4191),
};

/// INT4MULTIRANGE - multirange of integers
pub const INT4MULTI_RANGE: Type = Type {
    oid: 4451,
    descr: "INT4MULTIRANGE - multirange of integers",
    name: "int4multirange",
    kind: Kind::Range(23),
};

/// NUMMULTIRANGE - multirange of numerics
pub const NUMMULTI_RANGE: Type = Type {
    oid: 4532,
    descr: "NUMMULTIRANGE - multirange of numerics",
    name: "nummultirange",
    kind: Kind::Range(1700),
};

/// TSMULTIRANGE - multirange of timestamps without time zone
pub const TSMULTI_RANGE: Type = Type {
    oid: 4533,
    descr: "TSMULTIRANGE - multirange of timestamps without time zone",
    name: "tsmultirange",
    kind: Kind::Range(1114),
};

/// TSTZMULTIRANGE - multirange of timestamps with time zone
pub const TSTZMULTI_RANGE: Type = Type {
    oid: 4534,
    descr: "TSTZMULTIRANGE - multirange of timestamps with time zone",
    name: "tstzmultirange",
    kind: Kind::Range(1184),
};

/// DATEMULTIRANGE - multirange of dates
pub const DATEMULTI_RANGE: Type = Type {
    oid: 4535,
    descr: "DATEMULTIRANGE - multirange of dates",
    name: "datemultirange",
    kind: Kind::Range(1082),
};

/// INT8MULTIRANGE - multirange of bigints
pub const INT8MULTI_RANGE: Type = Type {
    oid: 4536,
    descr: "INT8MULTIRANGE - multirange of bigints",
    name: "int8multirange",
    kind: Kind::Range(20),
};

/// ANYMULTIRANGE - pseudo-type representing a polymorphic base type that is a multirange
pub const ANYMULTI_RANGE: Type = Type {
    oid: 4537,
    descr: "ANYMULTIRANGE - pseudo-type representing a polymorphic base type that is a multirange",
    name: "anymultirange",
    kind: Kind::Pseudo,
};

/// ANYCOMPATIBLEMULTIRANGE - pseudo-type representing a multirange over a polymorphic common type
pub const ANYCOMPATIBLEMULTI_RANGE: Type = Type {
    oid: 4538,
    descr: "ANYCOMPATIBLEMULTIRANGE - pseudo-type representing a multirange over a polymorphic common type",
    name: "anycompatiblemultirange",
    kind: Kind::Pseudo,
};

/// PG_BRIN_BLOOM_SUMMARY - BRIN bloom summary
pub const PG_BRIN_BLOOM_SUMMARY: Type = Type {
    oid: 4600,
    descr: "PG_BRIN_BLOOM_SUMMARY - BRIN bloom summary",
    name: "pg_brin_bloom_summary",
    kind: Kind::String,
};

/// PG_BRIN_MINMAX_MULTI_SUMMARY - BRIN minmax-multi summary
pub const PG_BRIN_MINMAX_MULTI_SUMMARY: Type = Type {
    oid: 4601,
    descr: "PG_BRIN_MINMAX_MULTI_SUMMARY - BRIN minmax-multi summary",
    name: "pg_brin_minmax_multi_summary",
    kind: Kind::String,
};

/// PG_MCV_LIST - multivariate MCV list
pub const PG_MCV_LIST: Type = Type {
    oid: 5017,
    descr: "PG_MCV_LIST - multivariate MCV list",
    name: "pg_mcv_list",
    kind: Kind::String,
};

/// PG_SNAPSHOT - snapshot
pub const PG_SNAPSHOT: Type = Type {
    oid: 5038,
    descr: "PG_SNAPSHOT - snapshot",
    name: "pg_snapshot",
    kind: Kind::UserDefined,
};

/// PG_SNAPSHOT[]
pub const PG_SNAPSHOT_ARRAY: Type = Type {
    oid: 5039,
    descr: "PG_SNAPSHOT[]",
    name: "_pg_snapshot",
    kind: Kind::Array(5038),
};

/// XID8 - full transaction id
pub const XID8: Type = Type {
    oid: 5069,
    descr: "XID8 - full transaction id",
    name: "xid8",
    kind: Kind::UserDefined,
};

/// ANYCOMPATIBLE - pseudo-type representing a polymorphic common type
pub const ANYCOMPATIBLE: Type = Type {
    oid: 5077,
    descr: "ANYCOMPATIBLE - pseudo-type representing a polymorphic common type",
    name: "anycompatible",
    kind: Kind::Pseudo,
};

/// ANYCOMPATIBLEARRAY - pseudo-type representing an array of polymorphic common type elements
pub const ANYCOMPATIBLEARRAY: Type = Type {
    oid: 5078,
    descr: "ANYCOMPATIBLEARRAY - pseudo-type representing an array of polymorphic common type elements",
    name: "anycompatiblearray",
    kind: Kind::Pseudo,
};

/// ANYCOMPATIBLENONARRAY - pseudo-type representing a polymorphic common type that is not an array
pub const ANYCOMPATIBLENONARRAY: Type = Type {
    oid: 5079,
    descr: "ANYCOMPATIBLENONARRAY - pseudo-type representing a polymorphic common type that is not an array",
    name: "anycompatiblenonarray",
    kind: Kind::Pseudo,
};

/// ANYCOMPATIBLERANGE - pseudo-type representing a range over a polymorphic common type
pub const ANYCOMPATIBLE_RANGE: Type = Type {
    oid: 5080,
    descr: "ANYCOMPATIBLERANGE - pseudo-type representing a range over a polymorphic common type",
    name: "anycompatiblerange",
    kind: Kind::Pseudo,
};

/// INT4MULTIRANGE[]
pub const INT4MULTI_RANGE_ARRAY: Type = Type {
    oid: 6150,
    descr: "INT4MULTIRANGE[]",
    name: "_int4multirange",
    kind: Kind::Array(4451),
};

/// NUMMULTIRANGE[]
pub const NUMMULTI_RANGE_ARRAY: Type = Type {
    oid: 6151,
    descr: "NUMMULTIRANGE[]",
    name: "_nummultirange",
    kind: Kind::Array(4532),
};

/// TSMULTIRANGE[]
pub const TSMULTI_RANGE_ARRAY: Type = Type {
    oid: 6152,
    descr: "TSMULTIRANGE[]",
    name: "_tsmultirange",
    kind: Kind::Array(4533),
};

/// TSTZMULTIRANGE[]
pub const TSTZMULTI_RANGE_ARRAY: Type = Type {
    oid: 6153,
    descr: "TSTZMULTIRANGE[]",
    name: "_tstzmultirange",
    kind: Kind::Array(4534),
};

/// DATEMULTIRANGE[]
pub const DATEMULTI_RANGE_ARRAY: Type = Type {
    oid: 6155,
    descr: "DATEMULTIRANGE[]",
    name: "_datemultirange",
    kind: Kind::Array(4535),
};

/// INT8MULTIRANGE[]
pub const INT8MULTI_RANGE_ARRAY: Type = Type {
    oid: 6157,
    descr: "INT8MULTIRANGE[]",
    name: "_int8multirange",
    kind: Kind::Array(4536),
};

impl TryFrom<u32> for Type {
    type Error = String;

    fn try_from(oid: u32) -> std::result::Result<Self, Self::Error> {
        match oid {
            16 => Ok(BOOL),
            17 => Ok(BYTEA),
            18 => Ok(CHAR),
            19 => Ok(NAME),
            20 => Ok(INT8),
            21 => Ok(INT2),
            22 => Ok(INT2_VECTOR),
            23 => Ok(INT4),
            24 => Ok(REGPROC),
            25 => Ok(TEXT),
            26 => Ok(OID),
            27 => Ok(TID),
            28 => Ok(XID),
            29 => Ok(CID),
            30 => Ok(OID_VECTOR),
            32 => Ok(PG_DDL_COMMAND),
            114 => Ok(JSON),
            142 => Ok(XML),
            143 => Ok(XML_ARRAY),
            194 => Ok(PG_NODE_TREE),
            199 => Ok(JSON_ARRAY),
            269 => Ok(TABLE_AM_HANDLER),
            271 => Ok(XID8_ARRAY),
            325 => Ok(INDEX_AM_HANDLER),
            600 => Ok(POINT),
            601 => Ok(LSEG),
            602 => Ok(PATH),
            603 => Ok(BOX),
            604 => Ok(POLYGON),
            628 => Ok(LINE),
            629 => Ok(LINE_ARRAY),
            650 => Ok(CIDR),
            651 => Ok(CIDR_ARRAY),
            700 => Ok(FLOAT4),
            701 => Ok(FLOAT8),
            705 => Ok(UNKNOWN),
            718 => Ok(CIRCLE),
            719 => Ok(CIRCLE_ARRAY),
            774 => Ok(MACADDR8),
            775 => Ok(MACADDR8_ARRAY),
            790 => Ok(MONEY),
            791 => Ok(MONEY_ARRAY),
            829 => Ok(MACADDR),
            869 => Ok(INET),
            1000 => Ok(BOOL_ARRAY),
            1001 => Ok(BYTEA_ARRAY),
            1002 => Ok(CHAR_ARRAY),
            1003 => Ok(NAME_ARRAY),
            1005 => Ok(INT2_ARRAY),
            1006 => Ok(INT2_VECTOR_ARRAY),
            1007 => Ok(INT4_ARRAY),
            1008 => Ok(REGPROC_ARRAY),
            1009 => Ok(TEXT_ARRAY),
            1010 => Ok(TID_ARRAY),
            1011 => Ok(XID_ARRAY),
            1012 => Ok(CID_ARRAY),
            1013 => Ok(OID_VECTOR_ARRAY),
            1014 => Ok(BPCHAR_ARRAY),
            1015 => Ok(VARCHAR_ARRAY),
            1016 => Ok(INT8_ARRAY),
            1017 => Ok(POINT_ARRAY),
            1018 => Ok(LSEG_ARRAY),
            1019 => Ok(PATH_ARRAY),
            1020 => Ok(BOX_ARRAY),
            1021 => Ok(FLOAT4_ARRAY),
            1022 => Ok(FLOAT8_ARRAY),
            1027 => Ok(POLYGON_ARRAY),
            1028 => Ok(OID_ARRAY),
            1033 => Ok(ACLITEM),
            1034 => Ok(ACLITEM_ARRAY),
            1040 => Ok(MACADDR_ARRAY),
            1041 => Ok(INET_ARRAY),
            1042 => Ok(BPCHAR),
            1043 => Ok(VARCHAR),
            1082 => Ok(DATE),
            1083 => Ok(TIME),
            1114 => Ok(TIMESTAMP),
            1115 => Ok(TIMESTAMP_ARRAY),
            1182 => Ok(DATE_ARRAY),
            1183 => Ok(TIME_ARRAY),
            1184 => Ok(TIMESTAMPTZ),
            1185 => Ok(TIMESTAMPTZ_ARRAY),
            1186 => Ok(INTERVAL),
            1187 => Ok(INTERVAL_ARRAY),
            1231 => Ok(NUMERIC_ARRAY),
            1263 => Ok(CSTRING_ARRAY),
            1266 => Ok(TIMETZ),
            1270 => Ok(TIMETZ_ARRAY),
            1560 => Ok(BIT),
            1561 => Ok(BIT_ARRAY),
            1562 => Ok(VARBIT),
            1563 => Ok(VARBIT_ARRAY),
            1700 => Ok(NUMERIC),
            1790 => Ok(REFCURSOR),
            2201 => Ok(REFCURSOR_ARRAY),
            2202 => Ok(REGPROCEDURE),
            2203 => Ok(REGOPER),
            2204 => Ok(REGOPERATOR),
            2205 => Ok(REGCLASS),
            2206 => Ok(REGTYPE),
            2207 => Ok(REGPROCEDURE_ARRAY),
            2208 => Ok(REGOPER_ARRAY),
            2209 => Ok(REGOPERATOR_ARRAY),
            2210 => Ok(REGCLASS_ARRAY),
            2211 => Ok(REGTYPE_ARRAY),
            2249 => Ok(RECORD),
            2275 => Ok(CSTRING),
            2276 => Ok(ANY),
            2277 => Ok(ANYARRAY),
            2278 => Ok(VOID),
            2279 => Ok(TRIGGER),
            2280 => Ok(LANGUAGE_HANDLER),
            2281 => Ok(INTERNAL),
            #[allow(deprecated)]
            2282 => Ok(OPAQUE),
            2283 => Ok(ANYELEMENT),
            2287 => Ok(RECORD_ARRAY),
            2776 => Ok(ANYNONARRAY),
            2949 => Ok(TXID_SNAPSHOT_ARRAY),
            2950 => Ok(UUID),
            2951 => Ok(UUID_ARRAY),
            2970 => Ok(TXID_SNAPSHOT),
            3115 => Ok(FDW_HANDLER),
            3220 => Ok(PG_LSN),
            3221 => Ok(PG_LSN_ARRAY),
            3310 => Ok(TSM_HANDLER),
            3361 => Ok(PG_NDISTINCT),
            3402 => Ok(PG_DEPENDENCIES),
            3500 => Ok(ANYENUM),
            3614 => Ok(TS_VECTOR),
            3615 => Ok(TSQUERY),
            3642 => Ok(GTS_VECTOR),
            3643 => Ok(TS_VECTOR_ARRAY),
            3644 => Ok(GTS_VECTOR_ARRAY),
            3645 => Ok(TSQUERY_ARRAY),
            3734 => Ok(REGCONFIG),
            3735 => Ok(REGCONFIG_ARRAY),
            3769 => Ok(REGDICTIONARY),
            3770 => Ok(REGDICTIONARY_ARRAY),
            3802 => Ok(JSONB),
            3807 => Ok(JSONB_ARRAY),
            3831 => Ok(ANY_RANGE),
            3838 => Ok(EVENT_TRIGGER),
            3904 => Ok(INT4_RANGE),
            3905 => Ok(INT4_RANGE_ARRAY),
            3906 => Ok(NUM_RANGE),
            3907 => Ok(NUM_RANGE_ARRAY),
            3908 => Ok(TS_RANGE),
            3909 => Ok(TS_RANGE_ARRAY),
            3910 => Ok(TSTZ_RANGE),
            3911 => Ok(TSTZ_RANGE_ARRAY),
            3912 => Ok(DATE_RANGE),
            3913 => Ok(DATE_RANGE_ARRAY),
            3926 => Ok(INT8_RANGE),
            3927 => Ok(INT8_RANGE_ARRAY),
            4072 => Ok(JSONPATH),
            4073 => Ok(JSONPATH_ARRAY),
            4089 => Ok(REGNAMESPACE),
            4090 => Ok(REGNAMESPACE_ARRAY),
            4096 => Ok(REGROLE),
            4097 => Ok(REGROLE_ARRAY),
            4191 => Ok(REGCOLLATION),
            4192 => Ok(REGCOLLATION_ARRAY),
            4451 => Ok(INT4MULTI_RANGE),
            4532 => Ok(NUMMULTI_RANGE),
            4533 => Ok(TSMULTI_RANGE),
            4534 => Ok(TSTZMULTI_RANGE),
            4535 => Ok(DATEMULTI_RANGE),
            4536 => Ok(INT8MULTI_RANGE),
            4537 => Ok(ANYMULTI_RANGE),
            4538 => Ok(ANYCOMPATIBLEMULTI_RANGE),
            4600 => Ok(PG_BRIN_BLOOM_SUMMARY),
            4601 => Ok(PG_BRIN_MINMAX_MULTI_SUMMARY),
            5017 => Ok(PG_MCV_LIST),
            5038 => Ok(PG_SNAPSHOT),
            5039 => Ok(PG_SNAPSHOT_ARRAY),
            5069 => Ok(XID8),
            5077 => Ok(ANYCOMPATIBLE),
            5078 => Ok(ANYCOMPATIBLEARRAY),
            5079 => Ok(ANYCOMPATIBLENONARRAY),
            5080 => Ok(ANYCOMPATIBLE_RANGE),
            6150 => Ok(INT4MULTI_RANGE_ARRAY),
            6151 => Ok(NUMMULTI_RANGE_ARRAY),
            6152 => Ok(TSMULTI_RANGE_ARRAY),
            6153 => Ok(TSTZMULTI_RANGE_ARRAY),
            6155 => Ok(DATEMULTI_RANGE_ARRAY),
            6157 => Ok(INT8MULTI_RANGE_ARRAY),

            _ => Err("unknow type".to_string()),
        }
    }
}
impl std::str::FromStr for Type {
    type Err = String;

    fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
        match s {
            "bool" => Ok(BOOL),
            "bytea" => Ok(BYTEA),
            "char" => Ok(CHAR),
            "name" => Ok(NAME),
            "int8" => Ok(INT8),
            "int2" => Ok(INT2),
            "int2vector" => Ok(INT2_VECTOR),
            "int4" => Ok(INT4),
            "regproc" => Ok(REGPROC),
            "text" => Ok(TEXT),
            "oid" => Ok(OID),
            "tid" => Ok(TID),
            "xid" => Ok(XID),
            "cid" => Ok(CID),
            "oidvector" => Ok(OID_VECTOR),
            "pg_ddl_command" => Ok(PG_DDL_COMMAND),
            "json" => Ok(JSON),
            "xml" => Ok(XML),
            "_xml" => Ok(XML_ARRAY),
            "pg_node_tree" => Ok(PG_NODE_TREE),
            "_json" => Ok(JSON_ARRAY),
            "table_am_handler" => Ok(TABLE_AM_HANDLER),
            "_xid8" => Ok(XID8_ARRAY),
            "index_am_handler" => Ok(INDEX_AM_HANDLER),
            "point" => Ok(POINT),
            "lseg" => Ok(LSEG),
            "path" => Ok(PATH),
            "box" => Ok(BOX),
            "polygon" => Ok(POLYGON),
            "line" => Ok(LINE),
            "_line" => Ok(LINE_ARRAY),
            "cidr" => Ok(CIDR),
            "_cidr" => Ok(CIDR_ARRAY),
            "float4" => Ok(FLOAT4),
            "float8" => Ok(FLOAT8),
            "unknown" => Ok(UNKNOWN),
            "circle" => Ok(CIRCLE),
            "_circle" => Ok(CIRCLE_ARRAY),
            "macaddr8" => Ok(MACADDR8),
            "_macaddr8" => Ok(MACADDR8_ARRAY),
            "money" => Ok(MONEY),
            "_money" => Ok(MONEY_ARRAY),
            "macaddr" => Ok(MACADDR),
            "inet" => Ok(INET),
            "_bool" => Ok(BOOL_ARRAY),
            "_bytea" => Ok(BYTEA_ARRAY),
            "_char" => Ok(CHAR_ARRAY),
            "_name" => Ok(NAME_ARRAY),
            "_int2" => Ok(INT2_ARRAY),
            "_int2vector" => Ok(INT2_VECTOR_ARRAY),
            "_int4" => Ok(INT4_ARRAY),
            "_regproc" => Ok(REGPROC_ARRAY),
            "_text" => Ok(TEXT_ARRAY),
            "_tid" => Ok(TID_ARRAY),
            "_xid" => Ok(XID_ARRAY),
            "_cid" => Ok(CID_ARRAY),
            "_oidvector" => Ok(OID_VECTOR_ARRAY),
            "_bpchar" => Ok(BPCHAR_ARRAY),
            "_varchar" => Ok(VARCHAR_ARRAY),
            "_int8" => Ok(INT8_ARRAY),
            "_point" => Ok(POINT_ARRAY),
            "_lseg" => Ok(LSEG_ARRAY),
            "_path" => Ok(PATH_ARRAY),
            "_box" => Ok(BOX_ARRAY),
            "_float4" => Ok(FLOAT4_ARRAY),
            "_float8" => Ok(FLOAT8_ARRAY),
            "_polygon" => Ok(POLYGON_ARRAY),
            "_oid" => Ok(OID_ARRAY),
            "aclitem" => Ok(ACLITEM),
            "_aclitem" => Ok(ACLITEM_ARRAY),
            "_macaddr" => Ok(MACADDR_ARRAY),
            "_inet" => Ok(INET_ARRAY),
            "bpchar" => Ok(BPCHAR),
            "varchar" => Ok(VARCHAR),
            "date" => Ok(DATE),
            "time" => Ok(TIME),
            "timestamp" => Ok(TIMESTAMP),
            "_timestamp" => Ok(TIMESTAMP_ARRAY),
            "_date" => Ok(DATE_ARRAY),
            "_time" => Ok(TIME_ARRAY),
            "timestamptz" => Ok(TIMESTAMPTZ),
            "_timestamptz" => Ok(TIMESTAMPTZ_ARRAY),
            "interval" => Ok(INTERVAL),
            "_interval" => Ok(INTERVAL_ARRAY),
            "_numeric" => Ok(NUMERIC_ARRAY),
            "_cstring" => Ok(CSTRING_ARRAY),
            "timetz" => Ok(TIMETZ),
            "_timetz" => Ok(TIMETZ_ARRAY),
            "bit" => Ok(BIT),
            "_bit" => Ok(BIT_ARRAY),
            "varbit" => Ok(VARBIT),
            "_varbit" => Ok(VARBIT_ARRAY),
            "numeric" => Ok(NUMERIC),
            "refcursor" => Ok(REFCURSOR),
            "_refcursor" => Ok(REFCURSOR_ARRAY),
            "regprocedure" => Ok(REGPROCEDURE),
            "regoper" => Ok(REGOPER),
            "regoperator" => Ok(REGOPERATOR),
            "regclass" => Ok(REGCLASS),
            "regtype" => Ok(REGTYPE),
            "_regprocedure" => Ok(REGPROCEDURE_ARRAY),
            "_regoper" => Ok(REGOPER_ARRAY),
            "_regoperator" => Ok(REGOPERATOR_ARRAY),
            "_regclass" => Ok(REGCLASS_ARRAY),
            "_regtype" => Ok(REGTYPE_ARRAY),
            "record" => Ok(RECORD),
            "cstring" => Ok(CSTRING),
            "any" => Ok(ANY),
            "anyarray" => Ok(ANYARRAY),
            "void" => Ok(VOID),
            "trigger" => Ok(TRIGGER),
            "language_handler" => Ok(LANGUAGE_HANDLER),
            "internal" => Ok(INTERNAL),
            #[allow(deprecated)]
            "opaque" => Ok(OPAQUE),
            "anyelement" => Ok(ANYELEMENT),
            "_record" => Ok(RECORD_ARRAY),
            "anynonarray" => Ok(ANYNONARRAY),
            "_txid_snapshot" => Ok(TXID_SNAPSHOT_ARRAY),
            "uuid" => Ok(UUID),
            "_uuid" => Ok(UUID_ARRAY),
            "txid_snapshot" => Ok(TXID_SNAPSHOT),
            "fdw_handler" => Ok(FDW_HANDLER),
            "pg_lsn" => Ok(PG_LSN),
            "_pg_lsn" => Ok(PG_LSN_ARRAY),
            "tsm_handler" => Ok(TSM_HANDLER),
            "pg_ndistinct" => Ok(PG_NDISTINCT),
            "pg_dependencies" => Ok(PG_DEPENDENCIES),
            "anyenum" => Ok(ANYENUM),
            "tsvector" => Ok(TS_VECTOR),
            "tsquery" => Ok(TSQUERY),
            "gtsvector" => Ok(GTS_VECTOR),
            "_tsvector" => Ok(TS_VECTOR_ARRAY),
            "_gtsvector" => Ok(GTS_VECTOR_ARRAY),
            "_tsquery" => Ok(TSQUERY_ARRAY),
            "regconfig" => Ok(REGCONFIG),
            "_regconfig" => Ok(REGCONFIG_ARRAY),
            "regdictionary" => Ok(REGDICTIONARY),
            "_regdictionary" => Ok(REGDICTIONARY_ARRAY),
            "jsonb" => Ok(JSONB),
            "_jsonb" => Ok(JSONB_ARRAY),
            "anyrange" => Ok(ANY_RANGE),
            "event_trigger" => Ok(EVENT_TRIGGER),
            "int4range" => Ok(INT4_RANGE),
            "_int4range" => Ok(INT4_RANGE_ARRAY),
            "numrange" => Ok(NUM_RANGE),
            "_numrange" => Ok(NUM_RANGE_ARRAY),
            "tsrange" => Ok(TS_RANGE),
            "_tsrange" => Ok(TS_RANGE_ARRAY),
            "tstzrange" => Ok(TSTZ_RANGE),
            "_tstzrange" => Ok(TSTZ_RANGE_ARRAY),
            "daterange" => Ok(DATE_RANGE),
            "_daterange" => Ok(DATE_RANGE_ARRAY),
            "int8range" => Ok(INT8_RANGE),
            "_int8range" => Ok(INT8_RANGE_ARRAY),
            "jsonpath" => Ok(JSONPATH),
            "_jsonpath" => Ok(JSONPATH_ARRAY),
            "regnamespace" => Ok(REGNAMESPACE),
            "_regnamespace" => Ok(REGNAMESPACE_ARRAY),
            "regrole" => Ok(REGROLE),
            "_regrole" => Ok(REGROLE_ARRAY),
            "regcollation" => Ok(REGCOLLATION),
            "_regcollation" => Ok(REGCOLLATION_ARRAY),
            "int4multirange" => Ok(INT4MULTI_RANGE),
            "nummultirange" => Ok(NUMMULTI_RANGE),
            "tsmultirange" => Ok(TSMULTI_RANGE),
            "tstzmultirange" => Ok(TSTZMULTI_RANGE),
            "datemultirange" => Ok(DATEMULTI_RANGE),
            "int8multirange" => Ok(INT8MULTI_RANGE),
            "anymultirange" => Ok(ANYMULTI_RANGE),
            "anycompatiblemultirange" => Ok(ANYCOMPATIBLEMULTI_RANGE),
            "pg_brin_bloom_summary" => Ok(PG_BRIN_BLOOM_SUMMARY),
            "pg_brin_minmax_multi_summary" => Ok(PG_BRIN_MINMAX_MULTI_SUMMARY),
            "pg_mcv_list" => Ok(PG_MCV_LIST),
            "pg_snapshot" => Ok(PG_SNAPSHOT),
            "_pg_snapshot" => Ok(PG_SNAPSHOT_ARRAY),
            "xid8" => Ok(XID8),
            "anycompatible" => Ok(ANYCOMPATIBLE),
            "anycompatiblearray" => Ok(ANYCOMPATIBLEARRAY),
            "anycompatiblenonarray" => Ok(ANYCOMPATIBLENONARRAY),
            "anycompatiblerange" => Ok(ANYCOMPATIBLE_RANGE),
            "_int4multirange" => Ok(INT4MULTI_RANGE_ARRAY),
            "_nummultirange" => Ok(NUMMULTI_RANGE_ARRAY),
            "_tsmultirange" => Ok(TSMULTI_RANGE_ARRAY),
            "_tstzmultirange" => Ok(TSTZMULTI_RANGE_ARRAY),
            "_datemultirange" => Ok(DATEMULTI_RANGE_ARRAY),
            "_int8multirange" => Ok(INT8MULTI_RANGE_ARRAY),

            _ => Err("unknow type".to_string()),
        }
    }
}