Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
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
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
// QDB_DBMS_GEN_MANAGED_SKELETON
// Generated contract scaffold. Business logic must be implemented manually.
 
#ifndef DBMS_STATS_INTERNAL_HPP
#define DBMS_STATS_INTERNAL_HPP
 
/**
 * @brief DBMS_STATS: Импортировано из Oracle API inventory: /home/dev/rudb_dbms_gen_output/oracle_inventory/rudb_api_inventory.tsv
 * @details
 * Назначение:
 *   Импортировано из Oracle API inventory:
 *   /home/dev/rudb_dbms_gen_output/oracle_inventory/rudb_api_inventory.tsv
 */
 
extern "C"
{
#include "postgres.h"
#include "fmgr.h"
} // extern "C"
 
extern "C"
{
/**
 * @brief функция dbms_stats_clob_to_varray.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_clob_to_varray(CAST(NULL AS clob));
 * @param cl `clob`, входное значение.
 * @return `text` — return_value.
 */
Datum dbms_stats_clob_to_varray(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_column_need_hist.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_column_need_hist(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param colname `varchar2`, входное значение.
 * @param method_opt `varchar2`, входное значение.
 * @return `number` — return_value.
 */
Datum dbms_stats_column_need_hist(PG_FUNCTION_ARGS);
/**
 * @brief -----------------------------------------------------------------------------
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_configure_advisor_filter(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS text));
 * @param task_name `varchar2`, входное значение.
 * @param stats_adv_opr_type `varchar2`, входное значение.
 * @param configuration_type `varchar2`, входное значение.
 * @param filter `text`, входное значение, по умолчанию NULL (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_configure_advisor_filter(PG_FUNCTION_ARGS);
/**
 * @brief ------------------- configure_advisor_obj_filter ----------------------------
 * @details NAME:
 *          configure_advisor_obj_filter
 *          DESCRIPTION:
 *          Configure object filter for a statistics advisor task.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          stats_adv_opr_type  (IN) - type of statistics advisor operation to
 *          configure. See configure_advisor_rule_filter.
 *          rule_name           (IN) - name of the rule to configure. If null, apply
 *          the filter to all object rules
 *          ownname             (IN) - owner name of object to filter
 *          tabname             (IN) - table name of object to filter
 *          action              (IN) - configuration action to take.
 *          See configure_advisor_rule_filter.
 *          RETURNS:
 *          A clob of xml format containing the (updated) values of the filter.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_configure_advisor_obj_filter(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param stats_adv_opr_type `varchar2`, входное значение.
 * @param rule_name `varchar2`, входное значение.
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param action `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_configure_advisor_obj_filter(PG_FUNCTION_ARGS);
/**
 * @brief --------------------- configure_advisor_opr_filter --------------------------
 * @details NAME:
 *          configure_advisor_opr_filter
 *          DESCRIPTION:
 *          Configure operation filter for a statistics advisor task.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          stats_adv_opr_type  (IN) - type of statistics advisor operation to
 *          configure. See configure_advisor_rule_filter.
 *          rule_name           (IN) - name of the rule to configure. If null, apply
 *          the filter to all operation level rules
 *          operation_name      (IN) - operation name (e.g. 'gather_table_stats')
 *          action              (IN) - configuration action to take.
 *          See configure_advisor_rule_filter.
 *          RETURNS:
 *          A clob of xml format containing the (updated) values of the filter.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_configure_advisor_opr_filter(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param stats_adv_opr_type `varchar2`, входное значение.
 * @param rule_name `varchar2`, входное значение.
 * @param operation_name `varchar2`, входное значение.
 * @param action `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_configure_advisor_opr_filter_0(PG_FUNCTION_ARGS);
/**
 * @brief --------------------- configure_advisor_opr_filter --------------------------
 * @details NAME:
 *          configure_advisor_opr_filter
 *          DESCRIPTION:
 *          Configure operation filter for a statistics advisor task.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          stats_adv_opr_type  (IN) - type of statistics advisor operation to
 *          configure. See configure_advisor_rule_filter.
 *          rule_name           (IN) - name of the rule to configure. If null, apply
 *          the filter to all operation level rules
 *          operation_name      (IN) - operation name (e.g. 'gather_table_stats')
 *          ownname             (IN) - owner name of the operation target.
 *          Cannot be null.
 *          tabname             (IN) - table name of the operation target
 *          action              (IN) - configuration action to take.
 *          See configure_advisor_rule_filter.
 *          RETURNS:
 *          A clob of xml format containing the (updated) values of the filter.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_configure_advisor_opr_filter(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param stats_adv_opr_type `varchar2`, входное значение.
 * @param rule_name `varchar2`, входное значение.
 * @param operation_name `varchar2`, входное значение.
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param action `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_configure_advisor_opr_filter_1(PG_FUNCTION_ARGS);
/**
 * @brief --------------------- configure_advisor_opr_filter --------------------------
 * @details NAME:
 *          configure_advisor_opr_filter
 *          DESCRIPTION:
 *          Configure operation filter for a statistics advisor task.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          stats_adv_opr_type  (IN) - type of statistics advisor operation to
 *          configure. See configure_advisor_rule_filter.
 *          rule_name           (IN) - name of the rule to configure. If null, apply
 *          the filter to all operation level rules
 *          operation_id        (IN) - operation id to configure. The filter will apply
 *          to any operation with the same signature as the
 *          given operation ID. If two operations have the
 *          same signature, then they have the same value
 *          for every parameter. The operation ID comes from
 *          the ID column in dba_optstat_operations.
 *          action              (IN) - configuration action to take.
 *          See configure_advisor_rule_filter.
 *          RETURNS:
 *          A clob of xml format containing the (updated) values of the filter.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_configure_advisor_opr_filter(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param stats_adv_opr_type `varchar2`, входное значение.
 * @param rule_name `varchar2`, входное значение.
 * @param operation_id `number`, входное значение.
 * @param action `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_configure_advisor_opr_filter_2(PG_FUNCTION_ARGS);
/**
 * @brief --------------------- configure_advisor_rule_filter -------------------------
 * @details NAME:
 *          configure_advisor_rule_filter
 *          DESCRIPTION:
 *          Configure rule filter for a statistics advisor task
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          stats_adv_opr_type  (IN) - type of operation to configure. Possible values:
 *          'EXECUTE', 'REPORT', 'SCRIPT', 'IMPLEMENT'
 *          combination of configure operation types are
 *          allowed. For example, 'EXECUTE + REPORT'.
 *          If this parameter is null, then the filter will
 *          apply to all types of advisor operations.
 *          rule_name           (IN) - name of the rule to configure. If null, apply
 *          the filter to all rules
 *          action              (IN) - configuration action to take for the given
 *          rule. Possible values:
 *          'ENABLE': enable the filter
 *          'DISABLE: disable the filter
 *          'DELETE': delete the filter
 *          'SHOW': show the current filter value
 *          RETURNS:
 *          A clob of xml format containing the (updated) values of the filter.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_configure_advisor_rule_filter(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param stats_adv_opr_type `varchar2`, входное значение.
 * @param rule_name `varchar2`, входное значение.
 * @param action `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_configure_advisor_rule_filter(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_to_bin_double.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_to_bin_double(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `binary_double` — return_value.
 */
Datum dbms_stats_convert_raw_to_bin_double(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_to_bin_float.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_to_bin_float(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `binary_float` — return_value.
 */
Datum dbms_stats_convert_raw_to_bin_float(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_to_date.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_to_date(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `date` — return_value.
 */
Datum dbms_stats_convert_raw_to_date(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_to_number.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_to_number(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `number` — return_value.
 */
Datum dbms_stats_convert_raw_to_number(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_to_nvarchar.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_to_nvarchar(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `nvarchar2` — return_value.
 */
Datum dbms_stats_convert_raw_to_nvarchar(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_to_rowid.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_to_rowid(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `rowid` — return_value.
 */
Datum dbms_stats_convert_raw_to_rowid(PG_FUNCTION_ARGS);
/**
 * @brief Convert the internal representation of a minimum or maximum value
 * @details into a datatype-specific value.  The minval and maxval fields
 *          of the StatRec structure as filled in by get_column_stats or
 *          prepare_column_values are appropriate values for input.
 *          Input argument
 *          rawval - The raw representation of a column minimum or maximum
 *          Datatype specific output arguments:
 *          resval - The converted, type-specific value
 *          Exceptions:
 *          None
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_to_varchar2(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `varchar2` — return_value.
 */
Datum dbms_stats_convert_raw_to_varchar2(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_conv_raw.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_conv_raw(CAST(NULL AS raw), CAST(NULL AS number));
 * @param rawval `raw`, входное значение.
 * @param type `number`, входное значение.
 * @return `varchar2` — return_value.
 */
Datum dbms_stats_conv_raw(PG_FUNCTION_ARGS);
/**
 * @brief ---------------------------- create_advisor_task ----------------------------
 * @details NAME:
 *          create_advisor_task
 *          DESCRIPTION: Creates an advisor task for the Statistics Advisor.
 *          PARAMETERS:
 *          task_name          (IN) - name of the advisor task(optional). If not
 *          specified, will automatically generate a unique
 *          name for the new task.
 *          RETURNS:
 *          Unique name of the statistics advisor task.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_create_advisor_task(CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @return `varchar2` — return_value.
 */
Datum dbms_stats_create_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief Input arguments:
 * @details ownname  - owner of the table. Specify null for the current schema.
 *          tabname  - table for which statistics are to be compared.
 *          time_stamp - time stamp to get statistics from the history
 *          pctthreshold - The function report difference in statistics
 *          only if it exceeds this limit. The default value is 10.
 *          NOTE:
 *          If the time_stamp parameter is null, the function compares the current
 *          statistics in the dictionary with the pending statistics.  This is the
 *          default
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_create_extended_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param extension `varchar2`, входное значение.
 * @return `varchar2` — return_value.
 */
Datum dbms_stats_create_extended_stats_0(PG_FUNCTION_ARGS);
/**
 * @brief This function creates a column stats entry in the system for a user
 * @details specified column group or an expression in a table. Statistics for this
 *          extension will be gathered when user or auto statistics gathering job
 *          gathers statistics for the table. We call statistics for such an extension,
 *          "extended statistics".  This function returns the name of this newly created
 *          entry for the extension.  If the extension already exists then this function
 *          throws an error.
 *          Parameters:
 *          ownname       -- owner name of a table
 *          tabname       -- table name
 *          extension     -- can be either a column group or an expression. Suppose
 *          the specified table has two column c1, c2. An example
 *          column group can be '(c1, c2)', an example expression
 *          can be '(c1 + c2)'.
 *          Notes:
 *          1. An extension cannot contain a virtual column.
 *          2. You can not create extensions on tables owned by SYS.
 *          3. You can not create extensions on cluster tables, index organized
 *          tables, temporary tables, external tables.
 *          4. Total number of extensions in a table cannot be greater than
 *          maximum of (20, 10 % of number of non-virtual columns in the table).
 *          5. Number of columns in a column group must be in the range [2, 32].
 *          6. A column can not appear more than once in a column group.
 *          7. Column group can not contain expressions.
 *          8. An expression must contain at least one column.
 *          9. An expression can not contain subquery.
 *          10. COMPATIBLE parameter needs to be 11.0.0.0.0 or greater.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges / creating extension is not supported
 *          ORA-20001: Error when processing extension
 *          ORA-20007: Extension already exist
 *          ORA-20008: Reached the upper limit on number of extensions
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_create_extended_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_create_extended_stats_1(PG_FUNCTION_ARGS);
/**
 * @brief Input arguments:
 * @details ownname  - owner of the table. Specify null for current schema.
 *          tabname  - table for which statistics are to be compared.
 *          stattab1 - user stats table 1.
 *          stattab2 - user stats table 2. If null, statistics in stattab1
 *          is compared with current statistics in dictionary.
 *          This is the default.
 *          Specify same table as stattab1 to compare two sets
 *          within the stats table (Please see statid below).
 *          pctthreshold - The function report difference in statistics
 *          only if it exceeds this limit. The default value is 10.
 *          statid1  - (optional) identifies statistics set within stattab1.
 *          statid2  - (optional) identifies statistics set within stattab2.
 *          stattab1own - The schema containing stattab1 (if different than ownname)
 *          stattab2own - The schema containing stattab2 (if different than ownname)
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_diff_table_stats_in_history(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS text), CAST(NULL AS text), CAST(NULL AS number));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param time1 `text`, входное значение.
 * @param time2 `text`, входное значение, по умолчанию NULL (source CSV).
 * @param pctthreshold `number`, входное значение, по умолчанию 10 (source CSV).
 * @return `text` — return_value.
 */
Datum dbms_stats_diff_table_stats_in_history(PG_FUNCTION_ARGS);
/**
 * @brief Input arguments:
 * @details ownname  - owner of the table. Specify null for current schema.
 *          tabname  - table for which statistics are to be compared.
 *          time1    - first time stamp
 *          time2    - second time stamp
 *          pctthreshold - The function report difference in statistics
 *          only if it exceeds this limit. The default value is 10.
 *          NOTE:
 *          If the second timestamp is null, the function compares the current
 *          statistics in dictionary with the statistics as of the other timestamp.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_diff_table_stats_in_pending(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS text), CAST(NULL AS number));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param time_stamp `text`, входное значение, по умолчанию NULL (source CSV).
 * @param pctthreshold `number`, входное значение, по умолчанию 10 (source CSV).
 * @return `text` — return_value.
 */
Datum dbms_stats_diff_table_stats_in_pending(PG_FUNCTION_ARGS);
/**
 * @brief This procedure copies the statistics of the source [sub] partition to the
 * @details destination [sub] partition. It also copies statistics of all dependent
 *          objects such as columns and local indexes. If the statistics for source
 *          are not available, then nothing is copied. It can optionally scale the
 *          statistics (such as the number of blks, or number of rows) based on the
 *          given scale_factor.
 *          Usage notes:
 *          a) To invoke this procedure you must be owner of the table, or you need
 *          the ANALYZE ANY privilege. For objects owned by SYS, you need to be
 *          either the owner of the table, or you need the ANALYZE ANY DICTIONARY
 *          privilege or the SYSDBA privilege.
 *          b) This procedure updates the minimum and maximum values of destination
 *          partition for the first partitioning column as follows:
 *          - If the partitioning type is HASH the minimum and maximum values of the
 *          destination partition are same as that of the source partition.
 *          - If the partitioning type is LIST then
 *          if the destination partition is a NOT DEFAULT partition then
 *          The minimum value of the destination partition is set to the
 *          minimum value of the value list that describes the destination
 *          partition.
 *          The maximum value of the destination partition is set to the
 *          maximum value of the value list that describes the destination
 *          partition.
 *          Alternatively, if the destination partition is a DEFAULT partition, then
 *          The minimum value of the destination partition is set to the minimum
 *          value of the source partition
 *          The maximum value of the destination partition is set to the maximum
 *          value of the source partition
 *          - If the partitioning type is RANGE then
 *          The minimum value of the destination partition is set to the high bound
 *          of previous partition unless the destination partition is the first
 *          partition. For the first partition, the minimum value is set to the
 *          high bound of the destination partition.
 *          The maximum value of the destination partition is set to the high bound
 *          of the destination partition unless the high bound of the destination
 *          partition is MAXVALUE, in which case the maximum value of the
 *          destination partition is set to the high bound of the previous
 *          partition.
 *          c) Additional modification to minimum and maximum values if the
 *          partitioning type is RANGE:
 *          - If the source partition column's minimum value is equal to its maximum
 *          value, and both are equal to the source partition's lower bound, and
 *          it has a single distinct value, then the destination partition column's
 *          minimum and maximum values are both set to the destination partition's
 *          lower bound. This is done for all partitioning columns.
 *          - If the above condition does not apply, second and subsequent
 *          partitioning columns are updated as follows:
 *          The destination partition column's maximum value is set to the greater
 *          of the destination partition upper bound and the source partition
 *          column's maximum value, with the following exception: if the
 *          destination partition is D and its preceding partition is D-1 and the
 *          key column to be adjusted is Cn, the maximum value for Cn is set to
 *          the upper bound of D (ignoring the maximum value of the source
 *          partition column) provided that the upper bounds of the previous key
 *          column Cn-1 are the same in partitions D and D-1.
 *          d) If the minimum and maximum values are different for a column after
 *          modifications, and if the number of distinct values is less than 1,
 *          the number of disctinct values is updated as 2.
 *          e) This procedure does not copy statistics of the underlying subpartitions
 *          if the source/destination is a partition of a composite partitioned table.
 *          f) If the source and destination points to a subpartition, the minimum
 *          and maximum of partitioning column(s) are adjusted based on bounds of
 *          corresponding partition using same rules outlined above.
 *          Parameters:
 *          ownname      - Schema of the table of source and destination
 *          [sub] partitions
 *          tabname      - Table name of source and destination [sub] partitions
 *          srcpartname  - Source [sub] partition
 *          dtspartname  - Destination [sub] partition
 *          scale_factor - Scale factor to scale nblks, nrows etc. in dstpartname
 *          flags        - Specify DBMS_STATS.UPDATE_GLOBAL_STATS to update the
 *          global column statistics at partition or table level based
 *          on the new bounds of the destination [sub] partition.
 *          force        - When value of this argument is TRUE copy statistics even
 *          if the destination [sub]partition is locked
 *          Exceptions:
 *          ORA-20000: Invalid partition name
 *          ORA-20001: Bad input value
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_diff_table_stats_in_stattab(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS number),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param stattab1 `varchar2`, входное значение.
 * @param stattab2 `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param pctthreshold `number`, входное значение, по умолчанию 10 (source CSV).
 * @param statid1 `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid2 `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab1own `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab2own `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @return `text` — return_value.
 */
Datum dbms_stats_diff_table_stats_in_stattab(PG_FUNCTION_ARGS);
/**
 * @brief -------------------------- execute_advisor_task -----------------------------
 * @details NAME:
 *          execute_advisor_task
 *          DESCRIPTION: executes a previously created statistics advisor task.
 *          PARAMETERS:
 *          task_name:         (IN) - name of the statistics advisor task
 *          execution_name:    (IN) - A name to qualify and identify an execution.
 *          If not specified, it is automatically generated
 *          by the advisor and returned by the function.
 *          RETURNS:
 *          Name of the new execution.
 *          NOTES:
 *          This function will give an error if the specified execution conflicts
 *          with the name of an existing execution (when the given execution name
 *          already exists).
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_execute_advisor_task(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param execution_name `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @return `varchar2` — return_value.
 */
Datum dbms_stats_execute_advisor_task(PG_FUNCTION_ARGS);
 
/**
 * @brief функция dbms_stats_get_advisor_recs.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_advisor_recs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param rec `varchar2`, входное значение.
 * @param type `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_get_advisor_recs(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_get_compatible.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_compatible();
 * @return `number` — return_value.
 */
Datum dbms_stats_get_compatible(PG_FUNCTION_ARGS);
/**
 * @brief WARNING ** WARNING ---> obsoleted <--- WARNING  ** WARNING
 * @details Please use SET_GLOBAL_PREFS() instead.
 *          WARNING ** WARNING ---> obsoleted <--- WARNING  ** WARNING
 *          This procedure can be used to set default value for parameters
 *          of dbms_stats procedures.
 *          The function get_param can be used to get the current
 *          default value of a parameter.
 *          To run this procedure, you must have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          pname   - parameter name
 *          The default value for following parameters can be set.
 *          CASCADE - The default value for CASCADE set by set_param
 *          is not used by export/import procedures.
 *          It is used only by gather procedures.
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          AUTOSTATS_TARGET
 *          This parameter is applicable only for auto stats
 *          collection. The value of this parameter controls
 *          the objects considered for stats collection
 *          It takes the following values
 *          'ALL'    -- statistics collected
 *          for all objects in system
 *          'ORACLE' -- statistics collected
 *          for all oracle owned objects
 *          'AUTO'   -- oracle decide which objects
 *          to collect stats
 *          pval    - parameter value.
 *          if null is specified, it will set the oracle default value
 *          Notes:
 *          Both arguments are of type varchar2 and values are enclosed in quotes,
 *          even when they represent numbers
 *          Examples:
 *          dbms_stats.set_param('CASCADE','DBMS_STATS.AUTO_CASCADE');
 *          dbms_stats.set_param('ESTIMATE_PERCENT','5');
 *          dbms_stats.set_param('DEGREE','NULL');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or Illegal input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_param(CAST(NULL AS varchar2));
 * @param pname `varchar2`, входное значение.
 * @return `varchar2` — return_value.
 */
Datum dbms_stats_get_param(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to set the global statistics preferences.
 * @details This setting is honored only of there is no preference specified
 *          for the table to be analyzed.
 *          To run this procedure, you need to have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          pname   - preference name
 *          The default value for following preferences can be set.
 *          CASCADE
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          PUBLISH
 *          INCREMENTAL
 *          INCREMENTAL_LEVEL
 *          INCREMENTAL_STALENESS
 *          GLOBAL_TEMP_TABLE_STATS
 *          STALE_PERCENT
 *          AUTOSTATS_TARGET
 *          CONCURRENT
 *          TABLE_CACHED_BLOCKS
 *          OPTIONS
 *          STAT_CATEGORY
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          APPROXIMATE_NDV_ALGORITHM
 *          AUTO_STAT_EXTENSIONS
 *          WAIT_TIME_TO_UPDATE_STATS
 *          ROOT_TRIGGER_PDB
 *          COORDINATOR_TRIGGER_SHARD
 *          AUTO_STATS_ADVISOR_TASK
 *          pvalue  - preference value.
 *          if null is specified, it will set the oracle default value.
 *          CASCADE: Please see CASCADE in gather_table_stats
 *          DEGREE: Please see DEGREE in gather_table_stats
 *          ESTIMATE_PERCENT: Please see ESTIMATE_PERCENT in gather_table_stats
 *          METHOD_OPT: Please see METHOD_OPT in gather_table_stats
 *          NO_INVALIDATE: Please see NO_INVALIDATE in gather_table_stats
 *          GRANULARITY: Please see GRANULARITY in gather_table_stats
 *          PUBLISH: The "PUBLISH" value determines whether or not newly gathered
 *          statistics will be published once the gather job has completed.
 *          Prior to 11g, once a statistic gathering job completed, the new
 *          statistics were automatically published into the dictionary tables.
 *          The user now has the ability to gather statistics but not publish
 *          them immediately. This allows the DBA to test the new statistics
 *          before publishing them.
 *          INCREMENTAL: The "INCREMENTAL" value determines whether or not the global
 *          statistics of a partitioned table will be maintained without doing a
 *          full table scan. With partitioned tables it is very common to load new
 *          data into a new partition. As new partitions are added and data loaded,
 *          the global table statistics need to be kept up to date.  Oracle will
 *          update the global table statistics by scanning only the partitions that
 *          have been changed instead of the entire table if the following conditions
 *          hold: (1) the INCREMENTAL value for the partitioned table is set to TRUE;
 *          (2) the PUBLISH value for the partitioned table is set to TRUE; and
 *          (3) the user specifies AUTO_SAMPLE_SIZE for estimate_percent and AUTO for
 *          granularity when gathering statistics on the table.
 *          If the INCREMENTAL value for the partitioned table was set to FALSE
 *          (default value), then a full table scan would be used to maintain the
 *          global statistics.
 *          INCREMENTAL_LEVEL: INCREMENTAL_LEVEL controls what synopses to collect when
 *          'INCREMENTAL' preference is set to 'TRUE'. It takes two values:
 *          table -- table level synopses are gathered. This is used when user
 *          wants to exchange this table with a partition. User can run
 *          gather_table_stats on this table with 'INCREMENTAL' to 'TRUE'
 *          and 'INCREMENTAL_LEVEL' to 'TABLE' before the exchange. Then table
 *          level synopses are gathered on this table (for now we only support
 *          table level synopses on non partitoned table). Then we do the
 *          exchange. After the exchange, the partition will have synopses
 *          which come from the table level synopses of the table before
 *          exchange. This preference value can be only used in set_table_prefs.
 *          It is not allowed in set_global/database/schema_prefs.
 *          partition -- partition level synopses are gathered. This is the
 *          default value. If 'partition' is set on a non partitioned table,
 *          no synopses will be gathered.
 *          INCREMENTAL_STALENESS: INCREMENTAL_STALENESS controls how we decide
 *          a partition or subpartition as stale. It takes an enumeration of
 *          values, i.e., 'USE_STALE_PERCENT', 'USE_LOCKED_STATS' and 'ALLOW_
 *          MIXED_FORMAT'. Multiple values are allowed, e.g., 'USE_STALE_PERCENT,
 *          USE_LOCKED_STATS, ALLOW_MIXED_FORMAT'
 *          'USE_STALE_PERCENT': a partition/subpartition is NOT considered as
 *          stale if DML changes are less the stale_percent preference value
 *          'USE_LOCKED_STATS': locked partitions/subpartitions stats are NOT
 *          considered as stale, regardless of dml changes
 *          'ALLOW_MIXED_FORMAT': partitions with synopses in adaptive sampling
 *          (AS) format are NOT considered as stale even when approximate_ndv_
 *          algorithm preference is 'HYPERLOGLOG'
 *          'NULL' - this means a partition/subpartition.
 *          is considered as stale as long as it has any DML changes. When the
 *          default value is used, statistics gathered in incremental mode are
 *          guaranteed to be the same as the statistics gathered in non incremental
 *          mode. When a non default value is used, the statistics gathered in
 *          incremental mode might be less accurate than those gathered in non-
 *          incremental mode.
 *          The default value is 'ALLOW_MIXED_FORMAT'.
 *          NOTE the following two are different.
 *          command 1: dbms_stats.set_table_prefs('sh', 'sales',
 *          'incremental_staleness', 'null');
 *          command 2: dbms_stats.set_table_prefs('sh', 'sales',
 *          'incremental_staleness', null);
 *          command 1 sets the preference value to 'null' while command 2 resets
 *          the preference value to default which is 'ALLOW_MIXED_FORMAT'.
 *          example of usage case:
 *          case 1: stale_percent is 10; null is specified for incrmental_
 *          staleness; a partition has 5% of DML changes. Statistics of the
 *          partition are regathered
 *          case 2: stale_percent is 10; 'use_stale_percent' is specified; a
 *          partition has 5% of DML changes. Statistis of the partition are
 *          NOT regathered
 *          case 3: stale_percent is 10; 'use_stale_percent' is specified;
 *          a partition has 20% of DML changes; the partition is also locked.
 *          The partition is considered as stale. Since it is locked, statistics
 *          are not regathered. We fall back to the non incremental mode for
 *          global statistics gathering
 *          case 4: stale_percent is 10; 'use_stale_percent' is specified; a
 *          partition has 5% of DML changes; the partition is also locked.
 *          The partition is not considered as stale and its statistics are
 *          not gathered. Its existing statistics are used to derive global
 *          statistics
 *          case 5: stale_percent is 10; 'use_locked_stats, use_stale_percent' is
 *          specified; a partition has 20% of DML changes; the partition is also
 *          locked. The partition is NOT considered as stale. Its existing statistics
 *          are used to derive global statistics
 *          case 6: approximate_ndv_algorithm is HLL. 'allow_mixed_format' is
 *          specified. All partitions have synopses in old AS format. None
 *          partition is considered stale. Its existing synopses are used
 *          to derive global NDV (auto job will regather stats on partitions
 *          with synospes of old AS format and replace them with synopses of
 *          new HLL format).
 *          GLOBAL_TEMP_TABLE_STATS: GLOBAL_TEMP_TABLE_STATS controls whether
 *          the statistics gathered for a global temporary table should be stored
 *          as shared statistics or session statistics. It takes two values:
 *          'SHARED': all sessions can see the statistics
 *          'SESSION': only the session in which the statistics are collected can
 *          see the statistics
 *          STALE_PERCENT: The "STALE_PERCENT" value determines the percentage of rows
 *          in a table that have to change before the statistics on that table are
 *          deemed stale and should be regathered. The default value is 10%.
 *          AUTOSTATS_TARGET
 *          This preference is applicable only for auto stats collection. The value
 *          of this parameter controls the objects considered for stats collection.
 *          It takes the following values
 *          'ALL'    -- statistics collected  for all objects in system
 *          'ORACLE' -- statistics collected  for all oracle owned objects
 *          'AUTO'   -- oracle decide which objects   to collect stats
 *          CONCURRENT
 *          This preference determines whether the statistics of tables or
 *          (sub)partitions of tables to be gathered concurrently when user issues
 *          gather_*_stats procedures. DBMS_STATS has the ability to collect
 *          statistics for a single object (table, (sub)partition) in parallel
 *          based on the value of degree parameter. However the parallelism is
 *          limited to one object. CONCURRENT preference extends the scope of
 *          "parallelization" to multiple database objects by enabling users to
 *          concurrently gather statistics for multiple tables in a schema/database
 *          and multiple (sub)partitions within a table. Note that this is primarily
 *          intented for multi cpu systems and it may not be suitable for small
 *          databases on single cpu machines.
 *          To gather statistics concurrently,
 *          1. The user must have DBA role or have the following privileges in
 *          addition to privileges that are required for gathering statistics.
 *          CREATE JOB, MANAGE SCHEDULER, MANAGE ANY QUEUE
 *          2. Resource Manager should be enabled.
 *          3. job_queue_processes parameter should be at least 4.
 *          The preference takes the following values.
 *          MANUAL: Concurrency is enabled only for manual statistics gathering.
 *          AUTOMATIC: Concurrency is enabled only for the auto statistics gathering.
 *          ALL: Concurrency is enabled for all statistics gathering calls.
 *          OFF: Concurrency is disabled (default).
 *          TABLE_CACHED_BLOCKS
 *          The average number of blocks cached in the buffer cache for any table
 *          we can assume when gathering the index clustering factor.
 *          OPTIONS
 *          The preference determines the 'options' parameter used in
 *          gather_table_stats
 *          The preference takes two values:
 *          'GATHER' (default)  - Gather statistics for all objects in the table
 *          'GATHER AUTO' - Gather statistics for objects having missing or empty
 *          statistics
 *          We recommend setting 'GATHER AUTO' on tables that undergo bulk loads.
 *          Statistics gathering on load will automatically gather statistics during
 *          bulk load. Gather_table_stats on these tables with 'gather auto' options
 *          will skip regathering the already fresh statistics.
 *          STAT_CATEGORY
 *          The preferece determines category of statistics that will be exported or
 *          imported using export_*_stats/import_*_stats/datapump. It accepts
 *          multiple values separated by comma. The values we support now are
 *          'OBJECT_STATS' (i.e., table statistics, column statistics and index
 *          statistics) and 'SYNOPSES'. However synopses can only be exported/
 *          imported along with OBJECT_STATS. Therefore only valid combinations are
 *          OBJECT_STATS   (default value)
 *          OBJECT_STATS, SYNOPSES
 *          Note that the preference is not used in delete_*_stats procedures.
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          This preference determines for a statistics operation, whether to
 *          override the input value of a parameter with the preference value
 *          of that parameter.
 *          Possible values are:
 *          'FALSE'(default): input parameter values are obeyed
 *          'TRUE': input parameter values are ignored, and the value of
 *          the corresponding preference is used.
 *          Example:
 *          If preference_overrides_parameter is set to 'TRUE', and the user issues
 *          the following statistics operation:
 *          dbms_stats.gather_table_stats('SCOTT', 'EMP', estimate_percent=>100);
 *          Suppose the user has specified a table preference for estimate_percent
 *          for table SCOTT.EMP 10, then that value will be used, and it will be
 *          equivalent to issuing the following operation:
 *          dbms_stats.gather_table_stats('SCOTT', 'EMP', estimate_percent=>10);
 *          If the user did not specify a table preference for estimate_percent,
 *          but has issued a global level preference value of 5, then it will be
 *          equivalent to issuing the following operation:
 *          dbms_stats.gather_table_stats('SCOTT', 'EMP', estimate_percent=>5);
 *          If the user did not specify any preference for estimate_percent,
 *          then the default value for estimate_percent will be used. It will be
 *          equivalent to issuing the following opereation:
 *          dbms_stats.gather_table_stats('SCOTT', 'EMP',
 *          estimate_percent=>DBMS_STATS.AUTO_SAMPLE_SIZE);
 *          The order of precedence is not changed if this preference is specified,
 *          which is:
 *          table preference > global preference > default
 *          APPROXIMATE_NDV_ALGORITHM
 *          Possible values for this preference are:
 *          - HYPERLOGLOG: use Hyperloglog algorithm.
 *          - ADAPTIVE SAMPLING: use adaptive sampling algorithm.
 *          - REPEAT OR HYPERLOGLOG:
 *          If incremental stats maintenance is disabled on the partitioned
 *          table, then this preference is the same as 'HYPERLOGLOG'
 *          If incremental stats maintenance is enabled on the partitioned
 *          table:
 *          - If the latest synopses gathered in this partitioned table uses
 *          HYPERLOGLOG (ADAPTIVE SAMPLING respectively), then use
 *          HYPERLOGLOG (ADAPTIVE SAMPLING respectively) for statistics
 *          gathering.
 *          - If no synopses exist yet for this partitioned table, then use
 *          HYPERLOGLOG for statistics gathering.
 *          AUTO_STAT_EXTENSIONS
 *          This preference controls the automatic creation of extensions
 *          while gathering (auto or manual) statistics. The values are
 *          ON: extensions are created automatically as part of gathering
 *          statistics based on usage of columns in the predicates in
 *          the workload.
 *          OFF: extensions are not created automatically. It will be created
 *          only when create_extended_stats API is executed or when
 *          extension is specified explicitly in method_opt clause of
 *          gather API. This is the default.
 *          WAIT_TIME_TO_UPDATE_STATS
 *          This preference specifies the wait time, in minutes, before
 *          timing out for locks and pins required for updating statistics.
 *          It accepts values in the range, [0, 65535]. The default value is
 *          15 minutes. The special value  0 can be used to get the locks and
 *          pins in no-wait mode.
 *          ROOT_TRIGGER_PDB
 *          This preference is used by App PDB user to determine whether to allow App
 *          Root to interfere in the statistics gathering in PDB.
 *          While gathering the statistics for a metadata linked table in App Root,
 *          if the statistics in a PDB are stale, App Root will trigger the statistics
 *          gathering in that PDB. User can execute or ignore that command from App
 *          Root by using this preference.
 *          Note: CDB Root, different from App Root, never triggers statistics
 *          gathering on the PDBs and it is not controled by this preference.
 *          Values are:
 *          'TRUE':           allow the App Root trigger the statistics gathering on
 *          metadata linked table in App PDB if the statisitcs on
 *          PDB are stale.
 *          'FALSE'(default): ignore the statistics gathering command triggered from
 *          App root.
 *          COORDINATOR_TRIGGER_SHARD
 *          This preference is used by user of each shard to determine whether to
 *          allow shard coordinaotr to interfere in the statistics gathering in each
 *          shards. While gathering the statistics in shard coordinator, if the
 *          statistics in one of the shards are stale, shard coordinator will try to
 *          trigger the statistics gathering in that shard. User can execute or ignore
 *          that command from shard coordinator by using this preference.
 *          Values are:
 *          'TRUE':            allow the shard coordinator trigger the statistics
 *          gathering on sharded table in local shard if the
 *          statistics on local shard arestale.
 *          'FALSE'(default):  ignore the statistics gathering command triggered from
 *          shard coordinator.
 *          AUTO_STATS_ADVISOR_TASK
 *          This preference is used to control auto stats advisor task.
 *          Values are:
 *          'TRUE'(default):  statistics advisor will run after auto stats collection
 *          'FALSE':          auto stats advisor task will be disabled.
 *          Notes:
 *          Both arguments are of type varchar2 and values are enclosed in quotes,
 *          even when they represent numbers
 *          Examples:
 *          dbms_stats.set_global_prefs('ESTIMATE_PERCENT','9');
 *          dbms_stats.set_global_prefs('DEGREE','99');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or Illegal input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2));
 * @param pname `varchar2`, входное значение.
 * @param ownname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param tabname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @return `varchar2` — return_value.
 */
Datum dbms_stats_get_prefs(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_get_row_count_estimate.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_row_count_estimate(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS number));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение.
 * @param nblks `number`, входное значение.
 * @param degree `number`, входное значение.
 * @return `number` — return_value.
 */
Datum dbms_stats_get_row_count_estimate(PG_FUNCTION_ARGS);
/**
 * @brief This function returns the current retention value.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_stats_history_availability();
 * @return `text` — return_value.
 */
Datum dbms_stats_get_stats_history_availability(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to change stats history retention
 * @details value.  Stats history retention is used by both the automatic
 *          purge and purge_stats procedure.
 *          To run this procedure, you must have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          retention - The retention time in days. The stats history will be
 *          ratained for at least these many number of days.
 *          The valid range is [1,365000].  Also the following
 *          values can be used for special purposes.
 *          0 - old stats are never saved. The automatic purge will
 *          delete all stats history
 *          -1 - stats history is never purged by automatic purge.
 *          null -  change stats history retention to default value
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_stats_history_retention();
 * @return `number` — return_value.
 */
Datum dbms_stats_get_stats_history_retention(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_get_stat_tab_version.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_stat_tab_version();
 * @return `number` — return_value.
 */
Datum dbms_stats_get_stat_tab_version(PG_FUNCTION_ARGS);
/**
 * @brief ------------------------ implement_advisor_task -----------------------------
 * @details NAME:
 *          implement_advisor_task
 *          DESCRIPTION:
 *          Implements the actions recommended by the statistics advisor
 *          PARAMETERS:
 *          task_name:          (IN) - name of the advisor task
 *          execution_name:     (IN) - A name to qualify and identify an execution.
 *          If not specified, the latest execution of the
 *          given task is used.
 *          level               (IN) - The level of the implementation of the
 *          recommendations. Possible values are:
 *          'ALL' -> ignore the filters and implement all
 *          the recommendations
 *          'TYPICAL' -> implement the recommendations
 *          according to the filters in place
 *          RETURNS:
 *          A CLOB XML indicating which recommendations have been successfully
 *          implemented.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_implement_advisor_task(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param execution_name `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_implement_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_report_advisor_task.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_advisor_task(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param execution_name `varchar2`, входное значение.
 * @param type `varchar2`, входное значение.
 * @param section `varchar2`, входное значение.
 * @param level `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief This procedure deletes the recorded column (group) usage information from
 * @details dictionary. Column (group) usage information is used by gather procedures to
 *          automatically determine the columns that require histograms.  Also this
 *          information is used by create_extended_stats to create extensions for the
 *          group of columns seen in the workload. So resetting column usage will affect
 *          these functionalities. This procedure should be used only in very rare cases
 *          where you need to start from scratch and need to seed column usage all over
 *          again.
 *          Parameters:
 *          ownname         - owner name. If null it resets column usage information
 *          for tables in all schemas in the database.
 *          tabname         - table name. If null, resets column usage information
 *          for all tables of ownname.
 *          If ownname and tabname is null, it will stop seeding column usage, if
 *          currently seeding column usage using seed_col_usage.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_col_usage(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_col_usage(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_report_gather_auto_stats.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_gather_auto_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2));
 * @param detail_level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @param format `varchar2`, входное значение, по умолчанию TEXT (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_gather_auto_stats(PG_FUNCTION_ARGS);
/**
 * @brief Input arguments:
 * @details estimate_percent - Percentage of rows to estimate (NULL means compute).
 *          The valid range is [0.000001,100].  Use the constant
 *          DBMS_STATS.AUTO_SAMPLE_SIZE to have Oracle determine the
 *          appropriate sample size for good statistics. This is the default.
 *          The default value can be changed using set_param procedure.
 *          block_sample - whether or not to use random block sampling instead of
 *          random row sampling.  Random block sampling is more efficient, but
 *          if the data is not randomly distributed on disk then the sample values
 *          may be somewhat correlated.  Only pertinent when doing an estimate
 *          statistics.
 *          method_opt - method options of the following format
 *          method_opt  := FOR ALL [INDEXED | HIDDEN] COLUMNS [size_clause]
 *          size_clause := SIZE [integer | auto | skewonly | repeat],
 *          where integer is between 1 and 2048
 *          default is FOR ALL COLUMNS SIZE AUTO.
 *          The default value can be changed using set_param procedure.
 *          This value will be passed to all of the individual tables.
 *          degree - degree of parallelism (NULL means use table default value which
 *          is specified by DEGREE clause in CREATE/ALTER TABLE statement)
 *          Use the constant DBMS_STATS.DEFAULT_DEGREE for the default value
 *          based on the initialization parameters.
 *          default for degree is NULL.
 *          The default value can be changed using set_param procedure.
 *          granularity - the granularity of statistics to collect (only pertinent
 *          if the table is partitioned)
 *          'AUTO' - the procedure determines what level of statistics to collect
 *          'GLOBAL AND PARTITION' - gather global- and partition-level statistics
 *          'SUBPARTITION' - gather subpartition-level statistics
 *          'PARTITION' - gather partition-level statistics
 *          'GLOBAL' - gather global statistics
 *          'ALL' - gather all (subpartition, partition, and global) statistics
 *          default for granularity is AUTO.
 *          The default value can be changed using set_param procedure.
 *          cascade - gather statistics on the indexes as well.
 *          Use the constant DBMS_STATS.AUTO_CASCADE to have Oracle determine
 *          whether index stats to be collected or not. This is the default.
 *          The default value can be changed using set_param procedure.
 *          Using this option is equivalent to running the gather_index_stats
 *          procedure on each of the indexes in the database in addition to
 *          gathering table and column statistics.
 *          stattab - The user stat table identifier describing where to save
 *          the current statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          options - further specification of which objects to gather statistics for
 *          'GATHER' - gather statistics on all objects in the schema
 *          'GATHER AUTO' - gather all necessary statistics automatically.  Oracle
 *          implicitly determines which objects need new statistics, and
 *          determines how to gather those statistics.  When 'GATHER AUTO' is
 *          specified, the only additional valid parameters are no_invalidate,
 *          stattab, statid, objlist and statown; all other parameter settings
 *          will be ignored.  Also, return a list of objects processed.
 *          'GATHER STALE' - gather statistics on stale objects as determined
 *          by looking at the *_tab_modifications views.  Also, return
 *          a list of objects found to be stale.
 *          'GATHER EMPTY' - gather statistics on objects which currently
 *          have no statistics.  also, return a list of objects found
 *          to have no statistics.
 *          'LIST AUTO' - return list of objects to be processed with 'GATHER AUTO'
 *          'LIST STALE' - return list of stale objects as determined
 *          by looking at the *_tab_modifications views
 *          'LIST EMPTY' - return list of objects which currently
 *          have no statistics
 *          objlist - list of objects found to be stale or empty
 *          statown - The schema containing stattab.  If null, it will assume
 *          there is a table named stattab in each relevant schema in the
 *          database if stattab is specified for saving current statistics.
 *          gather_sys - Gather statistics on the objects owned by the 'SYS' user
 *          as well.
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          When 'cascade' option is specified, not pertinent with certain types
 *          of indexes described in the gather_index_stats section.
 *          gather_temp - gather stats on global temporary tables also.  The
 *          temporary table must be created with "on commit preserve rows" clause,
 *          and the statistics being collected are based on the data in the session
 *          which this procedure is run but shared across all the sessions.
 *          gather_fixed - Gather stats on fixed tables also.
 *          Statistics for fixed tables can be collected only by user SYS.
 *          Specified values for the following arguments will be ignored while
 *          gathering statistics for fixed tables.
 *          gathering statistics for fixed tables.
 *          estimate_percent, block_sample, stattab, statid, statown
 *          It will not invalidate the dependent cursors on fixed table
 *          on which stats is collected.
 *          This option is meant for internal use only.
 *          obj_filter_list - a list of object filters. When provided,
 *          gather_database_stats will only gather statistics on the objects which
 *          satisfy at least one of the object filters as needed.
 *          In one single object filter, we can specify the constraints on the
 *          object attributes. The attribute values specified in the object filter
 *          are case-insensitive unless double-quoted. Wildcard is allowed in the
 *          attribute values.  Suppose non-null values s1, s2, ... are specified for
 *          attributes a1, a2, ... in one object filter. An object o is said to
 *          satisfy this object filter if (o.a1 like s1) and (o.a2 like s2) and ...
 *          is true.  The following example specifies that any table with a "SALES"
 *          prefix in the SH schema and any table in the SYS schema, if stale, will
 *          be gathered.  Note that the statistics for the partitions of the tables
 *          also will be gathered if they are stale.
 *          Example:
 *          declare
 *          filter_lst  dbms_stats.objecttab := dbms_stats.objecttab();
 *          begin
 *          filter_lst.extend(2);
 *          filter_lst(1).ownname := 'sh';
 *          filter_lst(1).objname := 'sales%';
 *          filter_lst(2).ownname := 'sys';
 *          dbms_stats.gather_schema_stats(null, obj_filter_list => filter_lst,
 *          options => 'gather_stale');
 *          end;
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Bad input value
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_gather_database_stats(CAST(NULL AS number), CAST(NULL AS bool),
 *            CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS varchar2), CAST(NULL AS
 *            bool), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS
 *            bool), CAST(NULL AS varchar2), CAST(NULL AS text), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2));
 * @param estimate_percent `number`, входное значение, по умолчанию 101 (source CSV / package constant DEFAULT_ESTIMATE_PERCENT).
 * @param block_sample `bool`, входное значение, по умолчанию false (source CSV).
 * @param method_opt `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_METHOD_OPT).
 * @param degree `number`, входное значение, по умолчанию 32766 (source CSV / package constant DEFAULT_DEGREE_VALUE).
 * @param granularity `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_GRANULARITY).
 * @param cascade `bool`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param options `varchar2`, входное значение, по умолчанию GATHER (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param gather_sys `bool`, входное значение, по умолчанию true (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param gather_temp `bool`, входное значение, по умолчанию false (source CSV).
 * @param gather_fixed `bool`, входное значение, по умолчанию false (source CSV).
 * @param stattype `varchar2`, входное значение, по умолчанию DATA (source CSV).
 * @param obj_filter_list `text`, входное значение, по умолчанию NULL (source CSV).
 * @param detail_level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @param format `varchar2`, входное значение, по умолчанию TEXT (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_gather_database_stats(PG_FUNCTION_ARGS);
/**
 * @brief Gather statistics for dictionary schemas 'SYS', 'SYSTEM' and schemas of
 * @details RDBMS components.
 *          To run this procedure, you must have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          comp_id - component id of the schema to analyze (NULL means schemas
 *          of all RDBMS components).
 *          Please refer to comp_id column of dba_registry view.
 *          The procedure always gather stats on 'SYS' and 'SYSTEM' schemas
 *          regardless of this argument.
 *          estimate_percent - Percentage of rows to estimate (NULL means compute).
 *          The valid range is [0.000001,100].  Use the constant
 *          DBMS_STATS.AUTO_SAMPLE_SIZE to have Oracle determine the
 *          appropriate sample size for good statistics. This is the default.
 *          The default value can be changed using set_param procedure.
 *          block_sample - whether or not to use random block sampling instead of
 *          random row sampling.  Random block sampling is more efficient, but
 *          if the data is not randomly distributed on disk then the sample values
 *          may be somewhat correlated.  Only pertinent when doing an estimate
 *          statistics.
 *          method_opt - method options of the following format
 *          method_opt  := FOR ALL [INDEXED | HIDDEN] COLUMNS [size_clause]
 *          size_clause := SIZE [integer | auto | skewonly | repeat],
 *          where integer is between 1 and 2048
 *          default is FOR ALL COLUMNS SIZE AUTO.
 *          The default value can be changed using set_param procedure.
 *          This value will be passed to all of the individual tables.
 *          degree - degree of parallelism (NULL means use table default value which
 *          is specified by DEGREE clause in CREATE/ALTER TABLE statement)
 *          Use the constant DBMS_STATS.DEFAULT_DEGREE for the default value
 *          based on the initialization parameters.
 *          default for degree is NULL.
 *          The default value can be changed using set_param procedure.
 *          granularity - the granularity of statistics to collect (only pertinent
 *          if the table is partitioned)
 *          'AUTO' - the procedure determines what level of statistics to collect
 *          'GLOBAL AND PARTITION' - gather global- and partition-level statistics
 *          'SUBPARTITION' - gather subpartition-level statistics
 *          'PARTITION' - gather partition-level statistics
 *          'GLOBAL' - gather global statistics
 *          'ALL' - gather all (subpartition, partition, and global) statistics
 *          default for granularity is AUTO.
 *          The default value can be changed using set_param procedure.
 *          cascade - gather statistics on the indexes as well.
 *          Use the constant DBMS_STATS.AUTO_CASCADE to have Oracle determine
 *          whether index stats to be collected or not. This is the default.
 *          The default value can be changed using set_param procedure.
 *          Using this option is equivalent to running the gather_index_stats
 *          procedure on each of the indexes in the schema in addition to
 *          gathering table and column statistics.
 *          stattab - The user stat table identifier describing where to save
 *          the current statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          options - further specification of which objects to gather statistics for
 *          'GATHER' - gather statistics on all objects in the schema
 *          'GATHER AUTO' - gather all necessary statistics automatically.  Oracle
 *          implicitly determines which objects need new statistics, and
 *          determines how to gather those statistics.  When 'GATHER AUTO' is
 *          specified, the only additional valid parameters are no_invalidate,
 *          comp_id, stattab,
 *          statid and statown; all other parameter settings will be
 *          ignored. Also, return a list of objects processed.
 *          'GATHER STALE' - gather statistics on stale objects as determined
 *          by looking at the *_tab_modifications views.  Also, return
 *          a list of objects found to be stale.
 *          'GATHER EMPTY' - gather statistics on objects which currently
 *          have no statistics.  also, return a list of objects found
 *          to have no statistics.
 *          'LIST AUTO' - return list of objects to be processed with 'GATHER AUTO'
 *          'LIST STALE' - return list of stale objects as determined
 *          by looking at the *_tab_modifications views
 *          'LIST EMPTY' - return list of objects which currently
 *          have no statistics
 *          objlist - list of objects found to be stale or empty
 *          statown - The schema containing stattab (if different from current schema)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          When 'cascade' option is specified, not pertinent with certain types
 *          of indexes described in the gather_index_stats section.
 *          obj_filter_list - a list of object filters. When provided,
 *          gather_dictionary_stats will only gather statistics on the objects which
 *          satisfy at least one of the object filters as needed. Please refer to
 *          obj_filter_list in gather_database_stats
 *          Exceptions:
 *          ORA-20000: Schema does not exist or insufficient privileges
 *          ORA-20001: Bad input value
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_gather_dictionary_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            number), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2),
 *            CAST(NULL AS text), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param comp_id `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param estimate_percent `number`, входное значение, по умолчанию 101 (source CSV / package constant DEFAULT_ESTIMATE_PERCENT).
 * @param block_sample `bool`, входное значение, по умолчанию false (source CSV).
 * @param method_opt `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_METHOD_OPT).
 * @param degree `number`, входное значение, по умолчанию 32766 (source CSV / package constant DEFAULT_DEGREE_VALUE).
 * @param granularity `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_GRANULARITY).
 * @param cascade `bool`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param options `varchar2`, входное значение, по умолчанию GATHER AUTO (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию DATA (source CSV).
 * @param obj_filter_list `text`, входное значение, по умолчанию NULL (source CSV).
 * @param detail_level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @param format `varchar2`, входное значение, по умолчанию TEXT (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_gather_dictionary_stats(PG_FUNCTION_ARGS);
/**
 * @brief Gather statistics for fixed tables.
 * @details To run this procedure, you must have the SYSDBA or ANALYZE ANY DICTIONARY
 *          system privilege.
 *          Input arguments:
 *          stattab - The user stat table identifier describing where to save
 *          the current statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          Exceptions:
 *          ORA-20000: insufficient privileges
 *          ORA-20001: Bad input value
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_gather_fixed_obj_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL
 *            AS varchar2));
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param detail_level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @param format `varchar2`, входное значение, по умолчанию TEXT (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_gather_fixed_obj_stats(PG_FUNCTION_ARGS);
/**
 * @brief Input arguments:
 * @details ownname - schema to analyze (NULL means current schema)
 *          estimate_percent - Percentage of rows to estimate (NULL means compute).
 *          The valid range is [0.000001,100].  Use the constant
 *          DBMS_STATS.AUTO_SAMPLE_SIZE to have Oracle determine the
 *          appropriate sample size for good statistics. This is the default.
 *          The default value can be changed using set_param procedure.
 *          block_sample - whether or not to use random block sampling instead of
 *          random row sampling.  Random block sampling is more efficient, but
 *          if the data is not randomly distributed on disk then the sample values
 *          may be somewhat correlated.  Only pertinent when doing an estimate
 *          statistics.
 *          method_opt - method options of the following format
 *          method_opt  := FOR ALL [INDEXED | HIDDEN] COLUMNS [size_clause]
 *          size_clause := SIZE [integer | auto | skewonly | repeat],
 *          where integer is between 1 and 2048
 *          default is FOR ALL COLUMNS SIZE AUTO.
 *          The default value can be changed using set_param procedure.
 *          This value will be passed to all of the individual tables.
 *          degree - degree of parallelism (NULL means use table default value which
 *          is specified by DEGREE clause in CREATE/ALTER TABLE statement)
 *          Use the constant DBMS_STATS.DEFAULT_DEGREE for the default value
 *          based on the initialization parameters.
 *          default for degree is NULL.
 *          The default value can be changed using set_param procedure.
 *          granularity - the granularity of statistics to collect (only pertinent
 *          if the table is partitioned)
 *          'AUTO' - the procedure determines what level of statistics to collect
 *          'GLOBAL AND PARTITION' - gather global- and partition-level statistics
 *          'SUBPARTITION' - gather subpartition-level statistics
 *          'PARTITION' - gather partition-level statistics
 *          'GLOBAL' - gather global statistics
 *          'ALL' - gather all (subpartition, partition, and global) statistics
 *          default for granularity is AUTO.
 *          The default value can be changed using set_param procedure.
 *          cascade - gather statistics on the indexes as well.
 *          Use the constant DBMS_STATS.AUTO_CASCADE to have Oracle determine
 *          whether index stats to be collected or not. This is the default.
 *          The default value can be changed using set_param procedure.
 *          Using this option is equivalent to running the gather_index_stats
 *          procedure on each of the indexes in the schema in addition to
 *          gathering table and column statistics.
 *          stattab - The user stat table identifier describing where to save
 *          the current statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          options - further specification of which objects to gather statistics for
 *          'GATHER' - gather statistics on all objects in the schema
 *          'GATHER AUTO' - gather all necessary statistics automatically.  Oracle
 *          implicitly determines which objects need new statistics, and
 *          determines how to gather those statistics.  When 'GATHER AUTO' is
 *          specified, the only additional valid parameters are no_invalidate,
 *          ownname, stattab,
 *          statid, objlist and statown; all other parameter settings will be
 *          ignored.  Also, return a list of objects processed.
 *          'GATHER STALE' - gather statistics on stale objects as determined
 *          by looking at the *_tab_modifications views.  Also, return
 *          a list of objects found to be stale.
 *          'GATHER EMPTY' - gather statistics on objects which currently
 *          have no statistics.  also, return a list of objects found
 *          to have no statistics.
 *          'LIST AUTO' - return list of objects to be processed with 'GATHER AUTO'
 *          'LIST STALE' - return list of stale objects as determined
 *          by looking at the *_tab_modifications views
 *          'LIST EMPTY' - return list of objects which currently
 *          have no statistics
 *          objlist - list of objects found to be stale or empty
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          When 'cascade' option is specified, not pertinent with certain types
 *          of indexes described in the gather_index_stats section.
 *          gather_temp - gather stats on global temporary tables also.  The
 *          temporary table must be created with "on commit preserve rows" clause,
 *          and the statistics being collected are based on the data in the session
 *          which this procedure is run but shared across all the sessions.
 *          gather_fixed - Gather statistics on fixed tables also.
 *          Statistics for fixed tables can be collected only by user SYS.
 *          Also the ownname should be SYS or NULL.
 *          Specified values for the following arguments will be ignored while
 *          gathering statistics for fixed tables.
 *          estimate_percent, block_sample, stattab, statid, statown
 *          It will not invalidate the dependent cursors on fixed table
 *          on which stats is collected.
 *          This option is meant for internal use only.
 *          force - gather statistics of objects even if they are locked.
 *          obj_filter_list - a list of object filters. When provided,
 *          gather_schema_stats will only gather statistics on the objects which
 *          satisfy at least one object filter in the list as needed. Please refer
 *          to obj_filter_list in gather_database_stats.
 *          Exceptions:
 *          ORA-20000: Schema does not exist or insufficient privileges
 *          ORA-20001: Bad input value
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_gather_schema_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            number), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL
 *            AS bool), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS text), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param estimate_percent `number`, входное значение, по умолчанию 101 (source CSV / package constant DEFAULT_ESTIMATE_PERCENT).
 * @param block_sample `bool`, входное значение, по умолчанию false (source CSV).
 * @param method_opt `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_METHOD_OPT).
 * @param degree `number`, входное значение, по умолчанию 32766 (source CSV / package constant DEFAULT_DEGREE_VALUE).
 * @param granularity `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_GRANULARITY).
 * @param cascade `bool`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param options `varchar2`, входное значение, по умолчанию GATHER (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param gather_temp `bool`, входное значение, по умолчанию false (source CSV).
 * @param gather_fixed `bool`, входное значение, по умолчанию false (source CSV).
 * @param stattype `varchar2`, входное значение, по умолчанию DATA (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param obj_filter_list `text`, входное значение, по умолчанию NULL (source CSV).
 * @param detail_level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @param format `varchar2`, входное значение, по умолчанию TEXT (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_gather_schema_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure gathers table and column (and index) statistics.
 * @details It attempts to parallelize as much of the work as possible, but there
 *          are some restrictions as described in the individual parameters.
 *          This operation will not parallelize if the user does not have select
 *          privilege on the table being analyzed.
 *          Input arguments:
 *          ownname - schema of table to analyze
 *          tabname - name of table
 *          partname - name of partition
 *          estimate_percent - Percentage of rows to estimate (NULL means compute).
 *          The valid range is [0.000001,100].  Use the constant
 *          DBMS_STATS.AUTO_SAMPLE_SIZE to have Oracle determine the
 *          appropriate sample size for good statistics. This is the default.
 *          The default value can be changed using set_param procedure.
 *          block_sample - whether or not to use random block sampling instead of
 *          random row sampling.  Random block sampling is more efficient, but
 *          if the data is not randomly distributed on disk then the sample values
 *          may be somewhat correlated.  Only pertinent when doing an estimate
 *          statistics.
 *          method_opt - method options of the following format
 *          method_opt  := FOR ALL [INDEXED | HIDDEN] COLUMNS [size_clause]
 *          FOR COLUMNS [size_clause]
 *          column|attribute [size_clause]
 *          [,column|attribute [size_clause] ... ]
 *          size_clause := SIZE [integer | auto | skewonly | repeat],
 *          where integer is between 1 and 2048
 *          column      := column name | extension name | extension
 *          default is FOR ALL COLUMNS SIZE AUTO.
 *          The default value can be changed using set_param procedure.
 *          Optimizer related table statistics are always gathered.
 *          If an extension is provided, the procedure create the extension if it
 *          does not exist already. Please refer to create_extended_stats for
 *          description of extension.
 *          degree - degree of parallelism (NULL means use of table default value
 *          which was specified by DEGREE clause in CREATE/ALTER TABLE statement)
 *          Use the constant DBMS_STATS.DEFAULT_DEGREE for the default value
 *          based on the initialization parameters.
 *          default for degree is NULL.
 *          The default value can be changed using set_param procedure.
 *          granularity - the granularity of statistics to collect (only pertinent
 *          if the table is partitioned)
 *          'AUTO' - the procedure determines what level of statistics to collect
 *          'GLOBAL AND PARTITION' - gather global- and partition-level statistics
 *          'APPROX_GLOBAL AND PARTITION' - This option is similar to
 *          'GLOBAL AND PARTITION'. But the global statistics are aggregated
 *          from partition level statistics. It will aggregate all statistics
 *          except number of distinct values for columns and number of distinct
 *          keys of indexes.  The existing histograms of the columns at the
 *          table level are also aggregated.  The global statistics are gathered
 *          (i.e., going back to GLOBAL AND PARTITION behaviour)
 *          if partname argument is null. The aggregation will use only
 *          partitions with statistics, so to get accurate global statistics,
 *          user has to make sure to have statistics for all partitions.
 *          This option is useful when you collect statistics for a new
 *          partition added into a range partitioned table (for example, a table
 *          partitioned by month).  The new data in the partition makes the
 *          global statistics stale (especially the min/max values of the
 *          partitioning column). This stale global statistics may cause
 *          suboptimal plans.  In this scenario, users can collect statistics
 *          for the newly added partition with 'APPROX_GLOBAL AND PARTITION'
 *          option so that the global statistics will reflect the newly added
 *          range.  This option will take less time than 'GLOBAL AND PARTITION'
 *          option since the global statistics are aggregated from underlying
 *          partition level statistics.  Note that, if you are using
 *          APPROX_GLOBAL AND PARTITION, you still  need to collect global
 *          statistics (with granularity = 'GLOBAL' option) when there is
 *          substantial amount of change at the table level.  For example you
 *          added 10% more data to the table.  This is needed to get the correct
 *          number of distinct values/keys statistic at table level.
 *          'SUBPARTITION' - gather subpartition-level statistics
 *          'PARTITION' - gather partition-level statistics
 *          'GLOBAL' - gather global statistics
 *          'ALL' - gather all (subpartition, partition, and global) statistics
 *          default for granularity is AUTO.
 *          The default value can be changed using set_param procedure.
 *          cascade - gather statistics on the indexes for this table.
 *          Use the constant DBMS_STATS.AUTO_CASCADE to have Oracle determine
 *          whether index stats to be collected or not. This is the default.
 *          The default value can be changed using set_param procedure.
 *          Using this option is equivalent to running the gather_index_stats
 *          procedure on each of the table's indexes.
 *          stattab - The user stat table identifier describing where to save
 *          the current statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          When the 'cascade' argument is specified, not pertinent with certain
 *          types of indexes described in the gather_index_stats section.
 *          force - gather statistics of table even if it is locked.
 *          context - internal use only.
 *          Exceptions:
 *          ORA-20000: Table does not exist or insufficient privileges
 *          ORA-20001: Bad input value
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_gather_table_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS bool), CAST(NULL
 *            AS varchar2), CAST(NULL AS number), CAST(NULL AS varchar2), CAST(NULL AS bool),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            bool), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param estimate_percent `number`, входное значение, по умолчанию 101 (source CSV / package constant DEFAULT_ESTIMATE_PERCENT).
 * @param block_sample `bool`, входное значение, по умолчанию false (source CSV).
 * @param method_opt `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_METHOD_OPT).
 * @param degree `number`, входное значение, по умолчанию 32766 (source CSV / package constant DEFAULT_DEGREE_VALUE).
 * @param granularity `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_GRANULARITY).
 * @param cascade `bool`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию DATA (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param options `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_OPTIONS).
 * @param detail_level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @param format `varchar2`, входное значение, по умолчанию TEXT (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_gather_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief ------------------------- report_single_stats_operation ---------------------
 * @details NAME:
 *          report_single_stats_operation
 *          DESCRIPTION: This procedure generates a report for the provided operation.
 *          PARAMETERS:
 *          opid          (IN) internal id of the operation that will be reported.
 *          This information may be obtained from the output of
 *          report_stats_operations or through querying
 *          DBA_OPTSTAT_OPERATIONS view.
 *          detail_level  (IN) detail level for the content of the report
 *          BASIC : The report includes:
 *          * operation id
 *          * operation name
 *          * operation target object
 *          * start time
 *          * end time
 *          * completion status (i.e., succeeded,
 *          failed, etc.)
 *          TYPICAL (default): In addition to the information provided at level
 *          BASIC, at this level of detail, the report includes individual
 *          target objects for which statistics are gathered in this
 *          operation. More specifically:
 *          -- operation related details --
 *          * total number of target objects
 *          * total number of successfully completed
 *          objects
 *          * total number of failed objects
 *          * total number of timedout objects
 *          (applies to only auto stats
 *          gathering)
 *          -- target object related details --
 *          * owner and name of each target object
 *          * target object type (e.g., table, index,
 *          etc.)
 *          * start time
 *          * end time
 *          * completion status
 *          ALL: In addition to the information provided at level TYPICAL,
 *          at this level of detail, the report includes further
 *          information on each target object as follows:
 *          -- operation related details --
 *          * job name (if the operation was run in a
 *          job)
 *          * session id
 *          * parameter values
 *          * additional error details if the operation
 *          has failed.
 *          -- target object related details --
 *          * job name
 *          * batching details
 *          * estimated cost
 *          * rank in the target list
 *          * columns for which histograms were
 *          collected
 *          * list of collected extended stats (if any)
 *          * reason for including the object in the
 *          target list (applies to only auto stats
 *          gathering)
 *          * additional error details if the task has
 *          failed.
 *          format        (IN) Report format. Suported formats are TEXT (default),
 *          HTML, XML.
 *          container_id  (IN) container (pluggable database) id in a consolidated
 *          database environment. By default it is null. In a
 *          pluggable-database, only operations from the local
 *          database are reported, and in the root database,
 *          operations from all pluggable databases are reported.
 *          NOTES:
 *          Note that some of the fields like estimated cost, batching details,
 *          job_name, etc. for individual tasks are only populated when the
 *          corresponding operation was run with concurrency enabled.
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_single_stats_operation(CAST(NULL AS number), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS number));
 * @param opid `number`, входное значение.
 * @param detail_level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @param format `varchar2`, входное значение, по умолчанию TEXT (source CSV).
 * @param container_id `number`, входное значение, по умолчанию NULL (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_single_stats_operation(PG_FUNCTION_ARGS);
/**
 * @brief ------------------------- report_stats_operations ---------------------------
 * @details NAME:
 *          report_stats_operations
 *          DESCRIPTION: This procedure reports statistics operations at different
 *          levels of detail with optional filters on the start time of
 *          operations.
 *          PARAMETERS:
 *          detail_level  (IN) detail level for the content of the report
 *          BASIC : The report includes:
 *          * operation id
 *          * operation name
 *          * operation target object
 *          * start time
 *          * end time
 *          * completion status (i.e., succeeded,
 *          failed, etc.)
 *          TYPICAL (default): In addition to the information provided at level
 *          BASIC, at this level of detail, the report includes the
 *          following fields:
 *          * total number of target objects
 *          * total number of successfully completed
 *          objects
 *          * total number of failed objects
 *          * total number of timedout objects
 *          (applies to only auto stats
 *          gathering)
 *          ALL: In addition to the information provided at level TYPICAL,
 *          at this level of detail, the report includes the following
 *          details.
 *          * job name (if the operation was run in a
 *          job)
 *          * session id
 *          * parameter values
 *          * additional error details if the operation
 *          has failed.
 *          format        (IN) Report format. Suported formats are TEXT (default),
 *          HTML, XML.
 *          latestN       (IN) Include in the report only latest N operations
 *          (if null (default), no limit on the number of
 *          operations included in the report).
 *          since         (IN) only include only stat operations that started since
 *          this date.  when null (default), no lower limit on
 *          start time is applied.
 *          until         (IN) only include stat operations that started before this
 *          date when null (default), no upper limit on start time
 *          is applied.
 *          auto_only     (IN)  TRUE: report only auto stats gathering operations
 *          FALSE: report all operations (default)
 *          container_ids (IN) When provided, the report will include operations only
 *          from the input set of pluggable databases in a
 *          consolidated database environment.  By default it is
 *          null. In a pluggable-database, only operations from
 *          the local database are reported, and in the root
 *          database, operations from all pluggable databases are
 *          reported.
 *          NOTES:
 *          Note that the type for container_ids input parameter is
 *          dbms_utility.number_array which is an associative PL/SQL array
 *          collection.  Although associative array type allows for more flexible
 *          hash table-like organization of entries, this function treats
 *          container_ids as a regular table collection with the first id located at
 *          index 1 and the last id located at index "container_ids.count" without
 *          any empty array slot left between any two ids. An example for 3
 *          container ids is provided below.
 *          declare
 *          conid_tab dbms_utility.number_array;
 *          report clob;
 *          begin
 *          conid_tab(1) := 124;
 *          conid_tab(2) := 63;
 *          conid_tab(3) := 98;
 *          report := dbms_stats.report_stats_operations(container_ids =>
 *          conid_tab);
 *          end;
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_report_stats_operations(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS number), CAST(NULL AS text), CAST(NULL AS text), CAST(NULL AS
 *            bool), CAST(NULL AS text));
 * @param detail_level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @param format `varchar2`, входное значение, по умолчанию TEXT (source CSV).
 * @param latestn `number`, входное значение, по умолчанию NULL (source CSV).
 * @param since `text`, входное значение, по умолчанию NULL (source CSV).
 * @param until `text`, входное значение, по умолчанию NULL (source CSV).
 * @param auto_only `bool`, входное значение, по умолчанию false (source CSV).
 * @param container_ids `text`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_report_stats_operations(PG_FUNCTION_ARGS);
/**
 * @brief -------------------------- script_advisor_task ------------------------------
 * @details NAME:
 *          script_advisor_task
 *          DESCRIPTION:
 *          Gets the script that implements the recommended actions for the
 *          problems found by the statistics advisor.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the advisor task
 *          execution_name:     (IN) - A name to qualify and identify an execution.
 *          If not specified, the latest execution of the
 *          given task is used.
 *          dir_name            (IN) - Directory path to write the generated script to.
 *          If not specified (NULL), the script will only
 *          be put in the CLOB returned with this function.
 *          If dir_name is specified, the script will be
 *          both returned as a clob as well as a new file
 *          in the given directory.
 *          level               (IN) - The level of the script to generate. Possible
 *          values are:
 *          'ALL' -> ignore the filter and generate script
 *          for all findings
 *          'TYPICAL' -> generate script according to the
 *          filters in place
 *          RETURNS:
 *          A CLOB that contains the script.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_script_advisor_task(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param execution_name `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param dir_name `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param level `varchar2`, входное значение, по умолчанию TYPICAL (source CSV).
 * @return `clob` — return_value.
 */
Datum dbms_stats_script_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief This function is very similar to the function above but creates statistics
 * @details extension based on the column group usage recorded by seed_col_usage
 *          procedure. This function returns a report of extensions created.
 *          Parameters:
 *          ownname       -- owner name of a table. If null, all schemas in the
 *          database.
 *          tabname       -- table name. If null, creates statistics extensions
 *          for all tables of ownname.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_show_extended_stats_name(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param extension `varchar2`, входное значение.
 * @return `varchar2` — return_value.
 */
Datum dbms_stats_show_extended_stats_name(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to import the statistics preferences of
 * @details all the tables, excluding the tables owned by Oracle. These
 *          tables can by included by passing TRUE for the add_sys parameter.
 *          To run this procedure, you need to have the SYSDBA role OR both
 *          ANALYZE ANY DICTIONARY and ANALYZE ANY system privileges.
 *          Input arguments:
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid  - (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab
 *          add_sys - value TRUE will include the Oracle-owned tables
 *          Examples:
 *          dbms_stats.import_database_prefs('MY_STAT_TAB', statown=>'SH');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_to_no_invalidate_type(CAST(NULL AS varchar2));
 * @param no_invalidate `varchar2`, входное значение.
 * @return `bool` — return_value.
 */
Datum dbms_stats_to_no_invalidate_type(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_varray_to_clob.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_varray_to_clob(CAST(NULL AS text));
 * @param va `text`, входное значение.
 * @return `clob` — return_value.
 */
Datum dbms_stats_varray_to_clob(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.CCTX_SIZE.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 30.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_cctx_size() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_cctx_size(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.AUTO_SAMPLE_SIZE.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 0.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_auto_sample_size() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_auto_sample_size(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_DEGREE.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 32767.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_degree() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_default_degree(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.AUTO_DEGREE.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 32768.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_auto_degree() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_auto_degree(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.AUTO_TABLE_CACHED_BLOCKS.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 0.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_auto_table_cached_blocks() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_auto_table_cached_blocks(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_DEGREE_VALUE.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 32766.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_degree_value() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_default_degree_value(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_ESTIMATE_PERCENT.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 101.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_estimate_percent() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_default_estimate_percent(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_METHOD_OPT.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 'Z'.
 *          Причина промоушена: явная строковая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_method_opt() FROM dual;
 * @return `varchar2`.
 */
Datum dbms_stats_default_method_opt(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_GRANULARITY.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 'Z'.
 *          Причина промоушена: явная строковая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_granularity() FROM dual;
 * @return `varchar2`.
 */
Datum dbms_stats_default_granularity(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_PUBLISH.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: true.
 *          Причина промоушена: явная булева константа.
 *          Примеры:
 *            SELECT dbms_stats_default_publish() FROM dual;
 * @return `bool`.
 */
Datum dbms_stats_default_publish(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_INCREMENTAL.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: false.
 *          Причина промоушена: явная булева константа.
 *          Примеры:
 *            SELECT dbms_stats_default_incremental() FROM dual;
 * @return `bool`.
 */
Datum dbms_stats_default_incremental(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_STALE_PERCENT.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 10.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_stale_percent() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_default_stale_percent(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_AUTOSTATS_TARGET.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 'Z'.
 *          Причина промоушена: явная строковая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_autostats_target() FROM dual;
 * @return `varchar2`.
 */
Datum dbms_stats_default_autostats_target(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_STAT_CATEGORY.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 'Z'.
 *          Причина промоушена: явная строковая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_stat_category() FROM dual;
 * @return `varchar2`.
 */
Datum dbms_stats_default_stat_category(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_DEL_STAT_CATEGORY.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 'OBJECT_STATS, SYNOPSES, REALTIME_STATS, MODELS'.
 *          Причина промоушена: явная строковая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_del_stat_category() FROM dual;
 * @return `varchar2`.
 */
Datum dbms_stats_default_del_stat_category(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_OPTIONS.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 'Z'.
 *          Причина промоушена: явная строковая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_options() FROM dual;
 * @return `varchar2`.
 */
Datum dbms_stats_default_options(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_ROOT_TRIGGER_PDB.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: false.
 *          Причина промоушена: явная булева константа.
 *          Примеры:
 *            SELECT dbms_stats_default_root_trigger_pdb() FROM dual;
 * @return `bool`.
 */
Datum dbms_stats_default_root_trigger_pdb(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_COORD_TRIGGER_SHARD.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: false.
 *          Причина промоушена: явная булева константа.
 *          Примеры:
 *            SELECT dbms_stats_default_coord_trigger_shard() FROM dual;
 * @return `bool`.
 */
Datum dbms_stats_default_coord_trigger_shard(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.ADD_GLOBAL_PREFS.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 1.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_add_global_prefs() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_add_global_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_AUTO_TASK_STATUS.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 'OFF'.
 *          Причина промоушена: явная строковая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_auto_task_status() FROM dual;
 * @return `varchar2`.
 */
Datum dbms_stats_default_auto_task_status(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_AUTO_TASK_MAX_RUN_TIME.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 3600.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_auto_task_max_run_time() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_default_auto_task_max_run_time(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_AUTO_TASK_INTERVAL.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 900.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_default_auto_task_interval() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_default_auto_task_interval(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DEFAULT_AUTO_ADVISOR_TASK.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: true.
 *          Причина промоушена: явная булева константа.
 *          Примеры:
 *            SELECT dbms_stats_default_auto_advisor_task() FROM dual;
 * @return `bool`.
 */
Datum dbms_stats_default_auto_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.DP_OPTIONS_FULL.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: ADD_GLOBAL_PREFS.
 *          Alias/compatibility value указывает на ADD_GLOBAL_PREFS.
 *          Причина промоушена: простой alias к ADD_GLOBAL_PREFS.
 *          Примеры:
 *            SELECT dbms_stats_dp_options_full() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_dp_options_full(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает значение константы DBMS_STATS.UPDATE_GLOBAL_STATS.
 * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function.
 *          Исходное значение: 8.
 *          Причина промоушена: явная числовая константа.
 *          Примеры:
 *            SELECT dbms_stats_update_global_stats() FROM dual;
 * @return `int4`.
 */
Datum dbms_stats_update_global_stats(PG_FUNCTION_ARGS);
/**
 * @brief Возвращает версию RUDB пакета DBMS_STATS.
 * @details Version: 1.0.0.
 *          Это синтетическая zero-arg SQL function, которую генератор добавляет в каждый новый
 *          пакет.
 *          Примеры:
 *            SELECT dbms_stats_get_version();
 * @return `text` — return_value.
 */
Datum dbms_stats_get_version(PG_FUNCTION_ARGS);
/**
 * @brief Generated mock stub для DBMS_STATS.MOCK.
 * @details Это checkpoint-заглушка пакета, а не реализованная service function.
 *          Генератор создаёт только контракт и каркас; поведение должно быть реализовано вручную.
 *          Примеры:
 *            SELECT dbms_stats_mock();
 * @return `text` — return_value.
 */
Datum dbms_stats_mock(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_alter_database_tab_monitoring.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_alter_database_tab_monitoring(CAST(NULL AS bool), CAST(NULL AS bool));
 * @param monitoring `bool`, входное значение, по умолчанию true (source CSV).
 * @param sysobjs `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_alter_database_tab_monitoring(PG_FUNCTION_ARGS);
/**
 * @brief Flush in-memory monitoring information for all the tables to the dictionary.
 * @details Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_alter_schema_tab_monitoring(CAST(NULL AS varchar2), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param monitoring `bool`, входное значение, по умолчанию true (source CSV).
 */
Datum dbms_stats_alter_schema_tab_monitoring(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to purge old versions of statistics
 * @details saved in dictionary
 *          To run this procedure, you must have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          before_timestamp - versions of statistics saved before this timestamp
 *          will be purged. if null, it uses the purging policy
 *          used by automatic purge. The automatic purge deletes all
 *          history older than
 *          min(current time - stats history retention,
 *          time of recent analyze in the system - 1).
 *          stats history retention value can be changed using
 *          alter_stats_history_retention procedure.
 *          The default is 31 days.
 *          When before_timestamp is specified as DBMS_STATS.PURGE_ALL, all stats
 *          history tables are truncated. Please note that interrupting
 *          (e.g., hitting Ctrl-C) purge_stats while it is running with PURGE_ALL
 *          option may lead to inconsistencies. Hence, please avoid interrupting
 *          purge_stats manually.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or inconsistent values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_alter_stats_history_retention(CAST(NULL AS number));
 * @param retention `number`, входное значение.
 */
Datum dbms_stats_alter_stats_history_retention(PG_FUNCTION_ARGS);
/**
 * @brief ------------------------- cancel_advisor_task -------------------------------
 * @details NAME:
 *          cancel_advisor_task
 *          DESCRIPTION:
 *          Cancels a statistics advisor task execution. All intermediate results
 *          of the current execution will be removed from the task.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_cancel_advisor_task(CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 */
Datum dbms_stats_cancel_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_cleanup_stats_job_proc.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_cleanup_stats_job_proc(CAST(NULL AS number), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS number));
 * @param ctx `number`, входное значение.
 * @param job_owner `varchar2`, входное значение.
 * @param job_name `varchar2`, входное значение.
 * @param sesid `number`, входное значение.
 * @param sesser `number`, входное значение.
 */
Datum dbms_stats_cleanup_stats_job_proc(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_value.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT * FROM dbms_stats_convert_raw_value(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `record`: resval_varchar2 `varchar2` (может быть NULL для source overloads, где поля нет),
 *                   resval_date `date` (может быть NULL для source overloads, где поля нет), resval_number
 *                   `number` (может быть NULL для source overloads, где поля нет), resval_binary_float
 *                   `binary_float` (может быть NULL для source overloads, где поля нет),
 *                   resval_binary_double `binary_double` (может быть NULL для source overloads, где поля
 *                   нет)
 */
Datum dbms_stats_convert_raw_value(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_value_nvarchar.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_value_nvarchar(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `nvarchar2` — resval.
 */
Datum dbms_stats_convert_raw_value_nvarchar(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_convert_raw_value_rowid.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_convert_raw_value_rowid(CAST(NULL AS raw));
 * @param rawval `raw`, входное значение.
 * @return `rowid` — resval.
 */
Datum dbms_stats_convert_raw_value_rowid(PG_FUNCTION_ARGS);
/**
 * @brief This function returns oldest timestamp where stats history
 * @details is available.
 *          Users can not restore stats to timestamp older than  this one.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_copy_table_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS
 *            number), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param srcpartname `varchar2`, входное значение.
 * @param dstpartname `varchar2`, входное значение.
 * @param scale_factor `number`, входное значение, по умолчанию 1 (source CSV).
 * @param flags `number`, входное значение, по умолчанию 0 (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_copy_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief Deletes statistics for an entire database
 * @details Input arguments:
 *          stattab - The user stat table identifier describing from where
 *          to delete the statistics.  If stattab is null, the statistics
 *          will be deleted directly in the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          statown - The schema containing stattab.
 *          If stattab is not null and statown is null, it is assumed that
 *          every schema in the database contains a user statistics table
 *          with the name stattab.
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          stattype - The type of statistics to be deleted
 *          ALL   - both data and cache statistics will be deleted
 *          CACHE - only cache statistics will be deleted
 *          force - Ignores the statistics lock on objects and delete
 *          the statistics if set to TRUE.
 *          stat_category - what statistics to delete. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. The default is 'OBJECT_STATS, SYNOPSES'
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          This set of procedures enable the transferrance of statistics
 *          from the dictionary to a user stat table (export_*) and from a user
 *          stat table to the dictionary (import_*).
 *          The procedures are:
 *          create_stat_table
 *          drop_stat_table
 *          upgrade_stat_table
 *          export_column_stats
 *          export_index_stats
 *          export_table_stats
 *          export_schema_stats
 *          export_database_stats
 *          export_system_stats
 *          export_fixed_objects_stats
 *          export_dictionary_stats
 *          import_column_stats
 *          import_index_stats
 *          import_table_stats
 *          import_schema_stats
 *          import_database_stats
 *          import_system_stats
 *          import_fixed_objects_stats
 *          import_dictionary_stats
 *          Notes:
 *          We do not support export/import of stats across databases of
 *          different character sets.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_create_stat_table(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param tblspace `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param global_temporary `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_create_stat_table(PG_FUNCTION_ARGS);
/**
 * @brief Gets all table-related information
 * @details Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table to which this column belongs
 *          partname - The name of the table partition from which to get
 *          the statistics.  If the table is partitioned and partname
 *          is null, the statistics will be retrieved from the global table
 *          level.
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.  If stattab is null, the statistics
 *          will be retrieved directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          statown - The schema containing stattab (if different then ownname)
 *          realtime_stats - Whether to combine with real-time table stats
 *          Output arguments:
 *          numrows - Number of rows in the table (partition)
 *          numblks - Number of blocks the table (partition) occupies
 *          avgrlen - Average row length for the table (partition)
 *          im_imcu_count - Number of IMCUs for inmemory table
 *          im_block_count - Number of inmemory blocks for inmemory table
 *          scanrate - Scan rate of the table
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges or
 *          no statistics have been stored for requested object
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_column_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS
 *            bool), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param colname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param cascade_parts `bool`, входное значение, по умолчанию true (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param col_stat_type `varchar2`, входное значение, по умолчанию ALL (source CSV).
 */
Datum dbms_stats_delete_column_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to set the statistics preferences of all
 * @details the tables, excluding the tables owned by Oracle. These tables
 *          can by included by passing TRUE for the add_sys parameter.
 *          To run this procedure, you need to have the SYSDBA role OR both
 *          ANALYZE ANY DICTIONARY and ANALYZE ANY system privileges.
 *          Input arguments:
 *          pname   - preference name
 *          The default value for following preferences can be set.
 *          CASCADE
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          PUBLISH
 *          INCREMENTAL
 *          INCREMENTAL_LEVEL
 *          INCREMENTAL_STALENESS
 *          GLOBAL_TEMP_TABLE_STATS
 *          STALE_PERCENT
 *          TABLE_CACHED_BLOCKS
 *          OPTIONS
 *          STAT_CATEGORY
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          APPROXIMATE_NDV_ALGORITHM
 *          AUTO_STAT_EXTENSIONS
 *          ROOT_TRIGGER_PDB
 *          COORDINATOR_TRIGGER_SHARD
 *          AUTO_STATS_ADVISOR_TASK
 *          pvalue  - preference value.
 *          if null is specified, it will set the oracle default value.
 *          add_sys - value TRUE will include the Oracle-owned tables
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes,
 *          even when they represent numbers.
 *          Examples:
 *          dbms_stats.set_database_prefs('CASCADE', 'DBMS_STATS.AUTO_CASCADE');
 *          dbms_stats.set_database_prefs('ESTIMATE_PERCENT','9');
 *          dbms_stats.set_database_prefs('DEGREE','99');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or Illegal input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_database_prefs(CAST(NULL AS varchar2), CAST(NULL AS bool));
 * @param pname `varchar2`, входное значение.
 * @param add_sys `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_delete_database_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Deletes statistics for a schema
 * @details Input arguments:
 *          ownname - The name of the schema
 *          stattab - The user stat table identifier describing from where
 *          to delete the statistics.  If stattab is null, the statistics
 *          will be deleted directly in the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          stattype - The type of statistics to be deleted
 *          ALL   - both data and cache statistics will be deleted
 *          CACHE - only cache statistics will be deleted
 *          force - Ignores the statistics lock on objects and delete
 *          the statistics if set to TRUE.
 *          stat_category - what statistics to delete. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. The default is 'OBJECT_STATS, SYNOPSES'
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_database_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS bool),
 *            CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию ALL (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию OBJECT_STATS, SYNOPSES, REALTIME_STATS, MODELS (source CSV / package constant DEFAULT_DEL_STAT_CATEGORY).
 */
Datum dbms_stats_delete_database_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure runs gather_dictionary_stats in reporting mode. That is,
 * @details stats are not actually collected, but all the objects that will be
 *          affected when gather_dictionary_stats is invoked are reported.
 *          The detail level for the report is defined by the detail_level
 *          input parameter. Please see the comments for report_single_stats_operation
 *          on possible values for detail_level and format.
 *          For all other input parameters, please see the comments on
 *          gather_dictionary_stats.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_dictionary_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS bool),
 *            CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию ALL (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию OBJECT_STATS, SYNOPSES, REALTIME_STATS, MODELS (source CSV / package constant DEFAULT_DEL_STAT_CATEGORY).
 */
Datum dbms_stats_delete_dictionary_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure runs gather_fixed_objects_stats in reporting mode. That is,
 * @details stats are not actually collected, but all the objects that will be
 *          affected when gather_fixed_objects_stats is invoked are reported.
 *          The detail level for the report is defined by the detail_level
 *          input parameter. Please see the comments for report_single_stats_operation
 *          on possible values for detail_level and format.
 *          For all other input parameters, please see the comments on
 *          gather_fixed_objects_stats.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_fixed_objects_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool));
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_delete_fixed_objects_stats(PG_FUNCTION_ARGS);
/**
 * @brief Deletes column-related statistics
 * @details Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table to which this column belongs
 *          colname - The name of the column or extension
 *          partname - The name of the table partition for which to delete
 *          the statistics.  If the table is partitioned and partname
 *          is null, global column statistics will be deleted.
 *          stattab - The user stat table identifier describing from where
 *          to delete the statistics.  If stattab is null, the statistics
 *          will be deleted directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          cascade_parts - If the table is partitioned and partname is null,
 *          setting this to true will cause the deletion of statistics for
 *          this column for all underlying partitions as well.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - delete statistics even if it is locked
 *          col_stat_type - Type of column statitistics to be deleted.
 *          This argument takes the following values:
 *          'HISTOGRAM' - delete column histogram only
 *          'ALL' - delete base column stats and histogram
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_index_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            bool), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS
 *            bool));
 * @param ownname `varchar2`, входное значение.
 * @param indname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param cascade_parts `bool`, входное значение, по умолчанию true (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию ALL (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_delete_index_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to export the statistics gathered and stored
 * @details as pending.
 *          Stats of any table that is protected in DV from the user will NOT be
 *          exported
 *          If the parameter TABNAME is null then export applies to all tables
 *          of the specified schema.
 *          The default owner/schema is the user who runs the procedure.
 *          To run this procedure, you need to have the SYSDBA role OR both
 *          ANALYZE ANY DICTIONARY and ANALYZE ANY system privileges.
 *          Input arguments:
 *          ownname - owner name
 *          tabname - table name
 *          stattab - statistics table name where to export the statistics
 *          statid  - (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different from ownname)
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.export_pending_stats(null, null, 'MY_STAT_TAB');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_pending_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param tabname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_delete_pending_stats(PG_FUNCTION_ARGS);
/**
 * @brief Ths procedure is used to export the system statistics that has been
 * @details gathered and stored as pending to the specified table.
 *          To run this procedure, you need to have the gather_system_statistics role.
 *          Input arguments:
 *          stattab - statistics table name where to export the statistics. Stattab
 *          cannot be null.
 *          statid  - (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab. If null, then it defaults to
 *          the current user
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.export_pending_system_stats('MY_STAT_TAB', null, null);
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_pending_system_stats();
 */
Datum dbms_stats_delete_pending_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief -----------------------------------------------------------------------
 * @details procedure delete_processing_rate
 *          -----------------------------------------------------------------------
 *          deletes the processing rate of a given stat source. If the source is not
 *          specified, then it deletes the statistics of all the sources
 *          Input arguments:
 *          stat_source - the source of processing rates can be 'MANUAL' or
 *          'CALIBRATION'
 *          Output arguments: None
 *          Privileges: The user issuing should have the role optimizer_processing_rate
 *          or dba
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or inconsistent input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_processing_rate(CAST(NULL AS varchar2));
 * @param stat_source `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_delete_processing_rate(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to set the statistics preferences of all
 * @details the tables owned by the specified owner name.
 *          To run this procedure, you need to connect as owner, have the SYSDBA
 *          privilege, OR have the ANALYZE ANY system privilege
 *          Input arguments:
 *          ownname - owner name
 *          pname   - preference name
 *          The default value for following preferences can be set.
 *          CASCADE
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          PUBLISH
 *          INCREMENTAL
 *          INCREMENTAL_LEVEL
 *          INCREMENTAL_STALENESS
 *          GLOBAL_TEMP_TABLE_STATS
 *          STALE_PERCENT
 *          TABLE_CACHED_BLOCKS
 *          OPTIONS
 *          STAT_CATEGORY
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          APPROXIMATE_NDV_ALGORITHM
 *          AUTO_STAT_EXTENSIONS
 *          ROOT_TRIGGER_PDB
 *          COORDINATOR_TRIGGER_SHARD
 *          AUTO_STATS_ADVISOR_TASK
 *          pvalue  - preference value.
 *          if null is specified, it will set the oracle default value.
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes,
 *          even when they represent numbers
 *          Examples:
 *          dbms_stats.set_schema_prefs('SH', 'CASCADE',
 *          'DBMS_STATS.AUTO_CASCADE');
 *          dbms_stats.set_schema_prefs('SH' 'ESTIMATE_PERCENT','9');
 *          dbms_stats.set_schema_prefs('SH', 'DEGREE','99');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20000: Schema "<schema>" does not exist
 *          ORA-20001: Invalid or Illegal input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_schema_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param pname `varchar2`, входное значение.
 */
Datum dbms_stats_delete_schema_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Deletes table-related statistics
 * @details Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table to which this column belongs
 *          partname - The name of the table partition from which to get
 *          the statistics.  If the table is partitioned and partname
 *          is null, the statistics will be retrieved from the global table
 *          level.
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.  If stattab is null, the statistics
 *          will be retrieved directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          cascade_parts - If the table is partitioned and partname is null,
 *          setting this to true will cause the deletion of statistics for
 *          this table for all underlying partitions as well.
 *          cascade_columns - Indicates that delete_column_stats should be
 *          called for all underlying columns (passing the cascade_parts
 *          parameter).
 *          cascade_indexes - Indicates that delete_index_stats should be
 *          called for all underlying indexes (passing the cascade_parts
 *          parameter).
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - delete the statistics even if it is locked
 *          stat_category - what statistics to delete. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. The default is 'OBJECT_STATS, SYNOPSES'
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_schema_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию ALL (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию OBJECT_STATS, SYNOPSES, REALTIME_STATS, MODELS (source CSV / package constant DEFAULT_DEL_STAT_CATEGORY).
 */
Datum dbms_stats_delete_schema_stats(PG_FUNCTION_ARGS);
/**
 * @brief Input arguments:
 * @details pname - parameter name to set
 *          pvalue   - parameter value to set
 *          stattab - The user stat table identifier describing from where to get
 *          the current statistics info. If stattab is null, the statistics info
 *          will be obtained directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Invalid input value
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20003: Unable to set system statistics
 *          ORA-20004: Parameter doesn't exist
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_system_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_delete_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to set the statistics preferences of the
 * @details specified table in the specified schema.
 *          To run this procedure, you need to connect as owner of the table
 *          or be granted ANALYZE ANY system privilege.
 *          Input arguments:
 *          ownname - owner name
 *          tabname - table name
 *          pname   - preference name
 *          The default value for following preferences can be set.
 *          CASCADE
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          PUBLISH
 *          INCREMENTAL
 *          INCREMENTAL_LEVEL
 *          INCREMENTAL_STALENESS
 *          GLOBAL_TEMP_TABLE_STATS
 *          STALE_PERCENT
 *          TABLE_CACHED_BLOCKS
 *          OPTIONS
 *          STAT_CATEGORY
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          APPROXIMATE_NDV_ALGORITHM
 *          AUTO_STAT_EXTENSIONS
 *          ROOT_TRIGGER_PDB
 *          COORDINATOR_TRIGGER_SHARD
 *          AUTO_STATS_ADVISOR_TASK
 *          pvalue  - preference value.
 *          if null is specified, it will set the oracle default value.
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes,
 *          even when they represent numbers
 *          Examples:
 *          dbms_stats.set_table_prefs('SH', 'SALES', 'CASCADE',
 *          'DBMS_STATS.AUTO_CASCADE');
 *          dbms_stats.set_table_prefs('SH', 'SALES', 'ESTIMATE_PERCENT','9');
 *          dbms_stats.set_table_prefs('SH', 'SALES', 'DEGREE','99');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or Illegal input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_table_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param pname `varchar2`, входное значение.
 */
Datum dbms_stats_delete_table_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Deletes index-related statistics
 * @details Input arguments:
 *          ownname - The name of the schema
 *          indname - The name of the index
 *          partname - The name of the index partition for which to delete
 *          the statistics.  If the index is partitioned and partname
 *          is null, index statistics will be deleted at the global level.
 *          stattab - The user stat table identifier describing from where
 *          to delete the statistics.  If stattab is null, the statistics
 *          will be deleted directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          cascade_parts - If the index is partitioned and partname is null,
 *          setting this to true will cause the deletion of statistics for
 *          this index for all underlying partitions as well.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - delete the statistics even if it is locked
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_delete_table_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            bool), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS
 *            bool), CAST(NULL AS bool), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param cascade_parts `bool`, входное значение, по умолчанию true (source CSV).
 * @param cascade_columns `bool`, входное значение, по умолчанию true (source CSV).
 * @param cascade_indexes `bool`, входное значение, по умолчанию true (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию OBJECT_STATS, SYNOPSES, REALTIME_STATS, MODELS (source CSV / package constant DEFAULT_DEL_STAT_CATEGORY).
 */
Datum dbms_stats_delete_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief ------------------------- drop_advisor_task ---------------------------------
 * @details NAME:
 *          drop_advisor_task
 *          DESCRIPTION:
 *          drops the statistics advisor task.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_drop_advisor_task(CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 */
Datum dbms_stats_drop_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief This function returns the name of the statistics entry that is created for
 * @details the user specified extension. It raises error if no extension is created
 *          yet
 *          Parameters:
 *          ownname      -- owner name of a table
 *          tabname      -- table name
 *          extension    -- can be either a column group or an expression
 *          (see description in create_extended_stats)
 *          Exceptions:
 *          ORA-20000: Insufficient privileges or extension does not exist.
 *          ORA-20001: Error when processing extension
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_drop_extended_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param extension `varchar2`, входное значение.
 */
Datum dbms_stats_drop_extended_stats(PG_FUNCTION_ARGS);
/**
 * @brief Drops the user statistics table 'stattab' from schema 'ownname'
 * @details NAME:
 *          drop_stat_table
 *          DESCRIPTION:
 *          Drops a user statistics table created by create_stat_table.
 *          Input arguments:
 *          ownname - The name of the schema (NULL means current schema).
 *          stattab - The user statistics table identifier.
 *          Exceptions:
 *          ORA-20000: Table does not exist or insufficient privileges.
 *          Примеры:
 *            SELECT dbms_stats_drop_stat_table(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 */
Datum dbms_stats_drop_stat_table(PG_FUNCTION_ARGS);
/**
 * @brief The procedure remaps the names of objects in the user stat table. It allows
 * @details to import the statistics to objects with same definition but with different
 *          names.
 *          Input arguments:
 *          ownname - The owner of the user stat table (NULL means current schema).
 *          stattab - The user stat table identifier.
 *          src_own - Owner of the table to be renamed. This argument can not be null.
 *          src_tab - Name of the table to be renamed.
 *          If null, all tables owned by src_own.
 *          tgt_own - New name of the owner of the table. The owner name is updated
 *          for the dependend objects like columns and indexes as well. Note
 *          that a index of src_tab not owned by src_own is not renamed.
 *          This argument can not be null.
 *          tgt_tab - New name of the table. This argument is valid only if src_tab
 *          is not null.
 *          Examples:
 *          The following statement remap all objects of sh to shsave in user stat
 *          table sh.ustat
 *          dbms_stats.remap_stat_table('sh', 'ustat', 'sh', null, 'shsave', null);
 *          The following statement can be used to import statistics into objects of
 *          shsave once the above remap procedure is completed.
 *          dbms_stats.import_schema_stats('shsave', 'ustat', statown => 'sh');
 *          The following statement remaps sh.customers ->shsave.customers_sav.
 *          dbms_stats.remap_stat_table('sh', 'ustat', 'sh', 'customers',
 *          'shsave', 'customers_sav');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid input
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_column_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param colname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_column_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to delete the statistics preferences of
 * @details all the tables, excluding the tables owned by Oracle. These
 *          tables can by included by passing TRUE for the add_sys parameter.
 *          To run this procedure, you need to have the SYSDBA role OR both
 *          ANALYZE ANY DICTIONARY and ANALYZE ANY system privileges.
 *          Input arguments:
 *          pname   - preference name
 *          The default value for following preferences can be deleted.
 *          CASCADE
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          PUBLISH
 *          INCREMENTAL
 *          INCREMENTAL_LEVEL
 *          INCREMENTAL_STALENESS
 *          GLOBAL_TEMP_TABLE_STATS
 *          STALE_PERCENT
 *          TABLE_CACHED_BLOCKS
 *          OPTIONS
 *          STAT_CATEGORY
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          APPROXIMATE_NDV_ALGORITHM
 *          AUTO_STAT_EXTENSIONS
 *          ROOT_TRIGGER_PDB
 *          COORDINATOR_TRIGGER_SHARD
 *          AUTO_STATS_ADVISOR_TASK
 *          add_sys - value TRUE will include the Oracle-owned tables
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.delete_database_prefs('CASCADE', false);
 *          dbms_stats.delete_database_prefs('ESTIMATE_PERCENT',true);
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or Illegal input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_database_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS bool));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param add_sys `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_export_database_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for all objects in the schema identified
 * @details by ownname and stores them in the user stat table identified
 *          by stattab
 *          Stats of any table that is protected in DV from the user will NOT be
 *          exported
 *          Input arguments:
 *          ownname - The name of the schema
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different from ownname)
 *          stat_category - what statistics to export. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. However SYNOPSES can only be exported along with
 *          OBJECT_STATS. Therefore only valid combinations are
 *          OBJECT_STATS
 *          OBJECT_STATS, SYNOPSES
 *          The default value is OBJECT_STATS that can be changed using statistics
 *          preference.
 *          as_of_timestamp - The timestamp at which the statistics were active
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_database_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_STAT_CATEGORY).
 */
Datum dbms_stats_export_database_stats(PG_FUNCTION_ARGS);
/**
 * @brief Deletes statistics for all dictionary schemas ('SYS', 'SYSTEM' and
 * @details RDBMS component schemas)
 *          To run this procedure, you must have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          stattab - The user stat table identifier describing from where
 *          to delete the statistics.  If stattab is null, the statistics
 *          will be deleted directly in the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          statown - The schema containing stattab (if different from current schema)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          stattype - The type of statistics to be deleted
 *          ALL   - both data and cache statistics will be deleted
 *          CACHE - only cache statistics will be deleted
 *          force - Ignores the statistics lock on objects and delete
 *          the statistics if set to TRUE.
 *          stat_category - what statistics to delete. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. The default is 'OBJECT_STATS, SYNOPSES'
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_dictionary_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_STAT_CATEGORY).
 */
Datum dbms_stats_export_dictionary_stats(PG_FUNCTION_ARGS);
/**
 * @brief Deletes statistics for fixed tables
 * @details To run this procedure, you must have the SYSDBA or ANALYZE ANY DICTIONARY
 *          system privilege.
 *          Input arguments:
 *          stattab - The user stat table identifier describing from where
 *          to delete the statistics.  If stattab is null, the statistics
 *          will be deleted directly in the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - Ignores the statistics lock on objects and delete
 *          the statistics if set to TRUE.
 *          Exceptions:
 *          ORA-20000: insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_fixed_objects_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_fixed_objects_stats(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for a particular column and stores them in the user
 * @details stat table identified by stattab
 *          To run this procedure, you need to
 *          1. connect as owner of the table or be granted ANALYZE ANY system privilege
 *          AND
 *          2. the table is NOT protected in DV from you.
 *          Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table to which this column belongs
 *          colname - The name of the column or extension
 *          partname - The name of the table partition.  If the table is
 *          partitioned and partname is null, global and partition column
 *          statistics will be exported.
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_index_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param indname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_index_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to publish the statistics gathered and stored
 * @details as pending.
 *          If the parameter TABNAME is null then publish applies to all tables
 *          of the specified schema.
 *          The default owner/schema is the user who runs the procedure.
 *          To run this procedure, you need to have the privilge to collect stats
 *          for the tables that will be touched by this procedure.
 *          Input arguments:
 *          ownname - owner name
 *          tabname - table name
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force   - to override the lock (TRUE will override the lock).
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.publish_pending_stats('SH', null);
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_pending_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param tabname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_pending_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to publish the system statistics which has been
 * @details gathered and stored as pending.
 *          To run this procedure, you need to have the gather_system_statistics role.
 *          Input argument:
 *          None.
 *          Examples:
 *          dbms_stats.publish_pending_system_stats;
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_pending_system_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_pending_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to delete the statistics preferences of all
 * @details the tables owned by the specified owner name.
 *          To run this procedure, you need to connect as owner, have the SYSDBA
 *          privilege, OR have the ANALYZE ANY system privilege
 *          Input arguments:
 *          ownname - owner name
 *          pname   - preference name
 *          The default value for following preferences can be deleted.
 *          CASCADE
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          PUBLISH
 *          INCREMENTAL
 *          INCREMENTAL_LEVEL
 *          INCREMENTAL_STALENESS
 *          GLOBAL_TEMP_TABLE_STATS
 *          STALE_PERCENT
 *          TABLE_CACHED_BLOCKS
 *          OPTIONS
 *          STAT_CATEGORY
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          APPROXIMATE_NDV_ALGORITHM
 *          AUTO_STAT_EXTENSIONS
 *          ROOT_TRIGGER_PDB
 *          COORDINATOR_TRIGGER_SHARD
 *          AUTO_STATS_ADVISOR_TASK
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.delete_schema_prefs('SH', 'CASCADE');
 *          dbms_stats.delete_schema_prefs('SH', 'ESTIMATE_PERCENT');
 *          dbms_stats.delete_schema_prefs('SH', 'DEGREE');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20000: Schema "<schema>" does not exist
 *          ORA-20001: Invalid or Illegal input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_schema_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_schema_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for a particular table and stores them
 * @details in the user stat table.
 *          To run this procedure, you need to
 *          1. connect as owner of the table or be granted ANALYZE ANY system privilege
 *          AND
 *          2. the table is NOT protected in DV from you.
 *          Cascade will result in all index and column stats associated
 *          with the specified table being exported as well.
 *          Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table
 *          partname - The name of the table partition.  If the table is
 *          partitioned and partname is null, global and partition table
 *          statistics will be exported.
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          cascade - If true, column and index statistics for this table
 *          will also be exported.
 *          statown - The schema containing stattab (if different from ownname)
 *          stat_category - what statistics to export. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. However SYNOPSES can only be exported along with
 *          OBJECT_STATS. Therefore only valid combinations are
 *          OBJECT_STATS
 *          OBJECT_STATS, SYNOPSES
 *          The default value is OBJECT_STATS that can be changed using statistics
 *          preference.
 *          as_of_timestamp - The timestamp at which the statistics were active
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges.
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_schema_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            text));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_STAT_CATEGORY).
 * @param as_of_timestamp `text`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_schema_stats(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_export_stats_for_dp.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_stats_for_dp(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS text));
 * @param objlist_tab_own `varchar2`, входное значение.
 * @param objlist_tab `varchar2`, входное значение.
 * @param dblink `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param options `number`, входное значение, по умолчанию NULL (source CSV).
 * @param export_stats_since `text`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_stats_for_dp(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves system statistics from the user
 * @details stat table identified by stattab and stores it in the
 *          dictionary
 *          Input arguments:
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          if ORA-20000 shows "no statistics are imported", several
 *          possible reasons are: (1) user specified statid does not
 *          exist; (2) statistics are locked; (3) objects in the
 *          stattab no longer exist in the current database
 *          ORA-20001: Invalid or inconsistent values in the user stat table
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20003: Unable to import system statistics
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_system_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to delete the statistics preferences of the
 * @details specified table in the specified schema.
 *          To run this procedure, you need to connect as owner of the table
 *          or be granted ANALYZE ANY system privilege.
 *          Input arguments:
 *          ownname - owner name
 *          tabname - table name
 *          pname   - preference name
 *          The default value for following preferences can be deleted.
 *          CASCADE
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          PUBLISH
 *          INCREMENTAL
 *          INCREMENTAL_LEVEL
 *          INCREMENTAL_STALENESS
 *          GLOBAL_TEMP_TABLE_STATS
 *          STALE_PERCENT
 *          TABLE_CACHED_BLOCKS
 *          OPTIONS
 *          STAT_CATEGORY
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          APPROXIMATE_NDV_ALGORITHM
 *          AUTO_STAT_EXTENSIONS
 *          ROOT_TRIGGER_PDB
 *          COORDINATOR_TRIGGER_SHARD
 *          AUTO_STATS_ADVISOR_TASK
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.delete_table_prefs('SH', 'SALES', 'CASCADE');
 *          dbms_stats.delete_table_prefs('SH', 'SALES', 'DEGREE');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or Illegal input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_export_table_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_export_table_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Exports table, partition, column, and index statistics
 * @details Stores the current dictionary statistics of the table identified by
 *          ownname/tabname in the existing user statistics table stattab.
 *          The function is the RuDB function counterpart of Oracle's
 *          DBMS_STATS.EXPORT_TABLE_STATS procedure.
 *
 *          Input arguments:
 *          ownname - schema name; NULL means the first schema in search_path
 *          tabname - table name (required)
 *          partname - partition or subpartition name; NULL exports the global
 *          level plus every partition and subpartition of a partitioned table
 *          stattab - existing statistics table created by
 *          dbms_stats_create_stat_table (required)
 *          statid - optional statistics-set identifier stored in every row
 *          cascade - TRUE exports column and index rows; FALSE exports table
 *          rows only
 *          statown - schema containing stattab; NULL means ownname
 *          stat_category - comma-separated categories; OBJECT_STATS is
 *          supported, SYNOPSES/REALTIME_STATS/MODELS emit NOTICE
 *          as_of_timestamp - must be NULL; non-NULL is rejected because RuDB
 *          does not keep statistics history
 *
 *          Rows use format version 1: type T for table/partition rows, C for
 *          column rows, and I for index rows. Re-exporting the same scope and
 *          statid replaces the previous rows atomically.
 *
 *          Exceptions:
 *          ORA-20000-style object/privilege errors
 *          ORA-20002-style bad user statistics table errors
 *
 *          Example:
 *            SELECT dbms_stats_export_table_stats('public', 't',
 *                                                 NULL, 'stat_tab');
 * @param ownname `varchar2`, input; NULL uses the current search path.
 * @param tabname `varchar2`, input; required.
 * @param partname `varchar2`, input; default NULL.
 * @param stattab `varchar2`, input; required existing statistics table.
 * @param statid `varchar2`, input; default NULL.
 * @param cascade `bool`, input; default true.
 * @param statown `varchar2`, input; default NULL (same as ownname).
 * @param stat_category `varchar2`, input; default
 *        'OBJECT_STATS, SYNOPSES, REALTIME_STATS'.
 * @param as_of_timestamp `text`, input; default NULL and must remain NULL.
 */
Datum dbms_stats_export_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the flushing of in-memory monitoring
 * @details information to the dictionary.  Corresponding entries in the
 *          *_tab_modifications views are updated immediately, without waiting
 *          for Oracle to flush it periodically.  Useful for the users who need
 *          up-to-date information in those views.
 *          The gather_*_stats procedures internally flush the monitoring information
 *          accordingly, and it is NOT necessary to run this procedure before
 *          gathering the statistics.
 *          The procedure is:
 *          flush_database_monitoring_info
 *          The modification monitoring mechanism is now controlled by the
 *          STATISTICS_LEVEL initialization parameter, and the following
 *          procedures no longer have any effect:
 *          alter_schema_tab_monitoring
 *          alter_database_tab_monitoring
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_flush_database_monitoring_info();
 */
Datum dbms_stats_flush_database_monitoring_info(PG_FUNCTION_ARGS);
/**
 * @brief This procedure runs gather_schema_stats in reporting mode. That is,
 * @details stats are not actually collected, but all the objects that will be
 *          affected when gather_schema_stats is invoked are reported.
 *          The detail level for the report is defined by the detail_level
 *          input parameter. Please see the comments for report_single_stats_operation
 *          on possible values for detail_level and format.
 *          For all other input parameters, please see the comments on
 *          gather_schema_stats.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_gather_database_stats(CAST(NULL AS number), CAST(NULL AS bool),
 *            CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS varchar2), CAST(NULL AS
 *            bool), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS
 *            bool), CAST(NULL AS varchar2), CAST(NULL AS text));
 * @param estimate_percent `number`, входное значение, по умолчанию 101 (source CSV / package constant DEFAULT_ESTIMATE_PERCENT).
 * @param block_sample `bool`, входное значение, по умолчанию false (source CSV).
 * @param method_opt `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_METHOD_OPT).
 * @param degree `number`, входное значение, по умолчанию 32766 (source CSV / package constant DEFAULT_DEGREE_VALUE).
 * @param granularity `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_GRANULARITY).
 * @param cascade `bool`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param options `varchar2`, входное значение, по умолчанию GATHER (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param gather_sys `bool`, входное значение, по умолчанию true (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param gather_temp `bool`, входное значение, по умолчанию false (source CSV).
 * @param gather_fixed `bool`, входное значение, по умолчанию false (source CSV).
 * @param stattype `varchar2`, входное значение, по умолчанию DATA (source CSV).
 * @param obj_filter_list `text`, входное значение, по умолчанию NULL (source CSV).
 * @return `text` — objlist.
 */
Datum dbms_stats_gather_database_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure runs auto stats gathering job in reporting mode. That is,
 * @details stats are not actually collected, but all the objects that will be
 *          affected when auto stats gathering is invoked are reported.
 *          The detail level for the report is defined by the detail_level
 *          input parameter. Please see the comments for report_single_stats_operation
 *          on possible values for detail_level and format.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_gather_database_stats_job_proc();
 */
Datum dbms_stats_gather_database_stats_job_proc(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for fixed tables from the user stat table and
 * @details stores them in the dictionary
 *          To run this procedure, you must have the SYSDBA or ANALYZE ANY DICTIONARY
 *          system privilege.
 *          The statistics will be imported as pending in case PUBLISH preference
 *          is set to FALSE.
 *          Input arguments:
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - Override statistics lock.
 *          TRUE- Ignores the statistics lock on objects and import
 *          the statistics.
 *          FALSE-The statistics of an object will be imported only if it
 *          is not locked.
 *          Exceptions:
 *          ORA-20000: insufficient privileges
 *          if ORA-20000 shows "no statistics are imported", several
 *          possible reasons are: (1) user specified statid does not
 *          exist; (2) statistics are locked; (3) objects in the
 *          stattab no longer exist in the current database
 *          ORA-20001: Invalid or inconsistent values in the user stat table
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_gather_dictionary_stats(CAST(NULL AS varchar2), CAST(NULL AS number),
 *            CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS varchar2),
 *            CAST(NULL AS text));
 * @param comp_id `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param estimate_percent `number`, входное значение, по умолчанию 101 (source CSV / package constant DEFAULT_ESTIMATE_PERCENT).
 * @param block_sample `bool`, входное значение, по умолчанию false (source CSV).
 * @param method_opt `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_METHOD_OPT).
 * @param degree `number`, входное значение, по умолчанию 32766 (source CSV / package constant DEFAULT_DEGREE_VALUE).
 * @param granularity `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_GRANULARITY).
 * @param cascade `bool`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param options `varchar2`, входное значение, по умолчанию GATHER AUTO (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию DATA (source CSV).
 * @param obj_filter_list `text`, входное значение, по умолчанию NULL (source CSV).
 * @return `text` — objlist.
 */
Datum dbms_stats_gather_dictionary_stats(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves system statistics and stores it
 * @details in the user stat table identified by stattab
 *          Input arguments:
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20003: Unable to export system statistics
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_gather_fixed_objects_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool));
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 */
Datum dbms_stats_gather_fixed_objects_stats(PG_FUNCTION_ARGS);
 
/**
 * @brief Retrieves statistics for index
 * @details Currently this is mostly the ANALYZE wrapper
 * @param ownname `varchar2`, Schema containing the index.
 * @param indname `varchar2`, Name of the index.
 * @param partname `varchar2`, N/A
 * @param estimate_percent `number`, N/A
 * @param stattab `varchar2`, N/A
 * @param statid `varchar2`, N/A
 * @param statown `varchar2`, N/A
 * @param degree `number`, N/A
 * @param granularity `varchar2`, N/A
 * @param no_invalidate `bool`, N/A
 * @param force `bool`, N/A
 * @param vector_index_options `text`, N/A
 */
Datum dbms_stats_gather_index_stats(PG_FUNCTION_ARGS);
 
/**
 * @brief ------------------------- gather_processing_rate --------------------------
 * @details NAME:
 *          gather_processing_rate - Gather Processing Rates
 *          DESCRIPTION: This procedure starts the job of gathering the processing
 *          rates which end after 'timeLimit' seconds
 *          PARAMETERS:
 *          gathering_mode   - Mode can be 'START' and 'END'
 *          duration         - time duration (number of minutes) for which the
 *          processing must be gathered. Default value is 60
 *          minutes.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or inconsistent input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_gather_processing_rate(CAST(NULL AS varchar2), CAST(NULL AS number));
 * @param gathering_mode `varchar2`, входное значение, по умолчанию START (source CSV).
 * @param duration `number`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_gather_processing_rate(PG_FUNCTION_ARGS);
/**
 * @brief This procedure runs gather_table_stats in reporting mode.
 * @details Stats are not actually collected, but all the objects that will be
 *          affected when gather_table_stats is invoked are reported.
 * @param ownname `varchar2`, Schema name.
 * @param estimate_percent `number`, N/A.
 * @param block_sample `bool`, N/A.
 * @param method_opt `varchar2`, N/A.
 * @param degree `number`, N/A.
 * @param granularity `varchar2`, N/A.
 * @param cascade `bool`, N/A.
 * @param stattab `varchar2`, N/A.
 * @param statid `varchar2`, N/A.
 * @param options `varchar2`, N/A.
 * @param statown `varchar2`, N/A.
 * @param no_invalidate `bool`, N/A.
 * @param force `bool`, N/A.
 * @param obj_filter_list `text`, N/A.
 * @return `text` — objlist, but currently NULL.
 */
Datum dbms_stats_gather_schema_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is invoked by the high frequency auto stats collection task
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_gather_st_job_continuous_proc();
 */
Datum dbms_stats_gather_st_job_continuous_proc(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_gather_system_stats.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_gather_system_stats(CAST(NULL AS varchar2), CAST(NULL AS number),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param gathering_mode `varchar2`, входное значение, по умолчанию NOWORKLOAD (source CSV).
 * @param interval `number`, входное значение, по умолчанию 60 (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_gather_system_stats(PG_FUNCTION_ARGS);
 
/**
 * @brief This function gathers table, column, and index statistics.
 * @details Currently this is mostly the ANALYZE wrapper
 * @param ownname `varchar2`, Schema containing the table.
 * @param tabname `varchar2`, Name of the table.
 * @param partname `varchar2`, N/A.
 * @param estimate_percent `number`, N/A.
 * @param block_sample `bool`, N/A.
 * @param method_opt `varchar2`, N/A.
 * @param degree `number`, N/A.
 * @param granularity `varchar2`, N/A.
 * @param cascade `bool`, N/A.
 * @param stattab `varchar2`, N/A.
 * @param statid `varchar2`, N/A.
 * @param statown `varchar2`, N/A.
 * @param no_invalidate `bool`, N/A.
 * @param stattype `varchar2`, N/A.
 * @param force `bool`, N/A.
 * @param context `text`, N/A.
 * @param options `varchar2`, N/A.
 */
Datum dbms_stats_gather_table_stats(PG_FUNCTION_ARGS);
 
/**
 * @brief This procedure generates object statistics from previously collected
 * @details statistics of related objects.  For fully populated
 *          schemas, the gather procedures should be used instead when more
 *          accurate statistics are desired.
 *          The currently supported objects are b-tree and bitmap indexes.
 *          ownname - schema of object
 *          objname - name of object
 *          organized - the amount of ordering associated between the index and
 *          its undelrying table.  A heavily organized index would have consecutive
 *          index keys referring to consecutive rows on disk for the table
 *          (the same block).  A heavily disorganized index would have consecutive
 *          keys referencing different table blocks on disk.  This parameter is
 *          only used for b-tree indexes.
 *          The number can be in the range of 0-10, with 0 representing a completely
 *          organized index and 10 a completely disorganized one.
 *          force - generate statistics even if it is locked
 *          Exceptions:
 *          ORA-20000: Unsupported object type of object does not exist
 *          ORA-20001: Invalid option or invalid statistics
 *          ORA-20005: object statistics are locked
 *          -------------------------- generate_index_stats ---------------------------
 *          NAME:
 *          generate_index_stats
 *          DESCRIPTION:
 *          This procedure generates index stats for all indexes created on the
 *          given owner and table, with given status and index name following
 *          some pattern.
 *          PARAMETERS:
 *          ownname             (IN) - table owner
 *          tabname             (IN) - table name
 *          index_pattern       (IN) - index name pattern
 *          status              (IN) - index status
 *          no_stats_index_only (IN) - whether only consider index with no stats
 *          RETURNS:
 *          None.
 *          ---------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_generate_index_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS number));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param index_pattern `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param status `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_stats_index_only `number`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_generate_index_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure runs gather_database_stats in reporting mode. That is,
 * @details stats are not actually collected, but all the objects that will be
 *          affected when gather_database_stats is invoked are reported.
 *          The detail level for the report is defined by the detail_level
 *          input parameter. Please see the comments for report_single_stats_operation
 *          on possible values for detail_level and format.
 *          For all other input parameters, please see the comments on
 *          gather_database_stats.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_generate_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS number), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param objname `varchar2`, входное значение.
 * @param organized `number`, входное значение, по умолчанию 7 (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_generate_stats(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_gen_selmap.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT * FROM dbms_stats_gen_selmap(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS binary_integer), CAST(NULL
 *            AS text), CAST(NULL AS text), CAST(NULL AS text));
 * @param owner `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param pname `varchar2`, входное значение.
 * @param spname `varchar2`, входное значение.
 * @param flag `binary_integer`, входное значение.
 * @param colinfo `text`, входное значение.
 * @param selmap `text`, входное значение.
 * @param clist `text`, входное значение.
 * @return `record`: flag `binary_integer`, selmap `text`, clist `text`
 */
Datum dbms_stats_gen_selmap(PG_FUNCTION_ARGS);
/**
 * @brief ----------------------- get_advisor_opr_filter ------------------------------
 * @details NAME:
 *          get_advisor_opr_filter
 *          DESCRIPTION:
 *          Create an operation filter for a statistics operation
 *          PARAMETERS:
 *          opr_id:          (IN) - ID of the statistics operation. This is the ID for
 *          the operation stored in dba_optstat_operations
 *          opr_filter       (IN) - Statistics Advisor Filter generated based on
 *          the given statistics operation
 *          NOTE;
 *          The filter can only be specified from either the operation ID or the
 *          filter ID, but not both at the same time.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_get_advisor_opr_filter(CAST(NULL AS number), CAST(NULL AS text));
 * @param opr_id `number`, входное значение.
 * @param opr_filter `text`, входное значение.
 * @return `text` — opr_filter.
 */
Datum dbms_stats_get_advisor_opr_filter(PG_FUNCTION_ARGS);
/**
 * @brief Gets column statistics — Oracle overload 1 (statistics version).
 * @details Input arguments: ownname `varchar2`, tabname `varchar2`,
 *          colname `varchar2`, partname `varchar2` (ignored),
 *          stattab `varchar2` (ignored), statid `varchar2` (ignored),
 *          statown `varchar2` (ignored), realtime_stats `bool` (ignored).
 *          Output arguments: distcnt `number` (pg_statistic.stadistinct,
 *          sign-decoded against reltuples), density `number`
 *          (1 / distcnt, NULL when distcnt is 0), nullcnt `number`
 *          (round(stanullfrac * reltuples)), srec `text` (min/max/histogram
 *          serialization, NULL when no histogram), avgclen `number`
 *          (pg_statistic.stawidth).
 * @param ownname `varchar2`, имя схемы.
 * @param tabname `varchar2`, имя таблицы.
 * @param colname `varchar2`, имя колонки.
 * @param partname `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param stattab `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param statid `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param statown `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param realtime_stats `bool`, не поддерживается (NOTICE), по умолчанию true.
 * @return `record`: distcnt `number`, density `number`, nullcnt `number`,
 *                   srec `text`, avgclen `number`.
 */
Datum dbms_stats_get_column_stats_ovr1(PG_FUNCTION_ARGS);
 
/**
 * @brief Gets column statistics — Oracle overload 2 (user-defined statistics).
 * @details Input arguments: ownname `varchar2`, tabname `varchar2`,
 *          colname `varchar2`, partname `varchar2` (ignored),
 *          stattab `varchar2` (ignored), statid `varchar2` (ignored),
 *          statown `varchar2` (ignored).
 *          Output arguments: ext_stats `raw` (всегда NULL), stattypown
 *          `varchar2` (всегда NULL), stattypname `varchar2` (всегда NULL) —
 *          в PostgreSQL нет пользовательского типа статистики для колонки.
 * @param ownname `varchar2`, имя схемы.
 * @param tabname `varchar2`, имя таблицы.
 * @param colname `varchar2`, имя колонки.
 * @param partname `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param stattab `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param statid `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param statown `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @return `record`: ext_stats `raw` (NULL), stattypown `varchar2` (NULL),
 *                   stattypname `varchar2` (NULL).
 */
Datum dbms_stats_get_column_stats_ovr2(PG_FUNCTION_ARGS);
/**
 * @brief Gets all column-related information
 * @details Retrieves statistics for a particular column and stores them in the user
 *          stat table identified by stattab
 *          To run this procedure, you need to
 *          1. connect as owner of the table or be granted ANALYZE ANY system privilege
 *          AND
 *          2. the table is NOT protected in DV from you.
 *          Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table to which this column belongs
 *          colname - The name of the column or extension
 *          partname - The name of the table partition from which to get
 *          the statistics.  If the table is partitioned and partname
 *          is null, the statistics will be retrieved from the global table
 *          level.
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.  If stattab is null, the statistics
 *          will be retrieved directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          statown - The schema containing stattab (if different then ownname)
 *          realtime_stats - Whether to combine with real-time column stats
 *          Output arguments:
 *          distcnt - The number of distinct values
 *          density - The column density
 *          nullcnt - The number of nulls
 *          srec - structure holding internal representation of column minimum,
 *          maximum, and histogram values
 *          avgclen - The average length of the column (in bytes)
 *          Output arguments for user-defined column statistics:
 *          ext_stats - external (user-defined) statistics
 *          stattypown - owner of statistics type associated with column
 *          stattypname - name of statistics type associated with column
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges or
 *          no statistics have been stored for requested object
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT * FROM dbms_stats_get_index_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param indname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @return `record`: numrows `number` (может быть NULL для source overloads, где поля нет), numlblks `number`
 *                   (может быть NULL для source overloads, где поля нет), numdist `number` (может быть NULL
 *                   для source overloads, где поля нет), avglblk `number` (может быть NULL для source
 *                   overloads, где поля нет), avgdblk `number` (может быть NULL для source overloads, где
 *                   поля нет), clstfct `number` (может быть NULL для source overloads, где поля нет),
 *                   indlevel `number` (может быть NULL для source overloads, где поля нет), guessq `number`
 *                   (может быть NULL для source overloads, где поля нет), cachedblk `number` (может быть
 *                   NULL для source overloads, где поля нет), cachehit `number` (может быть NULL для source
 *                   overloads, где поля нет), ext_stats `raw` (может быть NULL для source overloads, где
 *                   поля нет), stattypown `varchar2` (может быть NULL для source overloads, где поля нет),
 *                   stattypname `varchar2` (может быть NULL для source overloads, где поля нет)
 */
Datum dbms_stats_get_index_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure gathers system statistics.
 * @details Input arguments:
 *          gathering_mode - Values: NOWORKLOAD, INTERVAL, START, STOP, EXADATA
 *          NOWORKLOAD:
 *          In this mode system statistics will be gathered based on system
 *          characteristics only, without regard to the workload.
 *          INTERVAL:
 *          In this mode the user can specify a time interval parameter, in
 *          minutes.
 *          After <interval> minutes has passed the system statistics will be
 *          updated either in dictionary, or stattab if specified. The system
 *          statistics are based on system activity during specified interval.
 *          START | STOP:
 *          The procedure is first called with START then followed by another
 *          call using STOP. It is assumed that between these two calls some
 *          SQL workload has been running allowing the procedure to capture
 *          workload-specific statistics.
 *          START will initiate gathering statistics. STOP will calculate
 *          statistics for elapsed period of time (since START) and refresh
 *          dictionary or stattab. Interval in these modes is ignored.
 *          EXADATA:
 *          In this mode the gathered system statistics takes into account the
 *          unique capabilities provided by using Exadata such as large IO size
 *          and high IO throughput. The multi-block read count and IO throughput
 *          statistics are set along with the CPU speed.
 *          interval - Specifies period of time in minutes for gathering statistics
 *          in INTERVAL mode.
 *          stattab - The user stat table identifier describing where to save
 *          the current statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Bad input value
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20003: Unable to gather system statistics
 *          ORA-20004: Error in "INTERVAL" mode :
 *          system parameter job_queue_processes must be > 0
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT * FROM dbms_stats_get_system_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param pname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @return `record`: status `varchar2`, dstart `date`, dstop `date`, pvalue `number`
 */
Datum dbms_stats_get_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief Gets all index-related information
 * @details Input arguments:
 *          ownname - The name of the schema
 *          indname - The name of the index
 *          partname - The name of the index partition for which to get
 *          the statistics.  If the index is partitioned and partname
 *          is null, the statistics will be retrieved for the global index
 *          level.
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.  If stattab is null, the statistics
 *          will be retrieved directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          statown - The schema containing stattab (if different then ownname)
 *          Output arguments:
 *          numrows - The number of rows in the index (partition)
 *          numlblks - The number of leaf blocks in the index (partition)
 *          numdist - The number of distinct keys in the index (partition)
 *          avglblk - Average integral number of leaf blocks in which each
 *          distinct key appears for this index (partition).
 *          avgdblk - Average integral number of data blocks in the table
 *          pointed to by a distinct key for this index (partition).
 *          clstfct - The clustering factor for the index (partition).
 *          indlevel - The height of the index (partition).
 *          guessq - IOT guess quality of the index (partition).
 *          Output arguments for user defined statistics:
 *          ext_stats - external (user-defined) statistics
 *          stattypown - owner of statistics type associated with index
 *          stattypname - name of statistics type associated with index
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges or
 *          no statistics have been stored for requested object
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT * FROM dbms_stats_get_table_stats_ovr1(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param realtime_stats `bool`, входное значение, по умолчанию true (source CSV).
 * @return `record`: numrows `number`, numblks `number`, avgrlen `number`, im_imcu_count `number` (может быть
 *                   NULL для source overloads, где поля нет), im_block_count `number` (может быть NULL для
 *                   source overloads, где поля нет), scanrate `number` (может быть NULL для source
 *                   overloads, где поля нет), cachedblk `number` (может быть NULL для source overloads, где
 *                   поля нет), cachehit `number` (может быть NULL для source overloads, где поля нет)
 */
 
/**
 * @brief Gets table statistics — Oracle overload 1.
 * @details Input arguments: ownname `varchar2`, tabname `varchar2`,
 *          partname `varchar2` (ignored), stattab `varchar2` (ignored),
 *          statid `varchar2` (ignored), statown `varchar2` (ignored),
 *          realtime_stats `bool` (ignored).
 *          Output arguments: numrows `number` (pg_class.reltuples),
 *          numblks `number` (pg_class.relpages), avgrlen `number`
 *          (relpages * BLCKSZ / reltuples).
 * @param ownname `varchar2`, имя схемы.
 * @param tabname `varchar2`, имя таблицы.
 * @param partname `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param stattab `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param statid `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param statown `varchar2`, не поддерживается (NOTICE), по умолчанию NULL.
 * @param realtime_stats `bool`, не поддерживается (NOTICE), по умолчанию true.
 * @return `record`: numrows `number`, numblks `number`, avgrlen `number`.
 */
Datum dbms_stats_get_table_stats_ovr1(PG_FUNCTION_ARGS);
 
/**
 * @brief Gets table statistics — Oracle overload 2 (In-Memory metrics).
 * @details Same inputs as `dbms_stats_get_table_stats_ovr1`.
 *          Output arguments: numrows `number`, numblks `number`,
 *          avgrlen `number`, im_imcu_count `number` (всегда NULL),
 *          im_block_count `number` (всегда NULL), scanrate `number`
 *          (всегда NULL) — в PostgreSQL нет In-Memory column store.
 * @return `record`: numrows `number`, numblks `number`, avgrlen `number`,
 *                   im_imcu_count `number` (NULL), im_block_count `number` (NULL),
 *                   scanrate `number` (NULL).
 */
Datum dbms_stats_get_table_stats_ovr2(PG_FUNCTION_ARGS);
 
/**
 * @brief Gets table statistics — Oracle overload 3 (cache metrics).
 * @details Input arguments: ownname `varchar2`, tabname `varchar2`,
 *          partname `varchar2` (ignored), stattab `varchar2` (ignored),
 *          statid `varchar2` (ignored), realtime_stats `bool` (ignored).
 *          Output arguments: numrows `number`, numblks `number`,
 *          avgrlen `number`, cachedblk `number` (всегда NULL),
 *          cachehit `number` (всегда NULL) — внутренние счётчики Oracle.
 * @return `record`: numrows `number`, numblks `number`, avgrlen `number`,
 *                   cachedblk `number` (NULL), cachehit `number` (NULL).
 */
Datum dbms_stats_get_table_stats_ovr3(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for all objects in the database
 * @details and stores them in the user stat tables identified
 *          by statown.stattab
 *          Stats of any table that is protected in DV from the user will NOT be
 *          exported
 *          Input arguments:
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab.
 *          If statown is null, it is assumed that every schema in the database
 *          contains a user statistics table with the name stattab.
 *          stat_category - what statistics to export. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. However SYNOPSES can only be exported along with
 *          OBJECT_STATS. Therefore only valid combinations are
 *          OBJECT_STATS
 *          OBJECT_STATS, SYNOPSES
 *          The default value is OBJECT_STATS that can be changed usig statistics
 *          preference.
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_column_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param colname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_import_column_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to export the statistics preferences of
 * @details all the tables, excluding the tables owned by Oracle. These
 *          tables can by included by passing TRUE for the add_sys parameter.
 *          To run this procedure, you need to have the SYSDBA role OR both
 *          ANALYZE ANY DICTIONARY and ANALYZE ANY system privileges.
 *          Input arguments:
 *          stattab - statistics table name where to export the statistics
 *          statid  - (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab. If null, then it defaults
 *          to the current user
 *          add_sys - value TRUE will include the Oracle-owned tables
 *          Examples:
 *          dbms_stats.export_database_prefs('MY_STAT_TAB', statown=>'SH');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_database_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS bool));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param add_sys `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_import_database_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for all objects in the schema identified
 * @details by ownname from the user stat table and stores them in the
 *          dictionary
 *          The statistics will be imported as pending in case PUBLISH preference
 *          is set to FALSE.
 *          Input arguments:
 *          ownname - The name of the schema
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - Override statistics lock.
 *          TRUE- Ignores the statistics lock on objects and import
 *          the statistics.
 *          FALSE-The statistics of an object will be imported only if it
 *          is not locked.
 *          ie if both DATA and CACHE statistics is locked, it will not
 *          import anything. If CACHE statistics of an object is locked,
 *          only DATA statistics will be imported and vice versa.
 *          stat_category - what statistics to import. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. However SYNOPSES can only be imported along with
 *          OBJECT_STATS. Therefore only valid combinations are
 *          OBJECT_STATS
 *          OBJECT_STATS, SYNOPSES
 *          The default value is OBJECT_STATS that can be changed usig statistics
 *          preference.
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges.
 *          if ORA-20000 shows "no statistics are imported", several
 *          possible reasons are: (1) no statistics exist for the specified
 *          ownname or statid in the stattab; (2) statistics are locked;
 *          (3) objects in the stattab no longer exist in the current
 *          database
 *          ORA-20001: Invalid or inconsistent values in the user stat table
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_database_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_STAT_CATEGORY).
 */
Datum dbms_stats_import_database_stats(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for all dictionary schemas ('SYS', 'SYSTEM' and
 * @details RDBMS component schemas) and stores them in the user stat table
 *          identified by stattab
 *          To run this procedure, you must have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different from current schema)
 *          stat_category - what statistics to export. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. However SYNOPSES can only be exported along with
 *          OBJECT_STATS. Therefore only valid combinations are
 *          OBJECT_STATS
 *          OBJECT_STATS, SYNOPSES
 *          The default value is OBJECT_STATS that can be changed usig statistics
 *          preference.
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_dictionary_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_STAT_CATEGORY).
 */
Datum dbms_stats_import_dictionary_stats(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for fixed tables and stores them in the user
 * @details stat table identified by stattab
 *          To run this procedure, you must have the SYSDBA or ANALYZE ANY DICTIONARY
 *          system privilege.
 *          Input arguments:
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Exceptions:
 *          ORA-20000: insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_fixed_objects_stats(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_import_fixed_objects_stats(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for a particular column from the user stat table
 * @details identified by stattab and stores them in the dictionary
 *          Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table to which this column belongs
 *          colname - The name of the column or extension
 *          partname - The name of the table partition.  If the table is
 *          partitioned and partname is null, global and partition column
 *          statistics will be imported.
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - import statistics even if it is locked
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Invalid or inconsistent values in the user stat table
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_index_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param indname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_import_index_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to export the statistics preferences of all
 * @details the tables owner by the specified owner name.
 *          To run this procedure, you need to connect as owner, have the SYSDBA
 *          privilege, OR have the ANALYZE ANY system privilege
 *          Input arguments:
 *          ownname - owner name
 *          stattab - statistics table name where to export the statistics
 *          statid  - (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.export_schema_prefs('SH', 'MY_STAT_TAB');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20000: Schema "<schema>" does not exist
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_schema_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_import_schema_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for a particular table from the user
 * @details stat table identified by stattab and stores them in the dictionary.
 *          Cascade will result in all index and column stats associated
 *          with the specified table being imported as well.
 *          The statistics will be imported as pending in case PUBLISH preference
 *          is set to FALSE.
 *          Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table
 *          partname - The name of the table partition.  If the table is
 *          partitioned and partname is null, global and partition table
 *          statistics will be imported.
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          cascade - If true, column and index statistics for this table
 *          will also be imported.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - import even if statistics of the object is locked
 *          stat_category - what statistics to import. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. However SYNOPSES can only be imported along with
 *          OBJECT_STATS. Therefore only valid combinations are
 *          OBJECT_STATS
 *          OBJECT_STATS, SYNOPSES
 *          The default value is OBJECT_STATS that can be changed usig statistics
 *          preference.
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Invalid or inconsistent values in the user stat table
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_schema_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_STAT_CATEGORY).
 */
Datum dbms_stats_import_schema_stats(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_import_stats_for_dp.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_stats_for_dp(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS number));
 * @param objlist_tab_own `varchar2`, входное значение.
 * @param objlist_tab `varchar2`, входное значение.
 * @param options `number`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_import_stats_for_dp(PG_FUNCTION_ARGS);
/**
 * @brief Deletes system statistics
 * @details Input arguments:
 *          stattab - The user stat table identifier describing from where
 *          to delete the statistics.  If stattab is null, the statistics
 *          will be deleted directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          statown - The schema containing stattab (if different then ownname)
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_system_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_import_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to export the statistics preferences of the
 * @details specified table in the specified schema into the specified statistics
 *          table.
 *          To run this procedure, you need to connect as owner of the table
 *          or be granted ANALYZE ANY system privilege.
 *          Input arguments:
 *          ownname - owner name
 *          tabname - table name
 *          stattab - statistics table name where to export the statistics
 *          statid  - (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.export_table_prefs('SH', 'SALES', 'MY_STAT_TAB');
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_table_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_import_table_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for a particular index from the user
 * @details stat table identified by stattab and stores them in the
 *          dictionary
 *          Input arguments:
 *          ownname - The name of the schema
 *          indname - The name of the index
 *          partname - The name of the index partition.  If the index is
 *          partitioned and partname is null, global and partition index
 *          statistics will be imported.
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - import the statistics even if it is locked
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Invalid or inconsistent values in the user stat table
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_import_table_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            bool), CAST(NULL AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS
 *            varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение.
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param cascade `bool`, входное значение, по умолчанию true (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param stat_category `varchar2`, входное значение, по умолчанию Z (source CSV / package constant DEFAULT_STAT_CATEGORY).
 */
Datum dbms_stats_import_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_init_package.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_init_package();
 */
Datum dbms_stats_init_package(PG_FUNCTION_ARGS);
/**
 * @brief ------------------------- interrupt_advisor_task ----------------------------
 * @details NAME:
 *          interrupt_advisor_task
 *          DESCRIPTION:
 *          interrupts a currently executing statistics advisor task. The task will
 *          end its operations as it would at a normal exit and the user will be able
 *          to access intermediate results. The task may also later be resumed.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_interrupt_advisor_task(CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 */
Datum dbms_stats_interrupt_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to lock the statistics on the table
 * @details Input arguments:
 *          ownname  - schema of table to lock
 *          tabname  - name of the table
 *          stattype - type of statistics to be locked
 *          'CACHE'  - lock only caching statistics
 *          'DATA'   - lock only data statistics
 *          'ALL'    - lock both data and caching statistics. This is the default
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_lock_partition_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение.
 */
Datum dbms_stats_lock_partition_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to lock statistics for a partition
 * @details Input arguments:
 *          ownname   - schema of the table to lock
 *          tabname   - name of the table
 *          partname  - name of the partition
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_lock_schema_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию ALL (source CSV).
 */
Datum dbms_stats_lock_schema_stats(PG_FUNCTION_ARGS);
/**
 * @brief Retrieves statistics for all dictionary schemas ('SYS', 'SYSTEM' and
 * @details RDBMS component schemas) from the user stat table and stores them in
 *          the dictionary
 *          The statistics will be imported as pending in case PUBLISH preference
 *          is set to FALSE.
 *          To run this procedure, you must have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different from current schema)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - Override statistics lock.
 *          TRUE- Ignores the statistics lock on objects and import
 *          the statistics.
 *          FALSE-The statistics of an object will be imported only if it
 *          is not locked.
 *          ie if both DATA and CACHE statistics is locked, it will not
 *          import anything. If CACHE statistics of an object is locked,
 *          only DATA statistics will be imported and vice versa.
 *          stat_category - what statistics to import. It accepts multiple values
 *          separated by comma. The values we support now are 'OBJECT_STATS'
 *          (i.e., table statistics, column statistics and index statistics) and
 *          'SYNOPSES'. However SYNOPSES can only be imported along with
 *          OBJECT_STATS. Therefore only valid combinations are
 *          OBJECT_STATS
 *          OBJECT_STATS, SYNOPSES
 *          The default value is OBJECT_STATS that can be changed usig statistics
 *          preference.
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          if ORA-20000 shows "no statistics are imported", several
 *          possible reasons are: (1) user specified statid does not
 *          exist; (2) statistics are locked; (3) objects in the
 *          stattab no longer exist in the current database
 *          ORA-20001: Invalid or inconsistent values in the user stat table
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_lock_table_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию ALL (source CSV).
 */
Datum dbms_stats_lock_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief This function drops the statistics entry that is created for the user
 * @details specified extension. This cancels the effects of created_extended_stats.
 *          If no extension is created for the extension, this function
 *          throws an error.
 *          Parameters:
 *          ownname      -- owner name of a table
 *          tabname      -- table name
 *          extension    -- can be either a column group or an expression
 *          (see description in create_extended_stats)
 *          Exceptions:
 *          ORA-20000: Insufficient privileges or extension does not exist.
 *          ORA-20001: Error when processing extension
 *          The following procedure is for internal use only.
 *          gather_database_stats_job_proc
 *          cleanup_stats_job_proc
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_merge_col_usage(CAST(NULL AS varchar2));
 * @param dblink `varchar2`, входное значение.
 */
Datum dbms_stats_merge_col_usage(PG_FUNCTION_ARGS);
/**
 * @brief internal use only (partition exchange)
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_merge_stats_partition_exchange(CAST(NULL AS number), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL AS number));
 * @param g_objn `number`, входное значение.
 * @param g_ownname `varchar2`, входное значение.
 * @param g_tabname `varchar2`, входное значение.
 * @param t_objn `number`, входное значение.
 * @param t_ownname `varchar2`, входное значение.
 * @param t_tabname `varchar2`, входное значение.
 * @param p_objn `number`, входное значение.
 * @param flags `number`, входное значение.
 */
Datum dbms_stats_merge_stats_partition_exchange(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_postprocess_indstats.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_postprocess_indstats(CAST(NULL AS text), CAST(NULL AS number));
 * @param istats `text`, входное значение.
 * @param flags `number`, входное значение.
 */
Datum dbms_stats_postprocess_indstats(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_postprocess_stats.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_postprocess_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS text),
 *            CAST(NULL AS text), CAST(NULL AS text), CAST(NULL AS text), CAST(NULL AS text),
 *            CAST(NULL AS number));
 * @param owner `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param tobjn `number`, входное значение.
 * @param fobjn `number`, входное значение.
 * @param flag `number`, входное значение.
 * @param rawstats `text`, входное значение.
 * @param selmap `text`, входное значение.
 * @param clist `text`, входное значение.
 * @param cht `text`, входное значение.
 * @param restoretime `text`, входное значение.
 * @param andv_algo `number`, входное значение.
 */
Datum dbms_stats_postprocess_stats(PG_FUNCTION_ARGS);
/**
 * @brief This set of procedures enable the storage and retrieval of
 * @details individual column-, index-, table- and system-  related statistics
 *          The procedures are:
 *          prepare_column_values*
 *          set_column_stats
 *          set_index_stats
 *          set_table_stats
 *          set_system_stats
 *          convert_raw_value*
 *          get_column_stats
 *          get_index_stats
 *          get_table_stats
 *          get_system_stats
 *          delete_column_stats
 *          delete_index_stats
 *          delete_table_stats
 *          delete_schema_stats
 *          delete_database_stats
 *          delete_system_stats
 *          delete_fixed_objects_stats
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_prepare_column_values(CAST(NULL AS text), CAST(NULL AS text));
 * @param srec `text`, входное значение.
 * @param charvals `text`, входное значение.
 * @return `text` — srec.
 */
Datum dbms_stats_prepare_column_values(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_prepare_column_values_nvarchar.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_prepare_column_values_nvarchar(CAST(NULL AS text), CAST(NULL AS
 *            nvarchar2), CAST(NULL AS nvarchar2));
 * @param srec `text`, входное значение.
 * @param nvmin `nvarchar2`, входное значение.
 * @param nvmax `nvarchar2`, входное значение.
 * @return `text` — srec.
 */
Datum dbms_stats_prepare_column_values_nvarchar(PG_FUNCTION_ARGS);
/**
 * @brief функция dbms_stats_prepare_column_values_rowid.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            SELECT dbms_stats_prepare_column_values_rowid(CAST(NULL AS text), CAST(NULL AS rowid),
 *            CAST(NULL AS rowid));
 * @param srec `text`, входное значение.
 * @param rwmin `rowid`, входное значение.
 * @param rwmax `rowid`, входное значение.
 * @return `text` — srec.
 */
Datum dbms_stats_prepare_column_values_rowid(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_publish_pending_stats.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_publish_pending_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS bool), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param tabname `varchar2`, входное значение.
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_publish_pending_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to delete the pending statistics that have
 * @details been gathered but not published yet, i.e, stored as pending.
 *          If the parameter TABNAME is null then delete applies to all tables
 *          of the specified schema.
 *          The default owner/schema is the user who runs the procedure.
 *          To run this procedure, you need to have the SYSDBA role OR both
 *          ANALYZE ANY DICTIONARY and ANALYZE ANY system privileges.
 *          Input arguments:
 *          ownname - owner name
 *          tabname - table name
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.delete_pending_stats('SH', 'SALES');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_publish_pending_system_stats();
 */
Datum dbms_stats_publish_pending_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to restore system statistics
 * @details as of a specified timestamp (as_of_timestamp).
 *          Input arguments:
 *          as_of_timestamp - statistics as of this timestamp will be restored.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or inconsistent values
 *          ORA-20006: Unable to restore statistics , statistics history not available
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_purge_stats(CAST(NULL AS text));
 * @param before_timestamp `text`, входное значение.
 */
Datum dbms_stats_purge_stats(PG_FUNCTION_ARGS);
/**
 * @brief Upgrade a user stat table from an older version
 * @details Input arguments:
 *          ownname - The name of the schema
 *          stattab - The user stat table identifier
 *          Exceptions:
 *          ORA-20000: Unable to upgrade table
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_remap_stat_table(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 * @param src_own `varchar2`, входное значение.
 * @param src_tab `varchar2`, входное значение.
 * @param tgt_own `varchar2`, входное значение.
 * @param tgt_tab `varchar2`, входное значение.
 */
Datum dbms_stats_remap_stat_table(PG_FUNCTION_ARGS);
/**
 * @brief ------------------------- reset_advisor_task --------------------------------
 * @details NAME:
 *          reset_advisor_task
 *          DESCRIPTION:
 *          Reset a statistics advisor task execution to its initial state.
 *          The procedure should be called on an execution that is not currently
 *          executing.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_reset_advisor_task(CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 */
Datum dbms_stats_reset_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief This procedure seeds column usage information from a statements in
 * @details the specified sql tuning set.
 *          The procedure will iterate over the SQL statements in the SQL tuning
 *          set and compile them in order to seed column usage information for
 *          the columns that appear in these statements. This procedure records
 *          group of columns as well. Extensions for the recorded group of columns
 *          can be created using create_extended_stats procedure.
 *          Parameters:
 *          sqlset_name     - sqlset name
 *          owner_name      - owner name
 *          time_limit      - time limit (in seconds). Default value is 1800s.
 *          If sqlset_name and owner_name is null, it records the column (group) usage
 *          information for the statements executed in the system in next time_limit
 *          seconds.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_reset_col_usage(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 */
Datum dbms_stats_reset_col_usage(PG_FUNCTION_ARGS);
/**
 * @brief WARNING ** WARNING ---> obsoleted <--- WARNING  ** WARNING
 * @details Please use RESET_GLOBAL_PREF_DEFAULTS() instead.
 *          WARNING ** WARNING ---> obsoleted <--- WARNING  ** WARNING
 *          This procedure resets the default of parameters to ORACLE
 *          recommended values.
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_reset_global_pref_defaults();
 */
Datum dbms_stats_reset_global_pref_defaults(PG_FUNCTION_ARGS);
/**
 * @brief WARNING ** WARNING ---> obsoleted <--- WARNING  ** WARNING
 * @details Please use GET_PREFS() instead.
 *          WARNING ** WARNING ---> obsoleted <--- WARNING  ** WARNING
 *          Get default value of parameters of dbms_stats procedures
 *          Input arguments:
 *          pname   - parameter name
 *          Exceptions:
 *          ORA-20001: Invalid input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_reset_param_defaults();
 */
Datum dbms_stats_reset_param_defaults(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to restore statistics of all tables of
 * @details a schema as of a specified timestamp (as_of_timestamp).
 *          Input arguments:
 *          ownname  - schema of tables for which statistics to be restored
 *          as_of_timestamp - statistics as of this timestamp will be restored.
 *          force - restore statistics of tables even if their statistics are locked.
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Invalid or inconsistent values
 *          ORA-20006: Unable to restore statistics , statistics history not available
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_restore_database_stats(CAST(NULL AS text), CAST(NULL AS bool), CAST(NULL
 *            AS bool));
 * @param as_of_timestamp `text`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param no_invalidate `bool`, входное значение.
 */
Datum dbms_stats_restore_database_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to restore statistics of all fixed tables
 * @details as of a specified timestamp (as_of_timestamp).
 *          To run this procedure, you must have the SYSDBA or ANALYZE ANY DICTIONARY
 *          system privilege.
 *          Input arguments:
 *          as_of_timestamp - statistics as of this timestamp will be restored.
 *          force - restore statistics of tables even if their statistics are locked.
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or inconsistent values
 *          ORA-20006: Unable to restore statistics , statistics history not available
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_restore_dictionary_stats(CAST(NULL AS text), CAST(NULL AS bool),
 *            CAST(NULL AS bool));
 * @param as_of_timestamp `text`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param no_invalidate `bool`, входное значение.
 */
Datum dbms_stats_restore_dictionary_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to restore statistics of all tables of
 * @details the database as of a specified timestamp (as_of_timestamp).
 *          Input arguments:
 *          as_of_timestamp - statistics as of this timestamp will be restored.
 *          force - restore statistics of tables even if their statistics are locked.
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or inconsistent values
 *          ORA-20006: Unable to restore statistics , statistics history not available
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_restore_fixed_objects_stats(CAST(NULL AS text), CAST(NULL AS bool),
 *            CAST(NULL AS bool));
 * @param as_of_timestamp `text`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param no_invalidate `bool`, входное значение.
 */
Datum dbms_stats_restore_fixed_objects_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to restore statistics of a table as of
 * @details a specified timestamp (as_of_timestamp). The procedure will restore
 *          statistics of associated indexes and columns as well. If the table
 *          statistics were locked at the specified timestamp the procedure will
 *          lock the statistics.
 *          Note:
 *          The procedure may not restore statistics correctly if analyze interface
 *          is used for computing/deleting statistics.
 *          Old statistics versions are not saved when SYSAUX tablespace is
 *          offline, this affects restore functionality.
 *          The procedure may not restore statistics if the table defn is
 *          changed (eg: column added/deleted, partition exchanged etc).
 *          Also it will not restore stats if the object is created after
 *          the specified timestamp.
 *          The procedure will not restore user defined statistics.
 *          Input arguments:
 *          ownname  - schema of table for which statistics to be restored
 *          tabname  - table name
 *          as_of_timestamp - statistics as of this timestamp will be restored.
 *          restore_cluster_index - If the table is part of a cluster,
 *          restore statistics of the cluster index if set to TRUE.
 *          force - restore statistics even if the table statistics are locked.
 *          if the table statistics were not locked at the specified
 *          timestamp, it will unlock the statistics
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Invalid or inconsistent values
 *          ORA-20006: Unable to restore statistics , statistics history not available
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_restore_schema_stats(CAST(NULL AS varchar2), CAST(NULL AS text),
 *            CAST(NULL AS bool), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param as_of_timestamp `text`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param no_invalidate `bool`, входное значение.
 */
Datum dbms_stats_restore_schema_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to restore statistics of all dictionary
 * @details tables (tables of 'SYS', 'SYSTEM' and RDBMS component schemas)
 *          as of a specified timestamp (as_of_timestamp).
 *          To run this procedure, you must have the SYSDBA OR
 *          both ANALYZE ANY DICTIONARY and ANALYZE ANY system privilege.
 *          Input arguments:
 *          as_of_timestamp - statistics as of this timestamp will be restored.
 *          force - restore statistics of tables even if their statistics are locked.
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or inconsistent values
 *          ORA-20006: Unable to restore statistics , statistics history not available
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_restore_system_stats(CAST(NULL AS text));
 * @param as_of_timestamp `text`, входное значение.
 */
Datum dbms_stats_restore_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to unlock the statistics of all
 * @details tables of a schema
 *          Input arguments:
 *          ownname  - schema of tables to unlock
 *          stattype - type of statistics to be unlocked
 *          'CACHE'  - unlock only caching statistics
 *          'DATA'   - unlock only data statistics
 *          'ALL'    - unlock both data and caching statistics. This is the default
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_restore_table_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS text), CAST(NULL AS bool), CAST(NULL AS bool), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param as_of_timestamp `text`, входное значение.
 * @param restore_cluster_index `bool`, входное значение, по умолчанию false (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param no_invalidate `bool`, входное значение.
 */
Datum dbms_stats_restore_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief ------------------------- resume_advisor_task -------------------------------
 * @details NAME:
 *          resume_advisor_task
 *          DESCRIPTION:
 *          Resume a previously interrupted task. It will only resume the execution
 *          that was most recently interrupted.
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_resume_advisor_task(CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 */
Datum dbms_stats_resume_advisor_task(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to delete the pendnig system statistics that
 * @details has been gathered but not published yet, i.e. stored as pending.
 *          To run this procedure, you need to have the gather_system_statistics role.
 *          Input Arguments:
 *          None.
 *          Examples:
 *          dbms_stats.delete_pending_system_stats;
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_resume_gather_stats();
 */
Datum dbms_stats_resume_gather_stats(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_save_inmemory_stats.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_save_inmemory_stats(CAST(NULL AS number));
 * @param objn `number`, входное значение.
 */
Datum dbms_stats_save_inmemory_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure transfers statistics for specified table(s) from a remote
 * @details database specified by dblink to the local database. It also transfers other
 *          statistics related structures like synopses, DML monitoring information etc.
 *          This procedure is allowed to execute as SYS only, otherwise you will
 *          get an error message 'Insufficient privileges'.
 *          In addition the user specified during the creation of the dblink is
 *          expected to have privileges to select from tables in the SYS schema.
 *          Parameters:
 *          dblink          - dblink name
 *          ownname         - owner name. If null transfers stats for all objects
 *          in all schemas in the database.
 *          tabname         - table name. If null, transfers stats for all objects
 *          of ownname.
 *          options         - different options. Specify ADD_GLOBAL_PREFS to
 *          transfer global preferences as well.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid input
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_seed_col_usage(CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS binary_integer));
 * @param sqlset_name `varchar2`, входное значение.
 * @param owner_name `varchar2`, входное значение.
 * @param time_limit `binary_integer`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_seed_col_usage(PG_FUNCTION_ARGS);
/**
 * @brief --------------------- set_advisor_task_parameter ----------------------------
 * @details NAME:
 *          set_advisor_task_parameter
 *          DESCRIPTION:
 *          update the value of of a statistics advisor task parameter.
 *          Possible parameters are:
 *          TIME_LIMIT      - Time Limit that the task can run (in minutes)
 *          OP_START_TIME   - Number of days the advisor task looks back
 *          PARAMETERS:
 *          task_name:          (IN) - name of the statistics advisor task
 *          parameter           (IN) - Name of the parameter to set
 *          value               (IN) - New value of the parameter
 *          NOTES:
 *          The function will give an error if the specified parameter does not exist.
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: User Input errors
 *          ORA-20012: Statistics Advisor errors
 *          -----------------------------------------------------------------------------
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_advisor_task_parameter(CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS varchar2));
 * @param task_name `varchar2`, входное значение.
 * @param parameter `varchar2`, входное значение.
 * @param value `varchar2`, входное значение.
 */
Datum dbms_stats_set_advisor_task_parameter(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to resume statistics gathering at the point
 * @details where it was interrupted. Statistics gathering can be interrupted
 *          as a result of a user action or a system event.
 *          To run this procedure, you need to have the SYSDBA role OR both
 *          ANALYZE ANY DICTIONARY and ANALYZE ANY system privileges.
 *          Input arguments:
 *          None.
 *          Examples:
 *          dbms_stats.resume_gather_stats();
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_column_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL
 *            AS text), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS varchar2), CAST(NULL
 *            AS bool), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param colname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param distcnt `number`, входное значение, по умолчанию NULL (source CSV).
 * @param density `number`, входное значение, по умолчанию NULL (source CSV).
 * @param nullcnt `number`, входное значение, по умолчанию NULL (source CSV).
 * @param srec `text`, входное значение, по умолчанию NULL (source CSV).
 * @param avgclen `number`, входное значение, по умолчанию NULL (source CSV).
 * @param flags `number`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_set_column_stats_0(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_set_column_stats.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_column_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            varchar2), CAST(NULL AS raw), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS varchar2), CAST(NULL AS bool), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param colname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param ext_stats `raw`, входное значение.
 * @param stattypown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattypname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_set_column_stats_1(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to import the statistics preferences of all
 * @details the tables owner by the specified owner name.
 *          To run this procedure, you need to connect as owner, have the SYSDBA
 *          privilege, OR have the ANALYZE ANY system privilege
 *          Input arguments:
 *          ownname - owner name
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid  - (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different from ownname)
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.import_schema_prefs('SH', 'MY_STAT_TAB');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20000: Schema "<schema>" does not exist
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_database_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS bool));
 * @param pname `varchar2`, входное значение.
 * @param pvalue `varchar2`, входное значение.
 * @param add_sys `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_set_database_prefs(PG_FUNCTION_ARGS);
/**
 * @brief This procedure resets the global preference to the default values
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_global_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param pname `varchar2`, входное значение.
 * @param pvalue `varchar2`, входное значение.
 */
Datum dbms_stats_set_global_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Set column-related information
 * @details Input arguments:
 *          ownname - The name of the schema
 *          tabname - The name of the table to which this column belongs
 *          colname - The name of the column or extension
 *          partname - The name of the table partition in which to store
 *          the statistics.  If the table is partitioned and partname
 *          is null, the statistics will be stored at the global table
 *          level.
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.  If stattab is null, the statistics
 *          will be stored directly in the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          distcnt - The number of distinct values
 *          density - The column density.  If this value is null and distcnt is
 *          not null, density will be derived from distcnt.
 *          nullcnt - The number of nulls
 *          srec - StatRec structure filled in by a call to prepare_column_values
 *          or get_column_stats.
 *          avgclen - The average length for the column (in bytes)
 *          flags - For internal Oracle use (should be left as null)
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          force - set the values even if statistics of the object is locked
 *          Input arguments for user-defined statistics:
 *          ext_stats - external (user-defined) statistics
 *          stattypown - owner of statistics type associated with column
 *          stattypname - name of statistics type associated with column
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Invalid or inconsistent input values
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_index_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            number), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS
 *            number), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS
 *            number), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param indname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param numrows `number`, входное значение, по умолчанию NULL (source CSV).
 * @param numlblks `number`, входное значение, по умолчанию NULL (source CSV).
 * @param numdist `number`, входное значение, по умолчанию NULL (source CSV).
 * @param avglblk `number`, входное значение, по умолчанию NULL (source CSV).
 * @param avgdblk `number`, входное значение, по умолчанию NULL (source CSV).
 * @param clstfct `number`, входное значение, по умолчанию NULL (source CSV).
 * @param indlevel `number`, входное значение, по умолчанию NULL (source CSV).
 * @param flags `number`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param guessq `number`, входное значение, по умолчанию NULL (source CSV).
 * @param cachedblk `number`, входное значение, по умолчанию NULL (source CSV).
 * @param cachehit `number`, входное значение, по умолчанию NULL (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_set_index_stats_0(PG_FUNCTION_ARGS);
/**
 * @brief процедура dbms_stats_set_index_stats.
 * @details Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_index_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            raw), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS bool), CAST(NULL AS bool));
 * @param ownname `varchar2`, входное значение.
 * @param indname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param ext_stats `raw`, входное значение.
 * @param stattypown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattypname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 */
Datum dbms_stats_set_index_stats_1(PG_FUNCTION_ARGS);
/**
 * @brief Convert user-specified minimum, maximum, and histogram endpoint
 * @details datatype-specific values into Oracle's internal representation
 *          for future storage via set_column_stats.
 *          Generic input arguments:
 *          srec.epc - The number of values specified in charvals, datevals,
 *          numvals, or rawvals.  This value must be between 2 and 2050 inclusive.
 *          Should be set to 2 for procedures which don't allow histogram
 *          information (nvarchar and rowid).
 *          The first corresponding array entry should hold the minimum
 *          value for the column and the last entry should hold the maximum.
 *          If there are more than two entries, then all the others hold the
 *          remaining histogram endpoint values
 *          (with in-between values ordered from next-smallest to next-largest).
 *          This value may be adjusted to account for compression, so the
 *          returned value should be left as is for a call to set_column_stats.
 *          srec.bkvals - If a frequency or hybrid histogram is desired, this array
 *          contains the number of occurrences of each distinct value specified in
 *          charvals, datevals, numvals, or rawvals.  Otherwise, it is merely an
 *          output argument and must be set to null when this procedure is
 *          called.
 *          srec.rpcnts - If a hybrid histogram is desired, this array contains
 *          the total frequency of values that are less than or equal to each
 *          distinct value specified in  charvals, datevals, numvals, or rawvals.
 *          Otherwise, it is merely an output argument and must be set to null
 *          when this procedure is called.
 *          As an example, for a given array numvals with numvals(i)=4,
 *          rpcnts(i)=13 means that there are 13 rows in the column which
 *          are less than or equal to 4.
 *          ** Note that whenever srec.rpcnts is populated, srec.bkvals must be
 *          populated as described above, too.
 *          ** Also note that, whenever bkvals and/or rpcnts are populated, there
 *          should not be any duplicates in charvals, datevals, numvals, or
 *          rawvals.
 *          Datatype specific input arguments (one of these):
 *          charvals - The array of values when the column type is character-based.
 *          Up to the first 64 bytes of each string should be provided.
 *          Arrays must have between 2 and 2050 entries, inclusive.
 *          If the datatype is fixed char, the strings must be space padded
 *          to 15 characters for correct normalization.
 *          datevals - The array of values when the column type is date-based.
 *          numvals - The array of values when the column type is numeric-based.
 *          rawvals - The array of values when the column type is raw.
 *          Up to the first 64 bytes of each strings should be provided.
 *          nvmin,nvmax - The minimum and maximum values when the column type
 *          is national character set based (NLS).  No histogram information
 *          can be provided for a column of this type.
 *          If the datatype is fixed char, the strings must be space padded
 *          to 15 characters for correct normalization.
 *          rwmin,rwmax - The minimum and maximum values when the column type
 *          is rowid.  No histogram information can be provided for a column
 *          of this type.
 *          Output arguments:
 *          srec.minval - Internal representation of the minimum which is
 *          suitable for use in a call to set_column_stats.
 *          srec.maxval - Internal representation of the maximum which is
 *          suitable for use in a call to set_column_stats.
 *          srec.bkvals - array suitable for use in a call to set_column_stats.
 *          srec.novals - array suitable for use in a call to set_column_stats.
 *          srec.eavals - array suitable for use in a call to set_column_stats.
 *          srec.rpcnts - array suitable for use in a call to set_column_stats.
 *          Exceptions:
 *          ORA-20001: Invalid or inconsistent input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_param(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param pname `varchar2`, входное значение.
 * @param pval `varchar2`, входное значение.
 */
Datum dbms_stats_set_param(PG_FUNCTION_ARGS);
/**
 * @brief This procedure reports the recorded column (group) usage information.
 * @details Parameters:
 *          ownname         - owner name. If null it reports column usage
 *          information for tables in all schemas in the database.
 *          tabname         - table name. If null, it reports column usage
 *          information for all tables of ownname.
 *          Examples:
 *          The following example shows column usage information for customers table
 *          in SH schema.
 *          SQL> set long 100000
 *          SQL> set lines 120
 *          SQL> set pages 0
 *          SQL>
 *          SQL> -- Display column usage
 *          SQL> select dbms_stats.report_col_usage('sh', 'customers') from dual;
 *          LEGEND:
 *          .......
 *          EQ         : Used in single table EQuality predicate
 *          RANGE      : Used in single table RANGE predicate
 *          LIKE       : Used in single table LIKE predicate
 *          NULL       : Used in single table is (not) NULL predicate
 *          EQ_JOIN    : Used in EQuality JOIN predicate
 *          NONEQ_JOIN : Used in NON EQuality JOIN predicate
 *          FILTER     : Used in single table FILTER predicate
 *          JOIN       : Used in JOIN predicate
 *          GROUP_BY   : Used in GROUP BY expression
 *          .............................................................................
 *          #############################################################################
 *          COLUMN USAGE REPORT FOR SH.CUSTOMERS
 *          ....................................
 *          1. COUNTRY_ID                          : EQ
 *          2. CUST_CITY                           : EQ
 *          3. CUST_STATE_PROVINCE                 : EQ
 *          4. (CUST_CITY, CUST_STATE_PROVINCE,
 *          COUNTRY_ID)                        : FILTER
 *          5. (CUST_STATE_PROVINCE, COUNTRY_ID)   : GROUP_BY
 *          #############################################################################
 *          -----------------------------------------------------------------------
 *          procedure set_processing_rate
 *          -----------------------------------------------------------------------
 *          Sets the value of rate of processing for a given operation.
 *          Input arguments:
 *          opName   - Name of the operation
 *          Valid values: ALL, CPU, CPU_ACCESS, CPU_AGGR,
 *          CPU_BYTES_PER_SEC, CPU_FILTER, CPU_GBY, CPU_HASH_JOIN,
 *          CPU_JOIN, CPU_NL_JOIN, CPU_RANDOM_ACCESS,
 *          CPU_SEQUENTIAL_ACCESS, CPU_SM_JOIN, CPU_SORT, IO,
 *          IO_ACCESS, IO_BYTES_PER_SEC, IO_RANDOM_ACCESS,
 *          IO_SEQUENTIAL_ACCESS, HASH, AGGR, MEMCMP, MEMCPY
 *          procRate - Processing Rate
 *          Output arguments: None
 *          Privileges: The user issuing should have the role optimizer_processing_rate
 *          or dba
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Invalid or inconsistent input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_processing_rate(CAST(NULL AS varchar2), CAST(NULL AS number));
 * @param opname `varchar2`, входное значение.
 * @param procrate `number`, входное значение.
 */
Datum dbms_stats_set_processing_rate(PG_FUNCTION_ARGS);
/**
 * @brief This procedure is used to set the statistics preferences of the
 * @details specified table in the specified schema.
 *          To run this procedure, you need to connect as owner of the table
 *          or be granted ANALYZE ANY system privilege.
 *          Input arguments:
 *          ownname - owner name
 *          tabname - table name
 *          stattab - The user stat table identifier describing from where
 *          to retrieve the statistics.
 *          statid  - (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          Notes:
 *          All arguments are of type varchar2 and values are enclosed in quotes.
 *          Examples:
 *          dbms_stats.import_table_prefs('SH', 'SALES', 'MY_STAT_TAB');
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20000: Schema "<schema>" does not exist
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_schema_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param pname `varchar2`, входное значение.
 * @param pvalue `varchar2`, входное значение.
 */
Datum dbms_stats_set_schema_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Input arguments:
 * @details stattab - The user stat table identifier describing from where to get
 *          the current statistics info. If stattab is null, the statistics info
 *          will be obtained directly from the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab.
 *          statown - The schema containing stattab (if different then ownname)
 *          pname - parameter name to get
 *          Output arguments:
 *          status - returns one of the following: COMPLETED, AUTOGATHERING,
 *          MANUALGATHERING, BADSTATS
 *          dstart - date when system stats gathering has been started
 *          dstop - date when gathering was finished if status =  COMPLETE,
 *          will be finished if status = AUTOGATHERING,
 *          had to be finished if status = BADSTATS,
 *          dstarted if status = MANUALGATHERING,
 *          the following parameters defined only if status = COMPLETE
 *          pvalue   - parameter value to get
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20003: Unable to get system statistics
 *          ORA-20004: Parameter doesn't exist
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_system_stats(CAST(NULL AS varchar2), CAST(NULL AS number), CAST(NULL
 *            AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param pname `varchar2`, входное значение.
 * @param pvalue `number`, входное значение.
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_set_system_stats(PG_FUNCTION_ARGS);
/**
 * @brief Get default value of the specified preference.
 * @details If the ownname and tabname are provided and a preference has been entered
 *          for the table then it returns the preference as specified for the table.
 *          In all other cases it returns the global preference, in case it has been
 *          specified, otherwise the default value is returned.
 *          Input arguments:
 *          pname   - preference name
 *          The default value for following preferences can be retrieved.
 *          CASCADE
 *          DEGREE
 *          ESTIMATE_PERCENT
 *          METHOD_OPT
 *          NO_INVALIDATE
 *          GRANULARITY
 *          PUBLISH
 *          INCREMENTAL
 *          INCREMENTAL_LEVEL
 *          INCREMENTAL_STALENESS
 *          GLOBAL_TEMP_TABLE_STATS
 *          STALE_PERCENT
 *          AUTOSTATS_TARGET
 *          CONCURRENT
 *          TABLE_CACHED_BLOCKS
 *          OPTIONS
 *          STAT_CATEGORY
 *          PREFERENCE_OVERRIDES_PARAMETER
 *          APPROXIMATE_NDV_ALGORITHM
 *          AUTO_STAT_EXTENSIONS
 *          WAIT_TIME_TO_UPDATE_STATS
 *          ROOT_TRIGGER_PDB
 *          COORDINATOR_TRIGGER_SHARD
 *          AUTO_STATS_ADVISOR_TASK
 *          ownname - owner name
 *          tabname - table name
 *          Exceptions:
 *          ORA-20001: Invalid input values
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_table_prefs(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param pname `varchar2`, входное значение.
 * @param pvalue `varchar2`, входное значение.
 */
Datum dbms_stats_set_table_prefs(PG_FUNCTION_ARGS);
/**
 * @brief Set index-related information
 * @details Input arguments:
 *          ownname - The name of the schema
 *          indname - The name of the index
 *          partname - The name of the index partition in which to store
 *          the statistics.  If the index is partitioned and partname
 *          is null, the statistics will be stored at the global index
 *          level.
 *          stattab - The user stat table identifier describing where
 *          to store the statistics.  If stattab is null, the statistics
 *          will be stored directly in the dictionary.
 *          statid - The (optional) identifier to associate with these statistics
 *          within stattab (Only pertinent if stattab is not NULL).
 *          numrows - The number of rows in the index (partition)
 *          numlblks - The number of leaf blocks in the index (partition)
 *          numdist - The number of distinct keys in the index (partition)
 *          avglblk - Average integral number of leaf blocks in which each
 *          distinct key appears for this index (partition).  If not provided,
 *          this value will be derived from numlblks and numdist.
 *          avgdblk - Average integral number of data blocks in the table
 *          pointed to by a distinct key for this index (partition).
 *          If not provided, this value will be derived from clstfct
 *          and numdist.
 *          clstfct - See clustering_factor column of the all_indexes view
 *          for a description.
 *          indlevel - The height of the index (partition)
 *          flags - For internal Oracle use (should be left as null)
 *          statown - The schema containing stattab (if different then ownname)
 *          no_invalidate - Do not invalide the dependent cursors if set to TRUE.
 *          The procedure invalidates the dependent cursors immediately
 *          if set to FALSE.
 *          Use DBMS_STATS.AUTO_INVALIDATE to have oracle decide when to
 *          invalidate dependend cursors. This is the default. The default
 *          can be changed using set_param procedure.
 *          guessq - IOT guess quality.  See pct_direct_access column of the
 *          all_indexes view for a description.
 *          force - set the values even if statistics of the object is locked
 *          Input arguments for user-defined statistics:
 *          ext_stats - external (user-defined) statistics
 *          stattypown - owner of statistics type associated with index
 *          stattypname - name of statistics type associated with index
 *          Exceptions:
 *          ORA-20000: Object does not exist or insufficient privileges
 *          ORA-20001: Invalid input value
 *          ORA-20002: Bad user statistics table, may need to upgrade it
 *          ORA-20005: object statistics are locked
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_set_table_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL AS
 *            number), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS
 *            varchar2), CAST(NULL AS bool), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS
 *            bool), CAST(NULL AS number), CAST(NULL AS number), CAST(NULL AS number));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param stattab `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param statid `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param numrows `number`, входное значение, по умолчанию NULL (source CSV).
 * @param numblks `number`, входное значение, по умолчанию NULL (source CSV).
 * @param avgrlen `number`, входное значение, по умолчанию NULL (source CSV).
 * @param flags `number`, входное значение, по умолчанию NULL (source CSV).
 * @param statown `varchar2`, входное значение, по умолчанию NULL (source CSV).
 * @param no_invalidate `bool`, входное значение.
 * @param cachedblk `number`, входное значение, по умолчанию NULL (source CSV).
 * @param cachehit `number`, входное значение, по умолчанию NULL (source CSV).
 * @param force `bool`, входное значение, по умолчанию false (source CSV).
 * @param im_imcu_count `number`, входное значение, по умолчанию NULL (source CSV).
 * @param im_block_count `number`, входное значение, по умолчанию NULL (source CSV).
 * @param scanrate `number`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_set_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure merges column usage information from a source database,
 * @details specified via a dblink, into the local database.
 *          If the column usage information already exists for a given table and
 *          column then it will combine both the local and the remote information
 *          otherwise it will insert the remote information as new.
 *          This procedure is allowed to execute as SYS only, otherwise you will
 *          get an error message 'Insufficient privileges'.
 *          In addition the user specified during the creation of the dblink is
 *          expected to have privileges to select from tables in the SYS schema.
 *          Parameters:
 *          dblink     - dblink name
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Parameter dblink cannot be null
 *          ORA-20002: Unable to create a temp table
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_transfer_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2), CAST(NULL
 *            AS varchar2), CAST(NULL AS number));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param dblink `varchar2`, входное значение.
 * @param options `number`, входное значение, по умолчанию NULL (source CSV).
 */
Datum dbms_stats_transfer_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to unlock the statistics on the table
 * @details Input arguments:
 *          ownname  - schema of table to unlock
 *          tabname  - name of the table
 *          stattype - type of statistics to be unlocked
 *          'CACHE'  - unlock only caching statistics
 *          'DATA'   - unlock only data statistics
 *          'ALL'    - unlock both data and caching statistics. This is the default
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_unlock_partition_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param partname `varchar2`, входное значение.
 */
Datum dbms_stats_unlock_partition_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to unlock statistics for a partition
 * @details Input arguments:
 *          ownname   - schema of table to unlock
 *          tabname   - name of the table
 *          partname  - name of the partition
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_unlock_schema_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию ALL (source CSV).
 */
Datum dbms_stats_unlock_schema_stats(PG_FUNCTION_ARGS);
/**
 * @brief This procedure enables the user to lock the statistics of all
 * @details tables of a schema
 *          Input arguments:
 *          ownname  - schema of tables to lock
 *          stattype - type of statistics to be locked
 *          'CACHE'  - lock only caching statistics
 *          'DATA'   - lock only data statistics
 *          'ALL'    - lock both data and caching statistics. This is the default
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_unlock_table_stats(CAST(NULL AS varchar2), CAST(NULL AS varchar2),
 *            CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param tabname `varchar2`, входное значение.
 * @param stattype `varchar2`, входное значение, по умолчанию ALL (source CSV).
 */
Datum dbms_stats_unlock_table_stats(PG_FUNCTION_ARGS);
/**
 * @brief Drops a user stat table
 * @details Input arguments:
 *          ownname - The name of the schema
 *          stattab - The user stat table identifier
 *          Exceptions:
 *          ORA-20000: Insufficient privileges
 *          ORA-20001: Table is not a statistics table
 *          ORA-20002: Table does not exist
 *          Сгенерирован публичный SQL-контракт и каркас C++ без прикладной реализации.
 *          Входы и результат нормализованы из inventory/spec для синхронизации HPP и каталога.
 *          Примеры:
 *            CALL dbms_stats_upgrade_stat_table(CAST(NULL AS varchar2), CAST(NULL AS varchar2));
 * @param ownname `varchar2`, входное значение.
 * @param stattab `varchar2`, входное значение.
 */
Datum dbms_stats_upgrade_stat_table(PG_FUNCTION_ARGS);
} // extern "C"
 
#endif // DBMS_STATS_INTERNAL_HPP