1
1
/*
2
2
* SQL Information Schema
3
- * as defined in ISO/IEC 9075-11:2011
3
+ * as defined in ISO/IEC 9075-11:2016
4
4
*
5
5
* Copyright (c) 2003-2019, PostgreSQL Global Development Group
6
6
*
@@ -1206,14 +1206,22 @@ GRANT SELECT ON parameters TO PUBLIC;
1206
1206
1207
1207
/*
1208
1208
* 5.39
1209
- * REFERENCED_TYPES view
1209
+ * PRIVATE_PARAMETERS view
1210
1210
*/
1211
1211
1212
1212
-- feature not supported
1213
1213
1214
1214
1215
1215
/*
1216
1216
* 5.40
1217
+ * REFERENCED_TYPES view
1218
+ */
1219
+
1220
+ -- feature not supported
1221
+
1222
+
1223
+ /*
1224
+ * 5.41
1217
1225
* REFERENTIAL_CONSTRAINTS view
1218
1226
*/
1219
1227
@@ -1275,7 +1283,7 @@ GRANT SELECT ON referential_constraints TO PUBLIC;
1275
1283
1276
1284
1277
1285
/*
1278
- * 5.41
1286
+ * 5.42
1279
1287
* ROLE_COLUMN_GRANTS view
1280
1288
*/
1281
1289
@@ -1295,45 +1303,45 @@ CREATE VIEW role_column_grants AS
1295
1303
GRANT SELECT ON role_column_grants TO PUBLIC;
1296
1304
1297
1305
1298
- -- 5.42 ROLE_ROUTINE_GRANTS view is based on 5.49 ROUTINE_PRIVILEGES and is defined there instead.
1306
+ -- 5.43 ROLE_ROUTINE_GRANTS view is based on 5.50 ROUTINE_PRIVILEGES and is defined there instead.
1299
1307
1300
1308
1301
- -- 5.43 ROLE_TABLE_GRANTS view is based on 5.62 TABLE_PRIVILEGES and is defined there instead.
1309
+ -- 5.44 ROLE_TABLE_GRANTS view is based on 5.63 TABLE_PRIVILEGES and is defined there instead.
1302
1310
1303
1311
1304
1312
/*
1305
- * 5.44
1313
+ * 5.45
1306
1314
* ROLE_TABLE_METHOD_GRANTS view
1307
1315
*/
1308
1316
1309
1317
-- feature not supported
1310
1318
1311
1319
1312
1320
1313
- -- 5.45 ROLE_USAGE_GRANTS view is based on 5.74 USAGE_PRIVILEGES and is defined there instead.
1321
+ -- 5.46 ROLE_USAGE_GRANTS view is based on 5.75 USAGE_PRIVILEGES and is defined there instead.
1314
1322
1315
1323
1316
- -- 5.46 ROLE_UDT_GRANTS view is based on 5.73 UDT_PRIVILEGES and is defined there instead.
1324
+ -- 5.47 ROLE_UDT_GRANTS view is based on 5.74 UDT_PRIVILEGES and is defined there instead.
1317
1325
1318
1326
1319
1327
/*
1320
- * 5.47
1328
+ * 5.48
1321
1329
* ROUTINE_COLUMN_USAGE view
1322
1330
*/
1323
1331
1324
1332
-- not tracked by PostgreSQL
1325
1333
1326
1334
1327
1335
/*
1328
- * 5.48
1336
+ * 5.49
1329
1337
* ROUTINE_PERIOD_USAGE view
1330
1338
*/
1331
1339
1332
1340
-- feature not supported
1333
1341
1334
1342
1335
1343
/*
1336
- * 5.49
1344
+ * 5.50
1337
1345
* ROUTINE_PRIVILEGES view
1338
1346
*/
1339
1347
@@ -1400,31 +1408,31 @@ GRANT SELECT ON role_routine_grants TO PUBLIC;
1400
1408
1401
1409
1402
1410
/*
1403
- * 5.50
1411
+ * 5.51
1404
1412
* ROUTINE_ROUTINE_USAGE view
1405
1413
*/
1406
1414
1407
1415
-- not tracked by PostgreSQL
1408
1416
1409
1417
1410
1418
/*
1411
- * 5.51
1419
+ * 5.52
1412
1420
* ROUTINE_SEQUENCE_USAGE view
1413
1421
*/
1414
1422
1415
1423
-- not tracked by PostgreSQL
1416
1424
1417
1425
1418
1426
/*
1419
- * 5.52
1427
+ * 5.53
1420
1428
* ROUTINE_TABLE_USAGE view
1421
1429
*/
1422
1430
1423
1431
-- not tracked by PostgreSQL
1424
1432
1425
1433
1426
1434
/*
1427
- * 5.53
1435
+ * 5.54
1428
1436
* ROUTINES view
1429
1437
*/
1430
1438
@@ -1542,7 +1550,7 @@ GRANT SELECT ON routines TO PUBLIC;
1542
1550
1543
1551
1544
1552
/*
1545
- * 5.54
1553
+ * 5.55
1546
1554
* SCHEMATA view
1547
1555
*/
1548
1556
@@ -1563,7 +1571,7 @@ GRANT SELECT ON schemata TO PUBLIC;
1563
1571
1564
1572
1565
1573
/*
1566
- * 5.55
1574
+ * 5.56
1567
1575
* SEQUENCES view
1568
1576
*/
1569
1577
@@ -1593,7 +1601,7 @@ GRANT SELECT ON sequences TO PUBLIC;
1593
1601
1594
1602
1595
1603
/*
1596
- * 5.56
1604
+ * 5.57
1597
1605
* SQL_FEATURES table
1598
1606
*/
1599
1607
@@ -1613,7 +1621,7 @@ GRANT SELECT ON sql_features TO PUBLIC;
1613
1621
1614
1622
1615
1623
/*
1616
- * 5.57
1624
+ * 5.58
1617
1625
* SQL_IMPLEMENTATION_INFO table
1618
1626
*/
1619
1627
@@ -1695,7 +1703,7 @@ GRANT SELECT ON sql_packages TO PUBLIC;
1695
1703
1696
1704
1697
1705
/*
1698
- * 5.58
1706
+ * 5.59
1699
1707
* SQL_PARTS table
1700
1708
*/
1701
1709
@@ -1719,7 +1727,7 @@ INSERT INTO sql_parts VALUES ('14', 'XML-Related Specifications (SQL/XML)', 'YES
1719
1727
1720
1728
1721
1729
/*
1722
- * 5.59
1730
+ * 5.60
1723
1731
* SQL_SIZING table
1724
1732
*/
1725
1733
@@ -1785,7 +1793,7 @@ GRANT SELECT ON sql_sizing_profiles TO PUBLIC;
1785
1793
1786
1794
1787
1795
/*
1788
- * 5.60
1796
+ * 5.61
1789
1797
* TABLE_CONSTRAINTS view
1790
1798
*/
1791
1799
@@ -1858,15 +1866,15 @@ GRANT SELECT ON table_constraints TO PUBLIC;
1858
1866
1859
1867
1860
1868
/*
1861
- * 5.61
1869
+ * 5.62
1862
1870
* TABLE_METHOD_PRIVILEGES view
1863
1871
*/
1864
1872
1865
1873
-- feature not supported
1866
1874
1867
1875
1868
1876
/*
1869
- * 5.62
1877
+ * 5.63
1870
1878
* TABLE_PRIVILEGES view
1871
1879
*/
1872
1880
@@ -1976,7 +1984,7 @@ GRANT SELECT ON tables TO PUBLIC;
1976
1984
1977
1985
1978
1986
/*
1979
- * 5.64
1987
+ * 5.65
1980
1988
* TRANSFORMS view
1981
1989
*/
1982
1990
@@ -2016,15 +2024,15 @@ CREATE VIEW transforms AS
2016
2024
2017
2025
2018
2026
/*
2019
- * 5.65
2027
+ * 5.66
2020
2028
* TRANSLATIONS view
2021
2029
*/
2022
2030
2023
2031
-- feature not supported
2024
2032
2025
2033
2026
2034
/*
2027
- * 5.66
2035
+ * 5.67
2028
2036
* TRIGGERED_UPDATE_COLUMNS view
2029
2037
*/
2030
2038
@@ -2056,47 +2064,47 @@ GRANT SELECT ON triggered_update_columns TO PUBLIC;
2056
2064
2057
2065
2058
2066
/*
2059
- * 5.67
2067
+ * 5.68
2060
2068
* TRIGGER_COLUMN_USAGE view
2061
2069
*/
2062
2070
2063
2071
-- not tracked by PostgreSQL
2064
2072
2065
2073
2066
2074
/*
2067
- * 5.68
2075
+ * 5.69
2068
2076
* TRIGGER_PERIOD_USAGE view
2069
2077
*/
2070
2078
2071
2079
-- feature not supported
2072
2080
2073
2081
2074
2082
/*
2075
- * 5.69
2083
+ * 5.70
2076
2084
* TRIGGER_ROUTINE_USAGE view
2077
2085
*/
2078
2086
2079
2087
-- not tracked by PostgreSQL
2080
2088
2081
2089
2082
2090
/*
2083
- * 5.70
2091
+ * 5.71
2084
2092
* TRIGGER_SEQUENCE_USAGE view
2085
2093
*/
2086
2094
2087
2095
-- not tracked by PostgreSQL
2088
2096
2089
2097
2090
2098
/*
2091
- * 5.71
2099
+ * 5.72
2092
2100
* TRIGGER_TABLE_USAGE view
2093
2101
*/
2094
2102
2095
2103
-- not tracked by PostgreSQL
2096
2104
2097
2105
2098
2106
/*
2099
- * 5.72
2107
+ * 5.73
2100
2108
* TRIGGERS view
2101
2109
*/
2102
2110
@@ -2158,7 +2166,7 @@ GRANT SELECT ON triggers TO PUBLIC;
2158
2166
2159
2167
2160
2168
/*
2161
- * 5.73
2169
+ * 5.74
2162
2170
* UDT_PRIVILEGES view
2163
2171
*/
2164
2172
@@ -2220,7 +2228,7 @@ GRANT SELECT ON role_udt_grants TO PUBLIC;
2220
2228
2221
2229
2222
2230
/*
2223
- * 5.74
2231
+ * 5.75
2224
2232
* USAGE_PRIVILEGES view
2225
2233
*/
2226
2234
@@ -2412,7 +2420,7 @@ GRANT SELECT ON role_usage_grants TO PUBLIC;
2412
2420
2413
2421
2414
2422
/*
2415
- * 5.75
2423
+ * 5.76
2416
2424
* USER_DEFINED_TYPES view
2417
2425
*/
2418
2426
@@ -2459,7 +2467,7 @@ GRANT SELECT ON user_defined_types TO PUBLIC;
2459
2467
2460
2468
2461
2469
/*
2462
- * 5.76
2470
+ * 5.77
2463
2471
* VIEW_COLUMN_USAGE
2464
2472
*/
2465
2473
@@ -2498,15 +2506,15 @@ GRANT SELECT ON view_column_usage TO PUBLIC;
2498
2506
2499
2507
2500
2508
/*
2501
- * 5.77
2509
+ * 5.78
2502
2510
* VIEW_PERIOD_USAGE
2503
2511
*/
2504
2512
2505
2513
-- feature not supported
2506
2514
2507
2515
2508
2516
/*
2509
- * 5.78
2517
+ * 5.79
2510
2518
* VIEW_ROUTINE_USAGE
2511
2519
*/
2512
2520
@@ -2539,7 +2547,7 @@ GRANT SELECT ON view_routine_usage TO PUBLIC;
2539
2547
2540
2548
2541
2549
/*
2542
- * 5.79
2550
+ * 5.80
2543
2551
* VIEW_TABLE_USAGE
2544
2552
*/
2545
2553
@@ -2574,7 +2582,7 @@ GRANT SELECT ON view_table_usage TO PUBLIC;
2574
2582
2575
2583
2576
2584
/*
2577
- * 5.80
2585
+ * 5.81
2578
2586
* VIEWS view
2579
2587
*/
2580
2588
@@ -2767,7 +2775,6 @@ GRANT SELECT ON element_types TO PUBLIC;
2767
2775
2768
2776
2769
2777
-- SQL/MED views; these use section numbers from part 9 of the standard.
2770
- -- (still SQL:2008; there is no SQL:2011 SQL/MED)
2771
2778
2772
2779
/* Base view for foreign table columns */
2773
2780
CREATE VIEW _pg_foreign_table_columns AS
0 commit comments