summaryrefslogtreecommitdiff
path: root/doc/src/sgml/release-18.sgml
blob: 80cf415bb769b47a72cadb6ad2236bf54cb0abe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
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
<!-- doc/src/sgml/release-18.sgml -->
<!-- See header comment in release.sgml about typical markup -->

 <sect1 id="release-18">
  <title>Release 18</title>

  <formalpara>
   <title>Release date:</title>
   <para>2025-??-??, CURRENT AS OF 2025-05-01</para>
  </formalpara>

  <sect2 id="release-18-highlights">
   <title>Overview</title>

   <para>
    <productname>PostgreSQL</productname> 18 contains many new features
    and enhancements, including:
   </para>

   <itemizedlist>

    <listitem>
     <para>
      (to be completed)
     </para>
    </listitem>
   </itemizedlist>

   <para>
    The above items and other new features of
    <productname>PostgreSQL</productname> 18 are explained in more detail
    in the sections below.
   </para>

  </sect2>

  <sect2  id="release-18-migration">

   <title>Migration to Version 18</title>

   <para>
    A dump/restore using <xref linkend="app-pg-dumpall"/> or use of
    <xref linkend="pgupgrade"/> or logical replication is required for
    those wishing to migrate data from any previous release.  See <xref
    linkend="upgrading"/> for general information on migrating to new
    major releases.
   </para>

   <para>
    Version 18 contains a number of changes that may affect compatibility
    with previous releases.  Observe the following incompatibilities:
   </para>

   <itemizedlist>

<!--
Author: Tom Lane <[email protected]>
2025-01-16 [d7674c9fa] Seek zone abbreviations in the IANA data before timezone
-->

<listitem>
<para>
Change time zone abbreviation handling (Tom Lane)
<ulink url="&commit_baseurl;d7674c9fa">&sect;</ulink>
</para>

<para>
The system will now favor the current session's time zone abbreviations before checking the server variable timezone_abbreviations. Previously timezone_abbreviations was
checked first.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2024-12-02 [db6a4a985] Deprecate MD5 passwords.
-->

<listitem>
<para>
Deprecate MD5 password authentication (Nathan Bossart)
<ulink url="&commit_baseurl;db6a4a985">&sect;</ulink>
</para>

<para>
Warnings generated by their use can be disabled by the server variable md5_password_warnings.
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-09-24 [62ddf7ee9] Add ONLY support for VACUUM and ANALYZE
-->

<listitem>
<para>
Change VACUUM and ANALYZE to process the inheritance children of a parent (Michael Harris)
<ulink url="&commit_baseurl;62ddf7ee9">&sect;</ulink>
</para>

<para>
The previous behavior can be performed by using the new ONLY option.
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-09-30 [770233748] Do not treat \. as an EOF marker in CSV mode for COPY IN
Author: Tom Lane <[email protected]>
2024-10-01 [da8a4c166] Reject a copy EOF marker that has data ahead of it on th
-->

<listitem>
<para>
Prevent COPY FROM from treating \. as an end-of-file marker when reading CSV files (Daniel Vérité, Tom Lane)
<ulink url="&commit_baseurl;770233748">&sect;</ulink>
<ulink url="&commit_baseurl;da8a4c166">&sect;</ulink>
</para>

<para>
psql will still treat \. as an end-of-file marker when reading CSV files from STDIN.  Older psql clients connecting to Postgres 18 servers might experience \copy problems.  This
release also enforces that \. must appear alone on a line.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-10-03 [e2bab2d79] Remove support for unlogged on partitioned tables
-->

<listitem>
<para>
Disallow unlogged partitioned tables (Michael Paquier)
<ulink url="&commit_baseurl;e2bab2d79">&sect;</ulink>
</para>

<para>
Previously ALTER TABLE SET [UN]LOGGED did nothing, and the creation of an unlogged partitioned table did not cause its children to be unlogged.
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2024-09-12 [fefa76f70] Remove old RULE privilege completely.
-->

<listitem>
<para>
Remove non-functional support for RULE privileges in GRANT/REVOKE (Fujii Masao)
<ulink url="&commit_baseurl;fefa76f70">&sect;</ulink>
</para>

<para>
These have been non-functional since Postgres 8.2.
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-08-12 [f0d112759] Remove "parent" column from pg_backend_memory_contexts
-->

<listitem>
<para>
Remove column pg_backend_memory_contexts.parent (Melih Mutlu)
<ulink url="&commit_baseurl;f0d112759">&sect;</ulink>
</para>

<para>
This is now longer needed since pg_backend_memory_contexts.path was added.
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-07-25 [32d3ed816] Add path column to pg_backend_memory_contexts view
-->

<listitem>
<para>
Change pg_backend_memory_contexts.level to be one-based (Melih Mutlu)
<ulink url="&commit_baseurl;32d3ed816">&sect;</ulink>
</para>

<para>
It was previously zero-based.
</para>
</listitem>

   </itemizedlist>

  </sect2>

  <sect2 id="release-18-changes">
   <title>Changes</title>

    <para>
     Below you will find a detailed account of the changes between
    <productname>PostgreSQL</productname> 18 and the previous major
    release.
    </para>

   <sect3 id="release-18-server">
    <title>Server</title>

    <sect4 id="release-18-optimizer">
     <title>Optimizer</title>

     <itemizedlist>

<!--
Author: Alexander Korotkov <[email protected]>
2025-02-17 [fc069a3a6] Implement Self-Join Elimination
-->

<listitem>
<para>
Remove some unnecessary table self-joins (Andrey Lepikhov, Alexander Kuzmenkov, Alexander Korotkov, Alena Rybakina)
<ulink url="&commit_baseurl;fc069a3a6">&sect;</ulink>
</para>

<para>
This optimization can be disabled using server variable enable_self_join_elimination.
</para>
</listitem>

<!--
Author: Alexander Korotkov <[email protected]>
2025-04-04 [c0962a113] Convert 'x IN (VALUES ...)' to 'x = ANY ...' then approp
-->

<listitem>
<para>
Convert some 'IN (VALUES ...)' to 'x = ANY ...' for better optimizer statistics (Alena Rybakina, Andrei Lepikhov)
<ulink url="&commit_baseurl;c0962a113">&sect;</ulink>
</para>
</listitem>

<!--
Author: Alexander Korotkov <[email protected]>
2024-11-24 [ae4569161] Teach bitmap path generation about transforming OR-claus
-->

<listitem>
<para>
Allow transforming OR-clauses to arrays for faster index processing (Alexander Korotkov, Andrey Lepikhov)
<ulink url="&commit_baseurl;ae4569161">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-09-10 [52c707483] Use a hash table to de-duplicate column names in ruleuti
Author: Tom Lane <[email protected]>
2024-12-19 [276279295] Convert SetOp to read its inputs as outerPlan and innerP
Author: Tom Lane <[email protected]>
2024-12-19 [8d96f57d5] Improve planner's handling of SetOp plans.
Author: David Rowley <[email protected]>
2024-09-05 [908a96861] Optimize WindowAgg's use of tuplestores
-->

<listitem>
<para>
Speed up the processing of INTERSECT, EXCEPT, window aggregates, and view column aliases (Tom Lane, David Rowley)
<ulink url="&commit_baseurl;52c707483">&sect;</ulink>
<ulink url="&commit_baseurl;276279295">&sect;</ulink>
<ulink url="&commit_baseurl;8d96f57d5">&sect;</ulink>
<ulink url="&commit_baseurl;908a96861">&sect;</ulink>
</para>
</listitem>

<!--
Author: Richard Guo <[email protected]>
2024-11-26 [a8ccf4e93] Reordering DISTINCT keys to match input path's pathkeys
-->

<listitem>
<para>
Allow the keys of SELECT DISTINCT to be internally reordered to avoid sorting (Richard Guo)
<ulink url="&commit_baseurl;a8ccf4e93">&sect;</ulink>
</para>

<para>
This optimization can be disabled using enable_distinct_reordering.
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-12-12 [bd10ec529] Detect redundant GROUP BY columns using UNIQUE indexes
-->

<listitem>
<para>
Ignore GROUP BY columns that are functionally dependent on other columns (Zhang Mingli, Jian He, David Rowley)
<ulink url="&commit_baseurl;bd10ec529">&sect;</ulink>
</para>

<para>
If a GROUP BY clause includes all columns of a unique index, as well as other columns of the same table, those other columns are redundant and can be dropped
from the grouping.  This was already true for non-deferred primary keys.
</para>
</listitem>

<!--
Author: Richard Guo <[email protected]>
2024-10-09 [67a54b9e8] Allow pushdown of HAVING clauses with grouping sets
-->

<listitem>
<para>
Allow some HAVING clauses on GROUPING SETS to be pushed to WHERE clauses (Richard Guo)
<ulink url="&commit_baseurl;67a54b9e8">&sect;</ulink>
</para>

<para>
This allows earlier row filtering.
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-07-09 [036bdcec9] Teach planner how to estimate rows for timestamp generat
Author: Dean Rasheed <[email protected]>
2024-12-02 [97173536e] Add a planner support function for numeric generate_seri
-->

<listitem>
<para>
Improve row estimates for generate_series() using numeric and timestamp values (David Rowley, Song Jinzhou)
<ulink url="&commit_baseurl;036bdcec9">&sect;</ulink>
<ulink url="&commit_baseurl;97173536e">&sect;</ulink>
</para>
</listitem>

<!--
Author: Richard Guo <[email protected]>
2024-07-05 [aa86129e1] Support "Right Semi Join" plan shapes
-->

<listitem>
<para>
Allow the optimizer to use "Right Semi Join" plans (Richard Guo)
<ulink url="&commit_baseurl;aa86129e1">&sect;</ulink>
</para>

<para>
Semi-joins are used when needing to find if there is at least one match.
</para>
</listitem>

<!--
Author: Richard Guo <[email protected]>
2024-10-09 [828e94c9d] Consider explicit incremental sort for mergejoins
-->

<listitem>
<para>
Allow merge joins to use incremental sorts (Richard Guo)
<ulink url="&commit_baseurl;828e94c9d">&sect;</ulink>
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-08-20 [adf97c156] Speed up Hash Join by making ExprStates support hashing
Author: David Rowley <[email protected]>
2024-12-11 [0f5738202] Use ExprStates for hashing in GROUP BY and SubPlans
Author: Jeff Davis <[email protected]>
2025-03-24 [4d143509c] Create accessor functions for TupleHashEntry.
Author: Jeff Davis <[email protected]>
2025-03-24 [a0942f441] Add ExecCopySlotMinimalTupleExtra().
Author: Jeff Davis <[email protected]>
2025-03-24 [626df47ad] Remove 'additional' pointer from TupleHashEntryData.
-->

<listitem>
<para>
Improve the performance and reduce memory usage of hash joins and GROUP BY (David Rowley, Jeff Davis)
<ulink url="&commit_baseurl;adf97c156">&sect;</ulink>
<ulink url="&commit_baseurl;0f5738202">&sect;</ulink>
<ulink url="&commit_baseurl;4d143509c">&sect;</ulink>
<ulink url="&commit_baseurl;a0942f441">&sect;</ulink>
<ulink url="&commit_baseurl;626df47ad">&sect;</ulink>
</para>

<para>
This also improves hash set operations used by EXCEPT, and hash lookups of subplan values.
</para>
</listitem>

<!--
Author: Amit Langote <[email protected]>
2025-04-04 [88f55bc97] Make derived clause lookup in EquivalenceClass more effi
Author: David Rowley <[email protected]>
2025-04-08 [d69d45a5a] Speedup child EquivalenceMember lookup in planner
-->

<listitem>
<para>
Improve the efficiency of planning queries accessing many partitions (Ashutosh Bapat, Yuya Watari, David Rowley)
<ulink url="&commit_baseurl;88f55bc97">&sect;</ulink>
<ulink url="&commit_baseurl;d69d45a5a">&sect;</ulink>
</para>
</listitem>

<!--
Author: Richard Guo <[email protected]>
2024-07-30 [9b282a935] Fix partitionwise join with partially-redundant join cla
Author: Richard Guo <[email protected]>
2024-07-29 [513f4472a] Reduce memory used by partitionwise joins
-->

<listitem>
<para>
Allow partitionwise joins in more cases, and reduce its memory usage (Richard Guo, Tom Lane, Ashutosh Bapat)
<ulink url="&commit_baseurl;9b282a935">&sect;</ulink>
<ulink url="&commit_baseurl;513f4472a">&sect;</ulink>
</para>
</listitem>

<!--
Author: Alexander Korotkov <[email protected]>
2025-03-10 [fae535da0] Teach Append to consider tuple_fraction when accumulatin
-->

<listitem>
<para>
Improve cost estimates of partition queries (Nikita Malakhov, Andrei Lepikhov)
<ulink url="&commit_baseurl;fae535da0">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-04-02 [0dca5d68d] Change SQL-language functions to use the plan cache.
Author: Tom Lane <[email protected]>
2025-04-17 [09b07c295] Minor performance improvement for SQL-language functions
-->

<listitem>
<para>
Improve SQL-language function plan caching (Alexander Pyhalov, Tom Lane)
<ulink url="&commit_baseurl;0dca5d68d">&sect;</ulink>
<ulink url="&commit_baseurl;09b07c295">&sect;</ulink>
</para>
</listitem>

<!--
Author: Robert Haas <[email protected]>
2024-08-21 [e22253467] Treat number of disabled nodes in a path as a separate c
-->

<listitem>
<para>
Improve handling of disabled optimizer features (Robert Haas)
<ulink url="&commit_baseurl;e22253467">&sect;</ulink>
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-indexes">
     <title>Indexes</title>

     <itemizedlist>

<!--
Author: Peter Geoghegan <[email protected]>
2025-04-04 [92fe23d93] Add nbtree skip scan optimization.
Author: Peter Geoghegan <[email protected]>
2025-04-04 [8a510275d] Further optimize nbtree search scan key comparisons.
Author: Peter Geoghegan <[email protected]>
2025-04-04 [8a510275d] Further optimize nbtree search scan key comparisons.
-->

<listitem>
<para>
Allow skip scans of btree indexes (Peter Geoghegan)
<ulink url="&commit_baseurl;92fe23d93">&sect;</ulink>
<ulink url="&commit_baseurl;8a510275d">&sect;</ulink>
<ulink url="&commit_baseurl;8a510275d">&sect;</ulink>
</para>

<para>
This is effective if the earlier non-referenced columns contain few unique values.
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-03-18 [f278e1fe3] Allow non-btree unique indexes for partition keys
Author: Peter Eisentraut <[email protected]>
2025-03-18 [9d6db8bec] Allow non-btree unique indexes for matviews
-->

<listitem>
<para>
Allow non-btree unique indexes to be used as partition keys and in materialized views (Mark Dilger)
<ulink url="&commit_baseurl;f278e1fe3">&sect;</ulink>
<ulink url="&commit_baseurl;9d6db8bec">&sect;</ulink>
</para>

<para>
The index type must still support equality.
</para>
</listitem>

<!--
Author: Tomas Vondra <[email protected]>
2025-03-03 [8492feb98] Allow parallel CREATE INDEX for GIN indexes
-->

<listitem>
<para>
Allow GIN indexes to be created in parallel (Tomas Vondra, Matthias van de Meent)
<ulink url="&commit_baseurl;8492feb98">&sect;</ulink>
</para>
</listitem>

<!--
Author: Heikki Linnakangas <[email protected]>
2025-04-02 [e9e7b6604] Add GiST and btree sortsupport routines for range types
-->

<listitem>
<para>
Allow values to be sorted to speed rangetype GiST and btree index builds (Bernd Helmle)
<ulink url="&commit_baseurl;e9e7b6604">&sect;</ulink>
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-performance">
     <title>General Performance</title>

     <itemizedlist>

<!--
Author: Andres Freund <[email protected]>
2025-03-17 [02844012b] aio: Basic subsystem initialization
Author: Andres Freund <[email protected]>
2025-03-17 [da7226993] aio: Add core asynchronous I/O infrastructure
Author: Andres Freund <[email protected]>
2025-03-18 [55b454d0e] aio: Infrastructure for io_method=worker
Author: Andres Freund <[email protected]>
2025-03-18 [247ce06b8] aio: Add io_method=worker
Author: Thomas Munro <[email protected]>
2025-03-19 [10f664684] Introduce io_max_combine_limit.
Author: Thomas Munro <[email protected]>
2025-03-19 [06fb5612c] Increase io_combine_limit range to 1MB.
Author: Andres Freund <[email protected]>
2025-03-26 [c325a7633] aio: Add io_method=io_uring
Author: Andres Freund <[email protected]>
2025-03-29 [50cb7505b] aio: Implement support for reads in smgr/md/fd
Author: Andres Freund <[email protected]>
2025-03-30 [047cba7fa] bufmgr: Implement AIO read support
Author: Andres Freund <[email protected]>
2025-03-30 [12ce89fd0] bufmgr: Use AIO in StartReadBuffers()
Author: Andres Freund <[email protected]>
2025-03-30 [2a5e709e7] Enable IO concurrency on all systems
-->

<listitem>
<para>
Add an asynchronous I/O subsystem (Andres Freund, Thomas Munro, Nazir Bilal Yavuz, Melanie Plageman)
<ulink url="&commit_baseurl;02844012b">&sect;</ulink>
<ulink url="&commit_baseurl;da7226993">&sect;</ulink>
<ulink url="&commit_baseurl;55b454d0e">&sect;</ulink>
<ulink url="&commit_baseurl;247ce06b8">&sect;</ulink>
<ulink url="&commit_baseurl;10f664684">&sect;</ulink>
<ulink url="&commit_baseurl;06fb5612c">&sect;</ulink>
<ulink url="&commit_baseurl;c325a7633">&sect;</ulink>
<ulink url="&commit_baseurl;50cb7505b">&sect;</ulink>
<ulink url="&commit_baseurl;047cba7fa">&sect;</ulink>
<ulink url="&commit_baseurl;12ce89fd0">&sect;</ulink>
<ulink url="&commit_baseurl;2a5e709e7">&sect;</ulink>
</para>

<para>
This is enabled by server variable io_method, with server variables io_combine_limit and io_max_combine_limit added to control it.  This also enables
effective_io_concurrency and maintenance_io_concurrency values greater than zero for systems without fadvise() support.  The new system view pg_aios shows the file handles being used
for asynchronous I/O.
</para>
</listitem>

<!--
Author: Tomas Vondra <[email protected]>
2024-09-21 [c4d5cb71d] Increase the number of fast-path lock slots
-->

<listitem>
<para>
Improve the locking performance of queries that access many relations (Tomas Vondra)
<ulink url="&commit_baseurl;c4d5cb71d">&sect;</ulink>
</para>
</listitem>

<!--
Author: Amit Langote <[email protected]>
2025-01-30 [bb3ec16e1] Move PartitionPruneInfo out of plan nodes into PlannedSt
Author: Amit Langote <[email protected]>
2025-01-31 [d47cbf474] Perform runtime initial pruning outside ExecInitNode()
Author: Amit Langote <[email protected]>
2025-02-07 [cbc127917] Track unpruned relids to avoid processing pruned relatio
Author: Amit Langote <[email protected]>
2025-02-20 [525392d57] Don't lock partitions pruned by initial pruning
-->

<listitem>
<para>
Avoid the locking of pruned partitions during execution (Amit Langote)
<ulink url="&commit_baseurl;bb3ec16e1">&sect;</ulink>
<ulink url="&commit_baseurl;d47cbf474">&sect;</ulink>
<ulink url="&commit_baseurl;cbc127917">&sect;</ulink>
<ulink url="&commit_baseurl;525392d57">&sect;</ulink>
</para>
</listitem>

<!--
Author: Melanie Plageman <[email protected]>
2025-02-11 [052026c9b] Eagerly scan all-visible pages to amortize aggressive va
Author: Melanie Plageman <[email protected]>
2025-03-03 [06eae9e62] Trigger more frequent autovacuums with relallfrozen
-->

<listitem>
<para>
Allow normal vacuums to freeze some pages, even though they are all-visible (Melanie Plageman)
<ulink url="&commit_baseurl;052026c9b">&sect;</ulink>
<ulink url="&commit_baseurl;06eae9e62">&sect;</ulink>
</para>

<para>
This reduces the overhead of later full-relation freezing.  The aggressiveness of this can be controlled by server variable and per-table setting vacuum_max_eager_freeze_failure_rate.
Previously vacuum never processed all-visible pages until freezing was required.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-03-20 [0164a0f9e] Add vacuum_truncate configuration parameter.
-->

<listitem>
<para>
Add server variable vacuum_truncate to control file truncation during VACUUM (Nathan Bossart, Gurjeet Singh)
<ulink url="&commit_baseurl;0164a0f9e">&sect;</ulink>
</para>

<para>
A storage-level parameter with the same name and behavior already existed.
</para>
</listitem>

<!--
Author: Melanie Plageman <[email protected]>
2025-03-12 [ff79b5b2a] Increase default effective_io_concurrency to 16
Author: Melanie Plageman <[email protected]>
2025-03-18 [cc6be07eb] Increase default maintenance_io_concurrency to 16
-->

<listitem>
<para>
Increase server variables effective_io_concurrency's and maintenance_io_concurrency's default values to 16 (Melanie Plageman)
<ulink url="&commit_baseurl;ff79b5b2a">&sect;</ulink>
<ulink url="&commit_baseurl;cc6be07eb">&sect;</ulink>
</para>

<para>
This more accurately reflects modern hardware.
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-monitoring">
     <title>Monitoring</title>

     <itemizedlist>

<!--
Author: Melanie Plageman <[email protected]>
2025-03-12 [9219093ca] Modularize log_connections output
Author: Melanie Plageman <[email protected]>
2025-03-12 [18cd15e70] Add connection establishment duration logging
-->

<listitem>
<para>
Increase the logging granularity of server variable log_connections (Melanie Plageman)
<ulink url="&commit_baseurl;9219093ca">&sect;</ulink>
<ulink url="&commit_baseurl;18cd15e70">&sect;</ulink>
</para>

<para>
This server variable was previously only boolean;  these options are still supported.
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-04-07 [3516ea768] Add local-address escape "%L" to log_line_prefix.
-->

<listitem>
<para>
Add log_line_prefix escape "%L" to output the client IP address (Greg Sabino Mullane)
<ulink url="&commit_baseurl;3516ea768">&sect;</ulink>
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2025-03-14 [6d376c3b0] Add GUC option to log lock acquisition failures.
-->

<listitem>
<para>
Add server variable log_lock_failure to log lock acquisition failures (Yuki Seino)
<ulink url="&commit_baseurl;6d376c3b0">&sect;</ulink>
</para>

<para>
Specifically it reports SELECT ... NOWAIT lock failures.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-01-28 [30a6ed0ce] Track per-relation cumulative time spent in [auto]vacuum
-->

<listitem>
<para>
Modify pg_stat_all_tables and its variants to report the time spent in vacuum, analyze, and their automatic variants (Sami Imseih)
<ulink url="&commit_baseurl;30a6ed0ce">&sect;</ulink>
</para>

<para>
The new columns are total_vacuum_time, total_autovacuum_time, total_analyze_time, and total_autoanalyze_time.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-02-11 [bb8dff999] Add cost-based vacuum delay time to progress views.
Author: Nathan Bossart <[email protected]>
2025-02-14 [7720082ae] Add delay time to VACUUM/ANALYZE (VERBOSE) and autovacuu
-->

<listitem>
<para>
Add delay time reporting to VACUUM and ANALYZE (Bertrand Drouvot, Nathan Bossart)
<ulink url="&commit_baseurl;bb8dff999">&sect;</ulink>
<ulink url="&commit_baseurl;7720082ae">&sect;</ulink>
</para>

<para>
This information appears in the autovacuum logs, the system views pg_stat_progress_vacuum and pg_stat_progress_analyze, and the output of VACUUM and ANALYZE when in VERBOSE
mode; tracking must be enabled with the server variable track_cost_delay_timing.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-12-19 [9aea73fc6] Add backend-level statistics to pgstats
Author: Michael Paquier <[email protected]>
2025-03-03 [3f1db99bf] Handle auxiliary processes in SQL functions of backend s
-->

<listitem>
<para>
Add per-backend I/O statistics reporting (Bertrand Drouvot)
<ulink url="&commit_baseurl;9aea73fc6">&sect;</ulink>
<ulink url="&commit_baseurl;3f1db99bf">&sect;</ulink>
</para>

<para>
The statistics are accessed via pg_stat_get_backend_io().  Per-backend I/O statistics can be cleared via pg_stat_reset_backend_stats().
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-01-14 [f92c854cf] Make pg_stat_io count IOs as bytes instead of blocks for
-->

<listitem>
<para>
Add pg_stat_io columns to report I/O activity in bytes (Nazir Bilal Yavuz)
<ulink url="&commit_baseurl;f92c854cf">&sect;</ulink>
</para>

<para>
The new columns are read_bytes, write_bytes, and extend_bytes.  The op_bytes column, which always equaled BLCKSZ, has been removed.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-02-04 [a051e71e2] Add data for WAL in pg_stat_io and backend statistics
Author: Michael Paquier <[email protected]>
2025-02-20 [4538bd3f1] doc: Add details about object "wal" in pg_stat_io
Author: Michael Paquier <[email protected]>
2025-03-06 [7f7f324eb] Add more monitoring data for WAL writes in the WAL recei
-->

<listitem>
<para>
Add WAL I/O activity rows to pg_stat_io (Nazir Bilal Yavuz, Bertrand Drouvot, Michael Paquier)
<ulink url="&commit_baseurl;a051e71e2">&sect;</ulink>
<ulink url="&commit_baseurl;4538bd3f1">&sect;</ulink>
<ulink url="&commit_baseurl;7f7f324eb">&sect;</ulink>
</para>

<para>
This includes WAL receiver activity and a wait event for such writes.
</para>

</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-02-26 [6c349d83b] Re-add GUC track_wal_io_timing
-->

<listitem>
<para>
Change server variable track_wal_io_timing to control tracking WAL timing in pg_stat_io instead of pg_stat_wal (Bertrand Drouvot)
<ulink url="&commit_baseurl;6c349d83b">&sect;</ulink>
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-02-24 [2421e9a51] Remove read/sync fields from pg_stat_wal and GUC track_w
Author: Michael Paquier <[email protected]>
2025-02-26 [6c349d83b] Re-add GUC track_wal_io_timing
-->

<listitem>
<para>
Remove read/sync columns from pg_stat_wal (Bertrand Drouvot)
<ulink url="&commit_baseurl;2421e9a51">&sect;</ulink>
<ulink url="&commit_baseurl;6c349d83b">&sect;</ulink>
</para>

<para>
This removes columns wal_write, wal_sync, wal_write_time, and wal_sync_time.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-03-11 [76def4cdd] Add WAL data to backend statistics
-->

<listitem>
<para>
Add function pg_stat_get_backend_wal() to return per-backend WAL statistics (Bertrand Drouvot)
<ulink url="&commit_baseurl;76def4cdd">&sect;</ulink>
</para>

<para>
Per-backend WAL statistics can be cleared via pg_stat_reset_backend_stats().
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2024-10-11 [4e1fad378] Add pg_ls_summariesdir().
-->

<listitem>
<para>
Add function pg_ls_summariesdir() to specifically list the contents of PGDATA/pg_wal/summaries (Yushi Ogiwara)
<ulink url="&commit_baseurl;4e1fad378">&sect;</ulink>
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2024-09-30 [559efce1d] Add num_done counter to the pg_stat_checkpointer view.
-->

<listitem>
<para>
Add column pg_stat_checkpointer.num_done to report the number of completed checkpoints (Anton A. Melnikov)
<ulink url="&commit_baseurl;559efce1d">&sect;</ulink>
</para>

<para>
Columns num_timed and num_requested count both completed and skipped checkpoints.
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2024-10-02 [17cc5f666] Fix inconsistent reporting of checkpointer stats.
-->

<listitem>
<para>
Add column pg_stat_checkpointer.slru_written to report SLRU buffers written (Nitin Jadhav)
<ulink url="&commit_baseurl;17cc5f666">&sect;</ulink>
</para>

<para>
Also, modify the checkpoint server log message to report separate shared buffer and SLRU buffer values.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-11-11 [e7a9496de] Add two attributes to pg_stat_database for parallel work
-->

<listitem>
<para>
Add columns to pg_stat_database to report parallel workers activity (Benoit Lobréau)
<ulink url="&commit_baseurl;e7a9496de">&sect;</ulink>
</para>

<para>
The new columns are parallel_workers_to_launch and parallel_workers_launched.
</para>
</listitem>

<!--
Author: Álvaro Herrera <[email protected]>
2025-03-18 [62d712ecf] Introduce squashing of constant lists in query jumbling
Author: Álvaro Herrera <[email protected]>
2025-03-27 [9fbd53dea] Remove the query_id_squash_values GUC
-->

<listitem>
<para>
Have query jumbling of arrays consider only the first and last array elements (Dmitry Dolgov, Sami Imseih)
<ulink url="&commit_baseurl;62d712ecf">&sect;</ulink>
<ulink url="&commit_baseurl;9fbd53dea">&sect;</ulink>
</para>

<para>
Jumbling is used by pg_stat_statements.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-03-26 [787514b30] Use relation name instead of OID in query jumbling for R
-->

<listitem>
<para>
Adjust query jumbling to group together queries using the same relation name (Michael Paquier, Sami Imseih)
<ulink url="&commit_baseurl;787514b30">&sect;</ulink>
</para>

<para>
This is true even if the tables in different schemas have different column names.
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2025-04-08 [042a66291] Add function to get memory context stats for processes
Author: Daniel Gustafsson <[email protected]>
2025-04-08 [c57971034] Rename argument in pg_get_process_memory_contexts().
-->

<listitem>
<para>
Add function pg_get_process_memory_contexts() to report process memory context statistics (Rahila Syed)
<ulink url="&commit_baseurl;042a66291">&sect;</ulink>
<ulink url="&commit_baseurl;c57971034">&sect;</ulink>
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-07-01 [12227a1d5] Add context type field to pg_backend_memory_contexts
-->

<listitem>
<para>
Add column pg_backend_memory_contexts.type to report the type of memory context (David Rowley)
<ulink url="&commit_baseurl;12227a1d5">&sect;</ulink>
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-07-25 [32d3ed816] Add path column to pg_backend_memory_contexts view
-->

<listitem>
<para>
Add column pg_backend_memory_contexts.path to show memory context parents (Melih Mutlu)
<ulink url="&commit_baseurl;32d3ed816">&sect;</ulink>
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-privileges">
     <title>Privileges</title>

     <itemizedlist>

<!--
Author: Michael Paquier <[email protected]>
2024-07-04 [4564f1ceb] Add pg_get_acl() to get the ACL for a database object
Author: Michael Paquier <[email protected]>
2024-07-10 [d898665bf] Extend pg_get_acl() to handle sub-object IDs
-->

<listitem>
<para>
Add function pg_get_acl() to retrieve database access control details (Joel Jacobson)
<ulink url="&commit_baseurl;4564f1ceb">&sect;</ulink>
<ulink url="&commit_baseurl;d898665bf">&sect;</ulink>
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2024-09-12 [4eada203a] Add has_largeobject_privilege function.
-->

<listitem>
<para>
Add function has_largeobject_privilege() to check large object privileges (Yugo Nagata)
<ulink url="&commit_baseurl;4eada203a">&sect;</ulink>
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2025-04-04 [0d6c47766] Extend ALTER DEFAULT PRIVILEGES to define default privil
-->

<listitem>
<para>
Allow ALTER DEFAULT PRIVILEGES to define large object default privileges (Takatsuka Haruka, Yugo Nagata, Laurenz Albe)
<ulink url="&commit_baseurl;0d6c47766">&sect;</ulink>
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2024-07-09 [ccd38024b] Introduce pg_signal_autovacuum_worker.
-->

<listitem>
<para>
Add predefined role pg_signal_autovacuum_worker (Kirill Reshke)
<ulink url="&commit_baseurl;ccd38024b">&sect;</ulink>
</para>

<para>
This allows sending signals to autovacuum workers.
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-server-config">
     <title>Server Configuration</title>

     <itemizedlist>

<!--
Author: Daniel Gustafsson <[email protected]>
2025-02-20 [b3f0be788] Add support for OAUTHBEARER SASL mechanism
-->

<listitem>
<para>
Add support for the OAuth authentication method (Jacob Champion, Daniel Gustafsson, Thomas Munro)
<ulink url="&commit_baseurl;b3f0be788">&sect;</ulink>
</para>

<para>
This adds an "oauth" authentication method to pg_hba.conf, libpq OAuth options, a server variable oauth_validator_libraries to load token validation libraries, and
a configure flag --with-libcurl to add the required compile-time libraries.
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2024-10-24 [45188c2ea] Support configuring TLSv1.3 cipher suites
-->

<listitem>
<para>
Add server variable ssl_tls13_ciphers to allow specification of multiple colon-separated TLSv1.3 cipher suites (Erica Zhang, Daniel Gustafsson)
<ulink url="&commit_baseurl;45188c2ea">&sect;</ulink>
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2025-03-18 [daa02c6bd] Add X25519 to the default set of curves
-->

<listitem>
<para>
Change server variable ssl_groups's default to include elliptic curve X25519 (Daniel Gustafsson, Jacob Champion)
<ulink url="&commit_baseurl;daa02c6bd">&sect;</ulink>
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2024-10-24 [3d1ef3a15] Support configuring multiple ECDH curves
-->

<listitem>
<para>
Rename server variable ssl_ecdh_curve to ssl_groups and allow multiple colon-separated ECDH curves to be specified (Erica Zhang, Daniel Gustafsson)
<ulink url="&commit_baseurl;3d1ef3a15">&sect;</ulink>
</para>

<para>The previous name still works.
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2025-01-24 [924d89a35] pgcrypto: Add function to check FIPS mode
-->

<listitem>
<para>
Add function pg_check_fipsmode() to report the server's FIPS mode (Daniel Gustafsson)
<ulink url="&commit_baseurl;924d89a35">&sect;</ulink>
</para>
</listitem>

<!--
Author: Heikki Linnakangas <[email protected]>
2025-04-02 [a460251f0] Make cancel request keys longer
Author: Heikki Linnakangas <[email protected]>
2024-07-29 [9d9b9d46f] Move cancel key generation to after forking the backend
-->

<listitem>
<para>
Make cancel request keys 256 bits (Heikki Linnakangas, Jelte Fennema-Nio)
<ulink url="&commit_baseurl;a460251f0">&sect;</ulink>
<ulink url="&commit_baseurl;9d9b9d46f">&sect;</ulink>
</para>

<para>
This is only possible when the server and client support wire protocol version 3.2, introduced in this release.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-01-06 [c758119e5] Allow changing autovacuum_max_workers without restarting
-->

<listitem>
<para>
Add server variable autovacuum_worker_slots to specify the maximum number of background workers (Nathan Bossart)
<ulink url="&commit_baseurl;c758119e5">&sect;</ulink>
</para>

<para>
With this variable set, autovacuum_max_workers can be adjusted at runtime up to this maximum without a server restart.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-02-05 [306dc520b] Introduce autovacuum_vacuum_max_threshold.
-->

<listitem>
<para>
Allow specification of the fixed number of dead tuples that will trigger an autovacuum (Nathan Bossart, Frédéric Yhuel)
<ulink url="&commit_baseurl;306dc520b">&sect;</ulink>
</para>

<para>
The server variable is autovacuum_vacuum_max_threshold.  Percentages are still used for triggering.
</para>
</listitem>

<!--
Author: Andres Freund <[email protected]>
2025-03-24 [adb5f85fa] Redefine max_files_per_process to control additionally o
-->

<listitem>
<para>
Change server variable max_files_per_process to limit only files opened by a backend (Andres Freund)
<ulink url="&commit_baseurl;adb5f85fa">&sect;</ulink>
</para>

<para>
Previously files opened by the postmaster were also counted toward this limit.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2024-07-26 [0dcaea569] Introduce num_os_semaphores GUC.
-->

<listitem>
<para>
Add server variable num_os_semaphores to report the required number of semaphores (Nathan Bossart)
<ulink url="&commit_baseurl;0dcaea569">&sect;</ulink>
</para>

<para>
This is useful for operating system configuration.
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-03-19 [4f7f7b037] extension_control_path
-->

<listitem>
<para>
Add server variable extension_control_path to specify the location of extension control files (Peter Eisentraut, Matheus Alcantara)
<ulink url="&commit_baseurl;4f7f7b037">&sect;</ulink>
</para>
</listitem>

    </itemizedlist>

    </sect4>

    <sect4 id="release-18-replication">
     <title>Streaming Replication and Recovery</title>

     <itemizedlist>

<!--
Author: Amit Kapila <[email protected]>
2025-02-19 [ac0e33136] Invalidate inactive replication slots.
-->

<listitem>
<para>
Allow inactive replication slots to be automatically invalided using server variable idle_replication_slot_timeout (Nisha Moond, Bharath Rupireddy)
<ulink url="&commit_baseurl;ac0e33136">&sect;</ulink>
</para>
</listitem>

<!--
Author: Masahiko Sawada <[email protected]>
2025-03-21 [04ff636cb] Add GUC option to control maximum active replication ori
-->

<listitem>
<para>
Add server variable max_active_replication_origins to control the maximum active replication origins (Euler Taveira)
<ulink url="&commit_baseurl;04ff636cb">&sect;</ulink>
</para>

<para>
This was previously controlled by max_replication_slots, but this new setting allows a higher origin count in cases where fewer slots are required.
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-logical">
     <title><link linkend="logical-replication">Logical Replication</link></title>

     <itemizedlist>

<!--
Author: Amit Kapila <[email protected]>
2024-10-30 [745217a05] Replicate generated columns when specified in the column
Author: Amit Kapila <[email protected]>
2024-11-07 [7054186c4] Replicate generated columns when 'publish_generated_colu
Author: Amit Kapila <[email protected]>
2024-12-04 [87ce27de6] Ensure stored generated columns must be published when r
Author: Amit Kapila <[email protected]>
2025-01-30 [6252b1eaf] Doc: Generated column replication.
-->

<listitem>
<para>
Allow the values of generated columns to be logically replicated (Shubham Khanna, Vignesh C, Zhijie Hou, Shlok Kyal, Peter Smith)
<ulink url="&commit_baseurl;745217a05">&sect;</ulink>
<ulink url="&commit_baseurl;7054186c4">&sect;</ulink>
<ulink url="&commit_baseurl;87ce27de6">&sect;</ulink>
<ulink url="&commit_baseurl;6252b1eaf">&sect;</ulink>
</para>

<para>
If the publication specifies a column list, all specified columns, generated and non-generated, are published.  Without a specified column list, publication option publish_generated_columns
controls whether generated columns are published. Previously generated columns were not replicated and the subscriber had to compute the values if possible;  this is particularly
useful for non-Postgres subscribers which lack such a capability.
</para>
</listitem>

<!--
Author: Amit Kapila <[email protected]>
2024-10-28 [1bf1140be] Change the default value of the streaming option to 'par
-->

<listitem>
<para>
Change the default CREATE SUBSCRIPTION streaming option from "off" to "parallel" (Hayato Kuroda, Masahiko Sawada, Peter Smith, Amit Kapila)
<ulink url="&commit_baseurl;1bf1140be">&sect;</ulink>
</para>
</listitem>

<!--
Author: Amit Kapila <[email protected]>
2024-07-24 [1462aad2e] Allow altering of two_phase option of a SUBSCRIPTION.
Author: Amit Kapila <[email protected]>
2025-04-03 [4868c96bc] Fix slot synchronization for two_phase enabled slots.
-->

<listitem>
<para>
Allow ALTER SUBSCRIPTION to change the replication slot's two-phase commit behavior (Hayato Kuroda, Ajin Cherian, Amit Kapila, Zhijie Hou)
<ulink url="&commit_baseurl;1462aad2e">&sect;</ulink>
<ulink url="&commit_baseurl;4868c96bc">&sect;</ulink>
</para>
</listitem>

<!--
Author: Amit Kapila <[email protected]>
2024-08-20 [9758174e2] Log the conflicts while applying changes in logical repl
Author: Amit Kapila <[email protected]>
2024-08-22 [edcb71258] Doc: explain the log format of logical replication confl
Author: Amit Kapila <[email protected]>
2024-08-29 [640178c92] Rename the conflict types for the origin differ cases.
Author: Amit Kapila <[email protected]>
2024-09-04 [6c2b5edec] Collect statistics about conflicts in logical replicatio
Author: Amit Kapila <[email protected]>
2025-03-24 [73eba5004] Detect and Log multiple_unique_conflicts type conflict.
-->

<listitem>
<para>
Log conflicts while applying logical replication changes (Zhijie Hou, Nisha Moond)
<ulink url="&commit_baseurl;9758174e2">&sect;</ulink>
<ulink url="&commit_baseurl;edcb71258">&sect;</ulink>
<ulink url="&commit_baseurl;640178c92">&sect;</ulink>
<ulink url="&commit_baseurl;6c2b5edec">&sect;</ulink>
<ulink url="&commit_baseurl;73eba5004">&sect;</ulink>
</para>

<para>
Also report in new columns of pg_stat_subscription_stats.
</para>
</listitem>

     </itemizedlist>

    </sect4>

   </sect3>

   <sect3 id="release-18-utility">
    <title>Utility Commands</title>

    <itemizedlist>

<!--
Author: Peter Eisentraut <[email protected]>
2025-02-07 [83ea6c540] Virtual generated columns
Author: Peter Eisentraut <[email protected]>
2025-03-28 [cdc168ad4] Add support for not-null constraints on virtual generate
Author: Richard Guo <[email protected]>
2025-02-25 [1e4351af3] Expand virtual generated columns in the planner
-->

<listitem>
<para>
Allow generated columns to be virtual, and make them the default (Peter Eisentraut, Jian He, Richard Guo, Dean Rasheed)
<ulink url="&commit_baseurl;83ea6c540">&sect;</ulink>
<ulink url="&commit_baseurl;cdc168ad4">&sect;</ulink>
<ulink url="&commit_baseurl;1e4351af3">&sect;</ulink>
</para>

<para>
Virtual generated columns generate their values when the columns are read, not written.  The write behavior can still be specified via the STORED option.
</para>
</listitem>

<!--
Author: Dean Rasheed <[email protected]>
2025-01-16 [80feb727c] Add OLD/NEW support to RETURNING in DML queries.
-->

<listitem>
<para>
Add OLD/NEW support to RETURNING in DML queries (Dean Rasheed)
<ulink url="&commit_baseurl;80feb727c">&sect;</ulink>
</para>

<para>
Previously RETURNING only returned new values for INSERT and UPDATE, old values for DELETE;  MERGE would return the appropriate value for the internal query executed.  This new syntax
allows INSERT with an ON CONFLICT action to return old values, UPDATE to return old values, and DELETE to return new values if the query assigned to an ON DELETE row would return new
values.  New syntax allows changeable relation aliases "old" and "new" to specify which values should be returned.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-02-19 [302cf1575] Add support for LIKE in CREATE FOREIGN TABLE
-->

<listitem>
<para>
Allow foreign tables to be created like existing local tables (Zhang Mingli)
<ulink url="&commit_baseurl;302cf1575">&sect;</ulink>
</para>

<para>
The syntax is CREATE FOREIGN TABLE ... LIKE.
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2024-11-27 [85b7efa1c] Support LIKE with nondeterministic collations
-->

<listitem>
<para>
Allow LIKE with nondeterministic collations (Peter Eisentraut)
<ulink url="&commit_baseurl;85b7efa1c">&sect;</ulink>
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-02-21 [329304c90] Support text position search functions with nondetermini
-->

<listitem>
<para>
Allow text position search functions with nondeterministic collations (Peter Eisentraut)
<ulink url="&commit_baseurl;329304c90">&sect;</ulink>
</para>

<para>
These used to generate an error.
</para>
</listitem>

<!--
Author: Jeff Davis <[email protected]>
2025-01-17 [d3d098316] Support PG_UNICODE_FAST locale in the builtin collation
-->

<listitem>
<para>
Add builtin collation provider PG_UNICODE_FAST (Jeff Davis)
<ulink url="&commit_baseurl;d3d098316">&sect;</ulink>
</para>

<para>
This locale supports case mapping, but sorts in code point order, not natural language order.
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-09-24 [62ddf7ee9] Add ONLY support for VACUUM and ANALYZE
-->

<listitem>
<para>
Allow VACUUM and ANALYZE to process partitioned tables without processing their children (Michael Harris)
<ulink url="&commit_baseurl;62ddf7ee9">&sect;</ulink>
</para>

<para>
This is enabled with the new ONLY option.  This is useful since autovacuum does not process partitioned tables, just its children.
</para>
</listitem>

<!--
Author: Jeff Davis <[email protected]>
2024-10-11 [e839c8ecc] Create functions pg_set_relation_stats, pg_clear_relatio
Author: Jeff Davis <[email protected]>
2024-10-24 [d32d14639] Add functions pg_restore_relation_stats(), pg_restore_at
Author: Jeff Davis <[email protected]>
2025-03-25 [650ab8aaf] Stats: use schemaname/relname instead of regclass.
-->

<listitem>
<para>
Add functions to modify per-relation and per-column optimizer statistics (Corey Huinker)
<ulink url="&commit_baseurl;e839c8ecc">&sect;</ulink>
<ulink url="&commit_baseurl;d32d14639">&sect;</ulink>
<ulink url="&commit_baseurl;650ab8aaf">&sect;</ulink>
</para>

<para>
The functions are pg_restore_relation_stats(), pg_restore_attribute_stats(), pg_clear_relation_stats(), and pg_clear_attribute_stats.
</para>
</listitem>


<!--
Author: Thomas Munro <[email protected]>
2025-04-08 [f78ca6f3e] Introduce file_copy_method setting.
-->

<listitem>
<para>
Add server variable file_copy_method to control the file copying method (Nazir Bilal Yavuz)
<ulink url="&commit_baseurl;f78ca6f3e">&sect;</ulink>
</para>

<para>
This controls whether CREATE DATABASE ... STRATEGY=FILE_COPY and ALTER DATABASE ... SET TABLESPACE uses file copy or clone.
</para>
</listitem>

    </itemizedlist>

    <sect4 id="release-18-constraints">
     <title><link linkend="ddl-constraints">Constraints</link></title>

      <itemizedlist>

<!--
Author: Peter Eisentraut <[email protected]>
2024-09-17 [fc0438b4e] Add temporal PRIMARY KEY and UNIQUE constraints
-->

<listitem>
<para>
Allow the specification of non-overlapping PRIMARY KEY and UNIQUE constraints (Paul A. Jungwirth)
<ulink url="&commit_baseurl;fc0438b4e">&sect;</ulink>
</para>

<para>
This is specified by WITHOUT OVERLAPS on the last column.
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-01-11 [ca87c415e] Add support for NOT ENFORCED in CHECK constraints
Author: Peter Eisentraut <[email protected]>
2025-04-02 [eec0040c4] Add support for NOT ENFORCED in foreign key constraints
-->

<listitem>
<para>
Allow CHECK and foreign key constraints to be specified as NOT ENFORCED (Amul Sul)
<ulink url="&commit_baseurl;ca87c415e">&sect;</ulink>
<ulink url="&commit_baseurl;eec0040c4">&sect;</ulink>
</para>

<para>
This also adds column pg_constraint.conenforced.
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2024-11-15 [9321d2fdf] Fix collation handling for foreign keys
-->

<listitem>
<para>
Require primary/foreign key relationships to use either deterministic collations or the the same nondeterministic collations (Peter Eisentraut)
<ulink url="&commit_baseurl;9321d2fdf">&sect;</ulink>
</para>

<para>
The restore of a pg_dump, also used by pg_upgrade, will fail if these requirements are not met;  schema changes must be made for these upgrade methods to succeed.
</para>
</listitem>

<!--
Author: Álvaro Herrera <[email protected]>
2024-11-08 [14e87ffa5] Add pg_constraint rows for not-null constraints
-->

<listitem>
<para>
Store column NOT NULL specifications in pg_constraint (Álvaro Herrera, Bernd Helmle)
<ulink url="&commit_baseurl;14e87ffa5">&sect;</ulink>
</para>

<para>
This allows names to be specified for NOT NULL constraint.  This also adds NOT NULL constraints to foreign tables and NOT NULL inheritance control to local tables.
</para>
</listitem>

<!--
Author: Álvaro Herrera <[email protected]>
2025-04-07 [a379061a2] Allow NOT NULL constraints to be added as NOT VALID
-->

<listitem>
<para>
Allow ALTER TABLE to set the NOT VALID attribute of NOT NULL constraints (Rushabh Lathia, Jian He)
<ulink url="&commit_baseurl;a379061a2">&sect;</ulink>
</para>
</listitem>

<!--
Author: Álvaro Herrera <[email protected]>
2025-03-05 [f4e53e10b] Add ALTER TABLE ... ALTER CONSTRAINT ... SET [NO] INHERI
Author: Álvaro Herrera <[email protected]>
2025-03-27 [4a02af8b1] Simplify syntax for ALTER TABLE ALTER CONSTRAINT NO INHE
-->

<listitem>
<para>
Allow modification of the inheritability of NOT NULL constraints (Suraj Kharage, Álvaro Herrera)
<ulink url="&commit_baseurl;f4e53e10b">&sect;</ulink>
<ulink url="&commit_baseurl;4a02af8b1">&sect;</ulink>
</para>

<para>
The syntax is ALTER TABLE ... ALTER CONSTRAINT ... [NO] INHERIT.
</para>
</listitem>

<!--
Author: Álvaro Herrera <[email protected]>
2025-01-23 [b663b9436] Allow NOT VALID foreign key constraints on partitioned t
-->

<listitem>
<para>
Allow NOT VALID foreign key constraints on partitioned tables (Amul Sul)
<ulink url="&commit_baseurl;b663b9436">&sect;</ulink>
</para>
</listitem>

<!--
Author: Álvaro Herrera <[email protected]>
2024-09-30 [4dea33ce7] Don't disallow DROP of constraints ONLY on partitioned t
-->

<listitem>
<para>
Allow dropping of constraints ONLY on partitioned tables (Álvaro Herrera)
<ulink url="&commit_baseurl;4dea33ce7">&sect;</ulink>
</para>

<para>
This was previously erroneously prohibited.
</para>
</listitem>

      </itemizedlist>
    </sect4>

    <sect4 id="release-18-copy">
     <title><link linkend="sql-copy"><command>COPY</command></link></title>

      <itemizedlist>

<!--
Author: Fujii Masao <[email protected]>
2024-10-08 [4ac2a9bec] Add REJECT_LIMIT option to the COPY command.
-->

<listitem>
<para>
Add REJECT_LIMIT to control the number of invalid rows COPY FROM can ignore (Atsushi Torikoshi)
<ulink url="&commit_baseurl;4ac2a9bec">&sect;</ulink>
</para>

<para>
This is available when ON_ERROR = 'ignore'.
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2025-04-04 [534874fac] Allow "COPY table TO" command to copy rows from material
-->

<listitem>
<para>
Allow COPY TO to copy rows from populated materialized view (Jian He)
<ulink url="&commit_baseurl;534874fac">&sect;</ulink>
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2024-10-03 [e7834a1a2] Add LOG_VERBOSITY = 'silent' support to COPY command.
-->

<listitem>
<para>
Add COPY LOG_VERBOSITY level "silent" to suppress log output of ignored rows (Atsushi Torikoshi)
<ulink url="&commit_baseurl;e7834a1a2">&sect;</ulink>
</para>

<para>
This new level suppresses output for discarded input rows when on_error = 'ignore'.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-02-06 [401a6956f] Disallow COPY FREEZE on foreign tables.
-->

<listitem>
<para>
Disallow COPY FREEZE on foreign tables (Nathan Bossart)
<ulink url="&commit_baseurl;401a6956f">&sect;</ulink>
</para>

<para>
Previously, the COPY worked but the FREEZE was ignored, so disallow this command.
</para>
</listitem>

     </itemizedlist>
    </sect4>

    <sect4 id="release-18-explain">
     <title><link linkend="sql-explain"><command>EXPLAIN</command></link></title>

     <itemizedlist>

<!--
Author: David Rowley <[email protected]>
2024-12-11 [c2a4078eb] Enable BUFFERS with EXPLAIN ANALYZE by default
-->

<listitem>
<para>
Automatically include BUFFERS output in EXPLAIN ANALYZE (Guillaume Lelarge, David Rowley)
<ulink url="&commit_baseurl;c2a4078eb">&sect;</ulink>
</para>
</listitem>

<!--
Author: Masahiko Sawada <[email protected]>
2024-08-13 [4c1b4cdb8] Add resource statistics reporting to ANALYZE VERBOSE.
Author: Masahiko Sawada <[email protected]>
2024-09-09 [bb7775234] Add WAL usage reporting to ANALYZE VERBOSE output.
-->

<listitem>
<para>
Add WAL, CPU, and average read statistics output to EXPLAIN ANALYZE VERBOSE (Anthonin Bonnefoy)
<ulink url="&commit_baseurl;4c1b4cdb8">&sect;</ulink>
<ulink url="&commit_baseurl;bb7775234">&sect;</ulink>
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-02-17 [320545bfc] Add information about WAL buffers being full to EXPLAIN
Author: Michael Paquier <[email protected]>
2025-02-17 [6a8a7ce47] Add information about WAL buffers full to VACUUM/ANALYZE
-->

<listitem>
<para>
Add full WAL buffer count to EXPLAIN (WAL), VACUUM/ANALYZE (VERBOSE), and autovacuum log output (Bertrand Drouvot)
<ulink url="&commit_baseurl;320545bfc">&sect;</ulink>
<ulink url="&commit_baseurl;6a8a7ce47">&sect;</ulink>
</para>
</listitem>

<!--
Author: Peter Geoghegan <[email protected]>
2025-03-11 [0fbceae84] Show index search count in EXPLAIN ANALYZE, take 2.
-->

<listitem>
<para>
In EXPLAIN ANALYZE, report the number of index lookups used per index scan node (Peter Geoghegan)
<ulink url="&commit_baseurl;0fbceae84">&sect;</ulink>
</para>
</listitem>

<!--
Author: Robert Haas <[email protected]>
2025-02-21 [ddb17e387] Allow EXPLAIN to indicate fractional rows.
Author: Robert Haas <[email protected]>
2025-02-27 [95dbd827f] EXPLAIN: Always use two fractional digits for row counts
-->

<listitem>
<para>
Modify EXPLAIN to output fractional row counts (Ibrar Ahmed, Ilia Evdokimov, Robert Haas)
<ulink url="&commit_baseurl;ddb17e387">&sect;</ulink>
<ulink url="&commit_baseurl;95dbd827f">&sect;</ulink>
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-07-05 [1eff8279d] Add memory/disk usage for Material nodes in EXPLAIN
Author: David Rowley <[email protected]>
2024-07-05 [53abb1e0e] Fix newly introduced issue in EXPLAIN for Materialize no
Author: Tatsuo Ishii <[email protected]>
2024-09-17 [95d6e9af0] Add memory/disk usage for Window aggregate nodes in EXPL
Author: Tatsuo Ishii <[email protected]>
2024-09-23 [40708acd6] Add memory/disk usage for more executor nodes.
-->

<listitem>
<para>
Add memory and disk usage details to Material, Window Aggregate, and common table expression nodes in EXPLAIN (David Rowley, Tatsuo Ishii)
<ulink url="&commit_baseurl;1eff8279d">&sect;</ulink>
<ulink url="&commit_baseurl;53abb1e0e">&sect;</ulink>
<ulink url="&commit_baseurl;95d6e9af0">&sect;</ulink>
<ulink url="&commit_baseurl;40708acd6">&sect;</ulink>
</para>
</listitem>


<!--
Author: Tom Lane <[email protected]>
2025-03-11 [8b1b34254] Improve EXPLAIN's display of window functions.
-->

<listitem>
<para>
Add details about window function arguments to EXPLAIN output (Tom Lane)
<ulink url="&commit_baseurl;8b1b34254">&sect;</ulink>
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-07-09 [5a1e6df3b] Show Parallel Bitmap Heap Scan worker stats in EXPLAIN A
-->

<listitem>
<para>
Add "Parallel Bitmap Heap Scan" worker cache statistics to EXPLAIN ANALYZE (David Geier, Heikki Linnakangas, Donghang Lin, Alena Rybakina, David Rowley)
<ulink url="&commit_baseurl;5a1e6df3b">&sect;</ulink>
</para>
</listitem>

<!--
Author: Robert Haas <[email protected]>
2024-08-21 [c01743aa4] Show number of disabled nodes in EXPLAIN ANALYZE output.
Author: David Rowley <[email protected]>
2024-10-11 [161320b4b] Adjust EXPLAIN's output for disabled nodes
Author: David Rowley <[email protected]>
2024-10-29 [84b8fccbe] Doc: add detail about EXPLAIN's "Disabled" property
-->

<listitem>
<para>
Indicate disabled nodes in EXPLAIN ANALYZE output (Robert Haas, David Rowley, Laurenz Albe)
<ulink url="&commit_baseurl;c01743aa4">&sect;</ulink>
<ulink url="&commit_baseurl;161320b4b">&sect;</ulink>
<ulink url="&commit_baseurl;84b8fccbe">&sect;</ulink>
</para>
</listitem>

     </itemizedlist>

    </sect4>

   </sect3>

   <sect3 id="release-18-datatypes">
    <title>Data Types</title>

    <itemizedlist>

<!--
Author: Jeff Davis <[email protected]>
2025-01-23 [4e7f62bc3] Add support for Unicode case folding.
Author: Jeff Davis <[email protected]>
2025-01-17 [286a365b9] Support Unicode full case mapping and conversion.
-->

<listitem>
<para>
Improve Unicode full case mapping and conversion (Jeff Davis)
<ulink url="&commit_baseurl;4e7f62bc3">&sect;</ulink>
<ulink url="&commit_baseurl;286a365b9">&sect;</ulink>
</para>

<para>
This adds the ability to do conditional and title case mapping, and case map single characters to multiple characters.
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-01-24 [a5579a90a] Make jsonb casts to scalar types translate JSON null to
-->

<listitem>
<para>
Allow jsonb "null" values to be cast to scalar types as NULL (Tom Lane)
<ulink url="&commit_baseurl;a5579a90a">&sect;</ulink>
</para>

<para>
Previously such casts generated an error.
</para>
</listitem>

<!--
Author: Andrew Dunstan <[email protected]>
2025-03-05 [4603903d2] Allow json{b}_strip_nulls to remove null array elements
-->

<listitem>
<para>
Add optional parameter to json{b}_strip_nulls to allow removal of null array elements (Florents Tselai)
<ulink url="&commit_baseurl;4603903d2">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-04-01 [6c12ae09f] Introduce a SQL-callable function array_sort(anyarray).
-->

<listitem>
<para>
Add function array_sort() which sorts an array's first dimension (Junwang Zhao, Jian He)
<ulink url="&commit_baseurl;6c12ae09f">&sect;</ulink>
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-11-01 [49d6c7d8d] Add SQL function array_reverse()
-->

<listitem>
<para>
Add function array_reverse() which reverses an array's first dimension (Aleksander Alekseev)
<ulink url="&commit_baseurl;49d6c7d8d">&sect;</ulink>
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-03-13 [0697b2390] Add reverse(bytea).
-->

<listitem>
<para>
Add function reverse() to reverse bytea bytes (Aleksander Alekseev)
<ulink url="&commit_baseurl;0697b2390">&sect;</ulink>
</para>
</listitem>

<!--
Author: Dean Rasheed <[email protected]>
2025-03-07 [6da469bad] Allow casting between bytea and integer types.
-->

<listitem>
<para>
Allow casting between integer types and bytea (Aleksander Alekseev)
<ulink url="&commit_baseurl;6da469bad">&sect;</ulink>
</para>

<para>
The integer values are stored as bytea two's complement values.
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-04-03 [82a46cca9] Update Unicode data to Unicode 16.0.0
-->

<listitem>
<para>
Update Unicode data to Unicode 16.0.0 (Peter Eisentraut)
<ulink url="&commit_baseurl;82a46cca9">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-02-18 [b464e51ab] Update to latest Snowball sources.
-->

<listitem>
<para>
Add full text search stemming for Estonian (Tom Lane)
<ulink url="&commit_baseurl;b464e51ab">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-09-24 [cd838e200] Neaten up our choices of SQLSTATEs for XML-related error
-->

<listitem>
<para>
Improve the XML error codes to more closely match the SQL standard (Tom Lane)
<ulink url="&commit_baseurl;cd838e200">&sect;</ulink>
</para>

<para>
These errors are reported via SQLSTATE.
</para>
</listitem>

    </itemizedlist>

   </sect3>

   <sect3 id="release-18-functions">
    <title>Functions</title>

    <itemizedlist>

<!--
Author: Jeff Davis <[email protected]>
2025-01-24 [bfc599206] Add SQL function CASEFOLD().
-->

<listitem>
<para>
Add function CASEFOLD() to allow for more sophisticated case-insensitive matching (Jeff Davis)
<ulink url="&commit_baseurl;bfc599206">&sect;</ulink>
</para>

<para>
Allows more accurate comparison, i.e., a character can have multiple upper or lower case equivalents, or upper or lower case conversion changes the number of characters.
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-07-11 [a0f1fce80] Add min and max aggregates for composite types (records)
Author: Tom Lane <[email protected]>
2024-10-08 [2d24fd942] Add min and max aggregates for bytea type.
-->

<listitem>
<para>
Allow MIN()/MAX() aggregates on arrays and composite types (Aleksander Alekseev, Marat Buharov)
<ulink url="&commit_baseurl;a0f1fce80">&sect;</ulink>
<ulink url="&commit_baseurl;2d24fd942">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-08-16 [6be39d77a] Fix extraction of week and quarter fields from intervals
-->

<listitem>
<para>
Add a WEEK option to EXTRACT() (Tom Lane)
<ulink url="&commit_baseurl;6be39d77a">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-08-16 [6be39d77a] Fix extraction of week and quarter fields from intervals
-->

<listitem>
<para>
Improve the output EXTRACT(QUARTER ...) for negative values (Tom Lane)
<ulink url="&commit_baseurl;6be39d77a">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-01-22 [172e6b3ad] Support RN (roman-numeral format) in to_number().
-->

<listitem>
<para>
Add roman numeral support to to_number() (Hunaid Sohail)
<ulink url="&commit_baseurl;172e6b3ad">&sect;</ulink>
</para>

<para>
This is accessed via the "RN" pattern.
</para>
</listitem>

<!--
Author: Masahiko Sawada <[email protected]>
2024-12-11 [78c5e141e] Add UUID version 7 generation function.
-->

<listitem>
<para>
Add UUID version 7 generation function uuidv7() (Andrey Borodin)
<ulink url="&commit_baseurl;78c5e141e">&sect;</ulink>
</para>

<para>
This UUID value is temporally sortable.  Function alias uuidv4() has been added to explicitly generate version 4 UUIDs.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2024-08-12 [760162fed] Add user-callable CRC functions.
-->

<listitem>
<para>
Add functions crc32() and crc32c to compute CRC values (Aleksander Alekseev)
<ulink url="&commit_baseurl;760162fed">&sect;</ulink>
</para>
</listitem>

<!--
Author: Dean Rasheed <[email protected]>
2025-03-26 [a3b6dfd41] Add support for gamma() and lgamma() functions.
-->

<listitem>
<para>
Add math functions gamma() and lgamma() (Dean Rasheed)
<ulink url="&commit_baseurl;a3b6dfd41">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-03-03 [246dedc5d] Allow =&gt; syntax for named cursor arguments in plpgsql.
-->

<listitem>
<para>
Allow "=&gt;" syntax for named cursor arguments in plpgsql (Pavel Stehule)
<ulink url="&commit_baseurl;246dedc5d">&sect;</ulink>
</para>

<para>
We previously only accepted ":=".
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-07-25 [580f8727c] Add argument names to the regexp_XXX functions.
-->

<listitem>
<para>
Allow regexp_match[es]/regexp_like/regexp_replace/regexp_count/regexp_instr/regexp_substr/regexp_split_to_table/regexp_split_to_array() to use named arguments (Jian He)
<ulink url="&commit_baseurl;580f8727c">&sect;</ulink>
</para>
</listitem>

    </itemizedlist>

   </sect3>

   <sect3 id="release-18-libpq">
    <title><link linkend="libpq">libpq</link></title>

    <itemizedlist>

<!--
Author: Robert Haas <[email protected]>
2024-09-09 [cdb6b0fdb] Add PQfullProtocolVersion() to surface the precise proto
-->

<listitem>
<para>
Add function PQfullProtocolVersion() to report the full, including minor, protocol version number (Jacob Champion, Jelte Fennema-Nio)
<ulink url="&commit_baseurl;cdb6b0fdb">&sect;</ulink>
</para>
</listitem>

<!--
Author: Heikki Linnakangas <[email protected]>
2025-04-02 [285613c60] libpq: Add min/max_protocol_version connection options
Author: Heikki Linnakangas <[email protected]>
2025-04-02 [507034910] libpq: Handle NegotiateProtocolVersion message different
-->

<listitem>
<para>
Add libpq connection parameters and environment variables to specify the minimum and maximum acceptable protocol version for connections (Jelte Fennema-Nio)
<ulink url="&commit_baseurl;285613c60">&sect;</ulink>
<ulink url="&commit_baseurl;507034910">&sect;</ulink>
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-12-18 [4b99fed75] libpq: Add service name to PGconn and PQservice()
-->

<listitem>
<para>
Add libpq function PQservice() to return the connection service name (Michael Banck)
<ulink url="&commit_baseurl;4b99fed75">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tomas Vondra <[email protected]>
2024-08-19 [28a1121fd] Mark search_path as GUC_REPORT
Author: Tomas Vondra <[email protected]>
2024-08-19 [0d06a7eac] Document that search_path is reported by the server
-->

<listitem>
<para>
Report search_path changes to the client (Alexander Kukushkin, Jelte Fennema-Nio, Tomas Vondra)
<ulink url="&commit_baseurl;28a1121fd">&sect;</ulink>
<ulink url="&commit_baseurl;0d06a7eac">&sect;</ulink>
</para>
</listitem>

<!--
Author: Álvaro Herrera <[email protected]>
2024-08-12 [ea92f3a0a] libpq: Trace frontend authentication challenges
Author: Álvaro Herrera <[email protected]>
2024-08-14 [a5c6b8f22] libpq: Trace responses to SSLRequest and GSSENCRequest
Author: Álvaro Herrera <[email protected]>
2024-08-16 [b8b3f861f] libpq: Trace all messages received from the server
Author: Robert Haas <[email protected]>
2025-02-24 [e87c14b19] libpq: Trace all NegotiateProtocolVersion fields
Author: Álvaro Herrera <[email protected]>
2024-08-09 [7adec2d5f] libpq: Trace StartupMessage/SSLRequest/GSSENCRequest cor
-->

<listitem>
<para>
Add PQtrace() output for all message types, including authentication (Jelte Fennema-Nio)
<ulink url="&commit_baseurl;ea92f3a0a">&sect;</ulink>
<ulink url="&commit_baseurl;a5c6b8f22">&sect;</ulink>
<ulink url="&commit_baseurl;b8b3f861f">&sect;</ulink>
<ulink url="&commit_baseurl;e87c14b19">&sect;</ulink>
<ulink url="&commit_baseurl;7adec2d5f">&sect;</ulink>
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2025-04-03 [2da74d8d6] libpq: Add support for dumping SSL key material to file
-->

<listitem>
<para>
Add libpq connection parameter sslkeylogfile which dumps out SSL key material (Abhishek Chanda, Daniel Gustafsson)
<ulink url="&commit_baseurl;2da74d8d6">&sect;</ulink>
</para>

<para>
This is useful for debugging.
</para>
</listitem>

<!--
Author: Thomas Munro <[email protected]>
2025-03-25 [3c86223c9] libpq: Deprecate pg_int64.
-->

<listitem>
<para>
Modify some libpq function signatures to use int64_t (Thomas Munro)
<ulink url="&commit_baseurl;3c86223c9">&sect;</ulink>
</para>

<para>
These previously used pg_int64, which is now deprecated.
</para>
</listitem>

    </itemizedlist>

   </sect3>

   <sect3 id="release-18-psql">
     <title><xref linkend="app-psql"/></title>

     <itemizedlist>

<!--
Author: Michael Paquier <[email protected]>
2024-08-22 [d55322b0d] psql: Add more meta-commands able to use the extended pr
-->

<listitem>
<para>
Allow psql to parse, bind, and close named prepared statements (Anthonin Bonnefoy, Michael Paquier)
<ulink url="&commit_baseurl;d55322b0d">&sect;</ulink>
</para>

<para>
This is accomplished with new commands \parse, \bind_named, and \close.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-02-21 [41625ab8e] psql: Add support for pipelines
Author: Michael Paquier <[email protected]>
2025-03-18 [17caf6644] psql: Add \sendpipeline to send query buffers while in a
Author: Michael Paquier <[email protected]>
2025-03-19 [2cce0fe44] psql: Allow queries terminated by semicolons while in pi
-->

<listitem>
<para>
Add psql backslash commands to allowing issuance of pipeline queries (Anthonin Bonnefoy)
<ulink url="&commit_baseurl;41625ab8e">&sect;</ulink>
<ulink url="&commit_baseurl;17caf6644">&sect;</ulink>
<ulink url="&commit_baseurl;2cce0fe44">&sect;</ulink>
</para>

<para>
The new commands are \startpipeline, \syncpipeline, \sendpipeline, \endpipeline, \flushrequest, \flush, and \getresults.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-02-25 [3ce357584] psql: Add pipeline status to prompt and some state varia
-->

<listitem>
<para>
Allow adding pipeline status to the psql prompt and add related state variables (Anthonin Bonnefoy)
<ulink url="&commit_baseurl;3ce357584">&sect;</ulink>
</para>

<para>
The new prompt character is "%P" and the new psql variables are PIPELINE_SYNC_COUNT, PIPELINE_COMMAND_COUNT, and PIPELINE_RESULT_COUNT.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-12-18 [477728b5d] psql: Add more information about service name
-->

<listitem>
<para>
Allow adding the connection service name to the psql prompt or access it via psql variable (Michael Banck)
<ulink url="&commit_baseurl;477728b5d">&sect;</ulink>
</para>
</listitem>

<!--
Author: Dean Rasheed <[email protected]>
2025-01-14 [00f4c2959] psql: Add option to use expanded mode to all list comman
-->

<listitem>
<para>
Add psql option to use expanded mode on all list commands (Dean Rasheed)
<ulink url="&commit_baseurl;00f4c2959">&sect;</ulink>
</para>

<para>
Adding 'x' enables this.
</para>
</listitem>

<!--
Author: Álvaro Herrera <[email protected]>
2025-02-22 [bba2fbc62] Change \conninfo to use tabular format
-->

<listitem>
<para>
Change psql's \conninfo to use tabular format and include more information (Álvaro Herrera, Maiquel Grassi, Hunaid Sohail)
<ulink url="&commit_baseurl;bba2fbc62">&sect;</ulink>
</para>
</listitem>

<!--
Author: Dean Rasheed <[email protected]>
2025-01-14 [2355e5111] psql: Add leakproof indicator to \df+, \do+, \dAo+, and
-->

<listitem>
<para>
Add function's leakproof indicator to psql's \df+, \do+, \dAo+, and \dC+ outputs (Yugo Nagata)
<ulink url="&commit_baseurl;2355e5111">&sect;</ulink>
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-07-02 [978f38c77] Add information about access method for partitioned rela
-->

<listitem>
<para>
Add access method details for partitioned relations in \dP+ (Justin Pryzby)
<ulink url="&commit_baseurl;978f38c77">&sect;</ulink>
</para>
</listitem>

<!--
Author: Magnus Hagander <[email protected]>
2025-03-24 [d696406a9] psql: show default extension version in \dx output
-->

<listitem>
<para>
Add "default_version" to the psql \dx extension output (Magnus Hagander)
<ulink url="&commit_baseurl;d696406a9">&sect;</ulink>
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2025-03-25 [1a759c832] psql: Make default \watch interval configurable
-->

<listitem>
<para>
Add psql variable WATCH_INTERVAL to set the default \watch wait time (Daniel Gustafsson)
<ulink url="&commit_baseurl;1a759c832">&sect;</ulink>
</para>
</listitem>

      </itemizedlist>

    </sect3>

    <sect3 id="release-18-server-apps">
     <title>Server Applications</title>

     <itemizedlist>

<!--
Author: Peter Eisentraut <[email protected]>
2024-10-01 [983a588e0] initdb: Add new option "- -no-data-checksums"
Author: Peter Eisentraut <[email protected]>
2024-10-16 [04bec894a] initdb: Change default to using data checksums.
-->

<listitem>
<para>
Change initdb to default to enabling checksums (Greg Sabino Mullane)
<ulink url="&commit_baseurl;983a588e0">&sect;</ulink>
<ulink url="&commit_baseurl;04bec894a">&sect;</ulink>
</para>

<para>
The new initdb option --no-data-checksums disables checksums.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-03-25 [cf131fa94] initdb: Add - -no-sync-data-files.
-->

<listitem>
<para>
Add initdb option --no-sync-data-files to avoid syncing heap/index files (Nathan Bossart)
<ulink url="&commit_baseurl;cf131fa94">&sect;</ulink>
</para>

<para>
initdb --no-sync is still available to avoid syncing any files.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-03-18 [edba754f0] vacuumdb: Add option for analyzing only relations missin
Author: Nathan Bossart <[email protected]>
2025-04-30 [987910502] vacuumdb: Don't skip empty relations in - -missing-stats-
-->

<listitem>
<para>
Add vacuumdb option --missing-stats-only to compute only missing optimizer statistics (Corey Huinker, Nathan Bossart)
<ulink url="&commit_baseurl;edba754f0">&sect;</ulink>
<ulink url="&commit_baseurl;987910502">&sect;</ulink>
</para>

<para>
This option can only be used by --analyze-only and --analyze-in-stages.
</para>
</listitem>

<!--
Author: Robert Haas <[email protected]>
2025-03-17 [99aeb8470] pg_combinebackup: Add -k, - -link option.
-->

<listitem>
<para>
Add pg_combinebackup option -k/--link to enable hard linking (Israel Barth Rubio, Robert Haas)
<ulink url="&commit_baseurl;99aeb8470">&sect;</ulink>
</para>

<para>
Only some files can be hard linked.  This should not be used if the backups will be used independently.
</para>
</listitem>

<!--
Author: Robert Haas <[email protected]>
2024-09-27 [8dfd31290] pg_verifybackup: Verify tar-format backups.
-->

<listitem>
<para>
Allow pg_verifybackup to verify tar-format backups (Amul Sul)
<ulink url="&commit_baseurl;8dfd31290">&sect;</ulink>
</para>
</listitem>

<!--
Author: Masahiko Sawada <[email protected]>
2025-03-12 [4ecdd4110] pg_rewind: Add dbname to primary_conninfo when using - -w
-->

<listitem>
<para>
If pg_rewind's --source-server specifies a database name, use it in --write-recovery-conf output (Masahiko Sawada)
<ulink url="&commit_baseurl;4ecdd4110">&sect;</ulink>
</para>
</listitem>

<!--
Author: Masahiko Sawada <[email protected]>
2025-02-21 [30666d185] pg_resetwal: Add - -char-signedness option to change the
-->

<listitem>
<para>
Add pg_resetwal option --char-signedness to change the default char signedness (Masahiko Sawada)
<ulink url="&commit_baseurl;30666d185">&sect;</ulink>
</para>
</listitem>

   </itemizedlist>


    <sect4 id="release-18-pgdump">
     <title><link
     linkend="app-pgdump"><application>pg_dump</application></link>/<link
     linkend="app-pg-dumpall"><application>pg_dumpall</application></link>/<link
     linkend="app-pgrestore"><application>pg_restore</application></link></title>

     <itemizedlist>

<!--
Author: Andrew Dunstan <[email protected]>
2025-04-04 [1495eff7b] Non text modes for pg_dumpall, correspondingly change pg
-->

<listitem>
<para>
Allow pg_dumpall to dump in the same output formats as pg_dump supports (Mahendra Singh Thalor, Andrew Dunstan)
<ulink url="&commit_baseurl;1495eff7b">&sect;</ulink>
</para>

<para>
Also modify pg_restore to handle such dumps.  Previously pg_dumpall only supported text format.
</para>
</listitem>

<!--
Author: Jeff Davis <[email protected]>
2025-03-25 [bde2fb797] Add pg_dump - -with-{schema|data|statistics} options.
-->

<listitem>
<para>
Add pg_dump options --with-schema, --with-data, and --with-statistics (Jeff Davis)
<ulink url="&commit_baseurl;bde2fb797">&sect;</ulink>
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-03-25 [9c49f0e8c] pg_dump: Add - -sequence-data.
-->

<listitem>
<para>
Add pg_dump option --sequence-data to dump sequence data that would normally be excluded (Nathan Bossart)
<ulink url="&commit_baseurl;9c49f0e8c">&sect;</ulink>
</para>
</listitem>

<!--
Author: Jeff Davis <[email protected]>
2025-02-20 [1fd1bd871] Transfer statistics during pg_upgrade.
-->

<listitem>
<para>
Add pg_dump, pg_dumpall, and pg_restore options --statistics-only, --no-statistics, --no-data, and --no-schema (Corey Huinker, Jeff Davis)
<ulink url="&commit_baseurl;1fd1bd871">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-03-16 [cd3c45125] pg_dump, pg_dumpall, pg_restore: Add - -no-policies optio
-->

<listitem>
<para>
Add option --no-policies to disable row level security policy processing in pg_dump, pg_dumpall, pg_restore (Nikolay Samokhvalov)
<ulink url="&commit_baseurl;cd3c45125">&sect;</ulink>
</para>

<para>
This is useful for migrating to systems with different policies.
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-pgupgrade">
     <title><link linkend="pgupgrade"><application>pg_upgrade</application></link></title>

     <itemizedlist>

<!--
Author: Jeff Davis <[email protected]>
2025-02-20 [1fd1bd871] Transfer statistics during pg_upgrade.
Author: Nathan Bossart <[email protected]>
2025-03-18 [c9d502eb6] Update guidance for running vacuumdb after pg_upgrade.
Author: Nathan Bossart <[email protected]>
2025-04-30 [d5f1b6a75] Further adjust guidance for running vacuumdb after pg_up
Author: Jeff Davis <[email protected]>
2025-02-20 [1fd1bd871] Transfer statistics during pg_upgrade.
-->

<listitem>
<para>
Allow pg_upgrade to preserve optimizer statistics (Corey Huinker, Jeff Davis, Nathan Bossart)
<ulink url="&commit_baseurl;1fd1bd871">&sect;</ulink>
<ulink url="&commit_baseurl;c9d502eb6">&sect;</ulink>
<ulink url="&commit_baseurl;d5f1b6a75">&sect;</ulink>
<ulink url="&commit_baseurl;1fd1bd871">&sect;</ulink>
</para>

<para>
Extended statistics are not preserved.  Also add pg_upgrade option --no-statistics to disable statistics preservation.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2024-09-16 [40e2e5e92] Introduce framework for parallelizing various pg_upgrade
Author: Nathan Bossart <[email protected]>
2024-09-16 [6d3d2e8e5] pg_upgrade: Parallelize retrieving relation information.
Author: Nathan Bossart <[email protected]>
2024-09-16 [7baa36de5] pg_upgrade: Parallelize subscription check.
Author: Nathan Bossart <[email protected]>
2024-09-16 [46cad8b31] pg_upgrade: Parallelize retrieving loadable libraries.
Author: Nathan Bossart <[email protected]>
2024-09-16 [6ab8f27bc] pg_upgrade: Parallelize retrieving extension updates.
Author: Nathan Bossart <[email protected]>
2024-09-16 [bbf83cab9] pg_upgrade: Parallelize data type checks.
Author: Nathan Bossart <[email protected]>
2024-09-16 [9db3018cf] pg_upgrade: Parallelize contrib/isn check.
Author: Nathan Bossart <[email protected]>
2024-09-16 [c34eabfbb] pg_upgrade: Parallelize postfix operator check.
Author: Nathan Bossart <[email protected]>
2024-09-16 [cf2f82a37] pg_upgrade: Parallelize incompatible polymorphics check.
Author: Nathan Bossart <[email protected]>
2024-09-16 [f93f5f7b9] pg_upgrade: Parallelize WITH OIDS check.
Author: Nathan Bossart <[email protected]>
2024-09-16 [c880cf258] pg_upgrade: Parallelize encoding conversion check.
-->

<listitem>
<para>
Allow pg_upgrade to process database checks in parallel (Nathan Bossart)
<ulink url="&commit_baseurl;40e2e5e92">&sect;</ulink>
<ulink url="&commit_baseurl;6d3d2e8e5">&sect;</ulink>
<ulink url="&commit_baseurl;7baa36de5">&sect;</ulink>
<ulink url="&commit_baseurl;46cad8b31">&sect;</ulink>
<ulink url="&commit_baseurl;6ab8f27bc">&sect;</ulink>
<ulink url="&commit_baseurl;bbf83cab9">&sect;</ulink>
<ulink url="&commit_baseurl;9db3018cf">&sect;</ulink>
<ulink url="&commit_baseurl;c34eabfbb">&sect;</ulink>
<ulink url="&commit_baseurl;cf2f82a37">&sect;</ulink>
<ulink url="&commit_baseurl;f93f5f7b9">&sect;</ulink>
<ulink url="&commit_baseurl;c880cf258">&sect;</ulink>
</para>

<para>
This is controlled by the existing --jobs option.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-03-25 [626d7236b] pg_upgrade: Add - -swap for faster file transfer.
-->

<listitem>
<para>
Add pg_upgrade option --swap to swap directories rather than copy, clone, or link files (Nathan Bossart)
<ulink url="&commit_baseurl;626d7236b">&sect;</ulink>
</para>

<para>
This mode is potentially the fastest.
</para>
</listitem>

<!--
Author: Masahiko Sawada <[email protected]>
2025-02-21 [a8238f87f] pg_upgrade: Preserve default char signedness value from
Author: Masahiko Sawada <[email protected]>
2025-02-21 [1aab68059] pg_upgrade: Add - -set-char-signedness to set the default
-->

<listitem>
<para>
Add pg_upgrade option --set-char-signedness to set the default char signedness of new cluster (Masahiko Sawada)
<ulink url="&commit_baseurl;a8238f87f">&sect;</ulink>
<ulink url="&commit_baseurl;1aab68059">&sect;</ulink>
</para>

<para>
This is to handle cases where a pre-Postgres 18 cluster's default CPU signedness does not match the new cluster.
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-logicalrep-app">
     <title>Logical Replication Applications></title>

     <itemizedlist>

<!--
Author: Amit Kapila <[email protected]>
2025-03-28 [fb2ea12f4] pg_createsubscriber: Add '- -all' option.
-->

<listitem>
<para>
Add pg_createsubscriber option --all to create logical replicas for all databases (Shubham Khanna)
<ulink url="&commit_baseurl;fb2ea12f4">&sect;</ulink>
</para>
</listitem>

<!--
Author: Amit Kapila <[email protected]>
2025-03-20 [e5aeed4b8] pg_createsubscriber: Add -R publications option.
-->

<listitem>
<para>
Add pg_createsubscriber option --remove to remove publications (Shubham Khanna)
<ulink url="&commit_baseurl;e5aeed4b8">&sect;</ulink>
</para>
</listitem>

<!--
Author: Amit Kapila <[email protected]>
2025-02-26 [e117cfb2f] Add two-phase option in pg_createsubscriber.
-->

<listitem>
<para>
Add pg_createsubscriber option --enable-two-phase to enable prepared transactions (Shubham Khanna)
<ulink url="&commit_baseurl;e117cfb2f">&sect;</ulink>
</para>
</listitem>

<!--
Author: Masahiko Sawada <[email protected]>
2025-04-04 [cf2655a90] pg_recvlogical: Add - -failover option.
-->

<listitem>
<para>
Add pg_recvlogical option --failover to specify failover slots (Hayato Kuroda)
<ulink url="&commit_baseurl;cf2655a90">&sect;</ulink>
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2025-03-25 [c68100aa4] Allow pg_recvlogical - -drop-slot to work without - -dbnam
-->

<listitem>
<para>
Allow pg_recvlogical --drop-slot to work without --dbname (Hayato Kuroda)
<ulink url="&commit_baseurl;c68100aa4">&sect;</ulink>
</para>
</listitem>

     </itemizedlist>

    </sect4>

   </sect3>

   <sect3 id="release-18-source-code">
    <title>Source Code</title>

    <itemizedlist>

<!--
Author: Michael Paquier <[email protected]>
2024-07-05 [4b211003e] Support loading of injection points
Author: Michael Paquier <[email protected]>
2024-07-18 [a0a5869a8] Add INJECTION_POINT_CACHED() to run injection points dir
-->

<listitem>
<para>
Separate the loading and running of injection points (Michael Paquier, Heikki Linnakangas)
<ulink url="&commit_baseurl;4b211003e">&sect;</ulink>
<ulink url="&commit_baseurl;a0a5869a8">&sect;</ulink>
</para>

<para>
Injection points can now be created, but not run, via INJECTION_POINT_LOAD(), and such injection points can be run via INJECTION_POINT_CACHED().
</para>
</listitem>

<!--
Author: Heikki Linnakangas <[email protected]>
2024-07-26 [20e0e7da9] Add test for early backend startup errors
-->

<listitem>
<para>
Allow inline injection point test code with IS_INJECTION_POINT_ATTACHED() (Heikki Linnakangas)
<ulink url="&commit_baseurl;20e0e7da9">&sect;</ulink>
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-08-05 [ca6fde922] Optimize JSON escaping using SIMD
-->

<listitem>
<para>
Improve the performance of processing long JSON strings using SIMD instructions (David Rowley)
<ulink url="&commit_baseurl;ca6fde922">&sect;</ulink>
</para>
</listitem>

<!--
Author: John Naylor <[email protected]>
2025-04-06 [3c6e8c123] Compute CRC32C using AVX-512 instructions where availabl
-->

<listitem>
<para>
Speed up CRC32C calculations using x86 AVX-512 instructions (Raghuveer Devulapalli, Paul Amonson)
<ulink url="&commit_baseurl;3c6e8c123">&sect;</ulink>
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-03-28 [6be53c276] Optimize popcount functions with ARM Neon intrinsics.
Author: Nathan Bossart <[email protected]>
2025-03-28 [519338ace] Optimize popcount functions with ARM SVE intrinsics.
-->

<listitem>
<para>
Add ARM Neon and SVE CPU intrinsics for popcount (integer bit counting) (Chiranmoy Bhattacharya, Devanga Susmitha, Rama Malladi)
<ulink url="&commit_baseurl;6be53c276">&sect;</ulink>
<ulink url="&commit_baseurl;519338ace">&sect;</ulink>
</para>
</listitem>

<!--
Author: Dean Rasheed <[email protected]>
2024-08-15 [8dc28d7eb] Optimise numeric multiplication using base-NBASE^2 arith
-->

<listitem>
<para>
Improve the speed of multiplication (Joel Jacobson, Dean Rasheed)
<ulink url="&commit_baseurl;8dc28d7eb">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tomas Vondra <[email protected]>
2025-04-07 [65c298f61] Add support for basic NUMA awareness
Author: Tomas Vondra <[email protected]>
2025-04-07 [8cc139bec] Introduce pg_shmem_allocations_numa view
Author: Tomas Vondra <[email protected]>
2025-04-07 [ba2a3c230] Add pg_buffercache_numa view with NUMA node info
-->

<listitem>
<para>
Add configure option --with-libnuma to enable NUMA awareness (Jakub Wartak, Bertrand Drouvot)
<ulink url="&commit_baseurl;65c298f61">&sect;</ulink>
<ulink url="&commit_baseurl;8cc139bec">&sect;</ulink>
<ulink url="&commit_baseurl;ba2a3c230">&sect;</ulink>
</para>

<para>
The function pg_numa_available() reports on NUMA awareness, and system views pg_shmem_allocations_numa and pg_buffercache_numa which report on shared memory distribution across
NUMA nodes.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2024-09-18 [b52c4fc3c] Add TOAST table to pg_index.
-->

<listitem>
<para>
Add TOAST table to pg_index to allow for very large index expression indexes (Nathan Bossart)
<ulink url="&commit_baseurl;b52c4fc3c">&sect;</ulink>
</para>
</listitem>

<!--
Author: David Rowley <[email protected]>
2024-12-20 [02a8d0c45] Remove pg_attribute.attcacheoff column
-->

<listitem>
<para>
Remove column pg_attribute.attcacheoff (David Rowley)
<ulink url="&commit_baseurl;02a8d0c45">&sect;</ulink>
</para>
</listitem>

<!--
Author: Melanie Plageman <[email protected]>
2025-03-03 [99f8f3fbb] Add relallfrozen to pg_class
-->

<listitem>
<para>
Add column pg_class.relallfrozen (Melanie Plageman)
<ulink url="&commit_baseurl;99f8f3fbb">&sect;</ulink>
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2024-09-10 [56fead44d] Add amgettreeheight index AM API routine
Author: Peter Eisentraut <[email protected]>
2025-03-07 [af4002b38] Rename amcancrosscompare
-->

<listitem>
<para>
Add amgettreeheight, amconsistentequality, and amconsistentordering to the index access method API (Mark Dilger)
<ulink url="&commit_baseurl;56fead44d">&sect;</ulink>
<ulink url="&commit_baseurl;af4002b38">&sect;</ulink>
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2024-09-17 [7406ab623] Add stratnum GiST support function
-->

<listitem>
<para>
Add GiST support function stratnum (Paul A. Jungwirth)
<ulink url="&commit_baseurl;7406ab623">&sect;</ulink>
</para>
</listitem>

<!--
Author: Masahiko Sawada <[email protected]>
2025-02-21 [44fe30fda] Add default_char_signedness field to ControlFileData.
-->

<listitem>
<para>
Record the default CPU signedness of "char" in pg_controldata (Masahiko Sawada)
<ulink url="&commit_baseurl;44fe30fda">&sect;</ulink>
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-03-12 [72a3d0462] Prepare for Python "Limited API" in PL/Python
Author: Peter Eisentraut <[email protected]>
2025-03-14 [0793ab810] Activate Python "Limited API" in PL/Python
-->

<listitem>
<para>
Add support for Python "Limited API" in PL/Python (Peter Eisentraut)
<ulink url="&commit_baseurl;72a3d0462">&sect;</ulink>
<ulink url="&commit_baseurl;0793ab810">&sect;</ulink>
</para>

<para>
This helps prevent problems caused by Python 3.x version mismatches.
</para>
</listitem>

<!--
Author: Jacob Champion <[email protected]>
2025-04-29 [45363fca6] Bump the minimum supported Python version to 3.6.8
-->

<listitem>
<para>
Change the minimum supported Python version to 3.6.8 (Jacob Champion)
<ulink url="&commit_baseurl;45363fca6">&sect;</ulink>
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2024-09-02 [a70e01d43] Remove support for OpenSSL older than 1.1.0
Author: Daniel Gustafsson <[email protected]>
2024-10-24 [6c66b7443] Raise the minimum supported OpenSSL version to 1.1.1
-->

<listitem>
<para>
Remove support for OpenSSL versions older than 1.1.1 (Daniel Gustafsson)
<ulink url="&commit_baseurl;a70e01d43">&sect;</ulink>
<ulink url="&commit_baseurl;6c66b7443">&sect;</ulink>
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2024-10-01 [972c2cd28] jit: Require at least LLVM 14, if enabled.
-->

<listitem>
<para>
If LLVM is enabled, require version 14 or later (Thomas Munro)
<ulink url="&commit_baseurl;972c2cd28">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-03-26 [9324c8c58] Introduce PG_MODULE_MAGIC_EXT macro.
-->

<listitem>
<para>
Add macro PG_MODULE_MAGIC_EXT to allow extensions to report their name and version (Andrei Lepikhov)
<ulink url="&commit_baseurl;9324c8c58">&sect;</ulink>
</para>

<para>
This information can be access via the new function pg_get_loaded_modules().
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-09-09 [218527d01] Don't bother checking the result of SPI_connect[_ext] an
-->

<listitem>
<para>
Document that SPI_connect/SPI_connect_ext() always returns success (SPI_OK_CONNECT) (Stepan Neretin)
<ulink url="&commit_baseurl;218527d01">&sect;</ulink>
</para>

<para>
Errors are always reported via ereport().
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-01-27 [5afaba629] doc: Meson is not experimental on Windows
-->

<listitem>
<para>
Remove the experimental designation of Meson builds on Windows (Aleksander Alekseev)
<ulink url="&commit_baseurl;5afaba629">&sect;</ulink>
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2024-07-31 [e54a42ac9] Add API and ABI stability guidance to the C language doc
-->

<listitem>
<para>
Add documentation section about API and ABI compatibility (David Wheeler, Peter Eisentraut)
<ulink url="&commit_baseurl;e54a42ac9">&sect;</ulink>
</para>
</listitem>

<!--
Author: Thomas Munro <[email protected]>
2024-07-30 [e25626677] Remove - -disable-spinlocks.
Author: Thomas Munro <[email protected]>
2024-07-30 [813852613] Remove - -disable-atomics, require 32 bit atomics.
-->

<listitem>
<para>
Remove configure options --disable-spinlocks and --disable-atomics (Thomas Munro)
<ulink url="&commit_baseurl;e25626677">&sect;</ulink>
<ulink url="&commit_baseurl;813852613">&sect;</ulink>
</para>

<para>
Thirty-two bit atomic operations are now required.
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2024-07-01 [edadeb071] Remove support for HPPA (a/k/a PA-RISC) architecture.
-->

<listitem>
<para>
Remove support for the HPPA/PA-RISC architecture (Tom Lane)
<ulink url="&commit_baseurl;edadeb071">&sect;</ulink>
</para>
</listitem>

    </itemizedlist>

   </sect3>

   <sect3 id="release-18-modules">
    <title>Additional Modules</title>

    <itemizedlist>

<!--
Author: Masahiko Sawada <[email protected]>
2024-10-14 [7cdfeee32] Add contrib/pg_logicalinspect.
-->

<listitem>
<para>
Add extension pg_logicalinspect to inspect logical snapshots (Bertrand Drouvot)
<ulink url="&commit_baseurl;7cdfeee32">&sect;</ulink>
</para>
</listitem>

<!--
Author: Robert Haas <[email protected]>
2025-03-26 [8d5ceb113] pg_overexplain: Additional EXPLAIN options for debugging
-->

<listitem>
<para>
Add extension pg_overexplain which adds debug details to EXPLAIN output (Robert Haas)
<ulink url="&commit_baseurl;8d5ceb113">&sect;</ulink>
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2024-07-26 [c297a47c5] postgres_fdw: Add "used_in_xact" column to postgres_fdw_
Author: Fujii Masao <[email protected]>
2024-07-26 [857df3cef] postgres_fdw: Add connection status check to postgres_fd
Author: Fujii Masao <[email protected]>
2024-09-18 [4f08ab554] postgres_fdw: Extend postgres_fdw_get_connections to ret
Author: Fujii Masao <[email protected]>
2025-03-03 [fe186bda7] postgres_fdw: Extend postgres_fdw_get_connections to ret
-->

<listitem>
<para>
Add output columns to postgres_fdw_get_connections() (Hayato Kuroda, Sagar Dilip Shedge)
<ulink url="&commit_baseurl;c297a47c5">&sect;</ulink>
<ulink url="&commit_baseurl;857df3cef">&sect;</ulink>
<ulink url="&commit_baseurl;4f08ab554">&sect;</ulink>
<ulink url="&commit_baseurl;fe186bda7">&sect;</ulink>
</para>

<para>
New output column "used_in_xact" indicates if the foreign data wrapper is being used by a current transaction, "closed" indicates if it is closed, "user_name" indicates the
user name, and "remote_backend_pid" indicates the remote backend process identifier.
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-01-15 [761c79508] postgres_fdw: SCRAM authentication pass-through
-->

<listitem>
<para>
Allow SCRAM authentication from the client to be passed to postgres_fdw servers (Matheus Alcantara, Peter Eisentraut)
<ulink url="&commit_baseurl;761c79508">&sect;</ulink>
</para>

<para>
This avoids storing postgres_fdw authentication information in the database, and is enabled with the postgres_fdw "use_scram_passthrough" connection option.  libpq uses new connection
parameters scram_client_key and scram_server_key.
</para>
</listitem>

<!--
Author: Peter Eisentraut <[email protected]>
2025-03-26 [3642df265] dblink: SCRAM authentication pass-through
-->

<listitem>
<para>
Allow SCRAM authentication from the client to be passed to dblink servers (Matheus Alcantara)
<ulink url="&commit_baseurl;3642df265">&sect;</ulink>
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2024-10-03 [a1c4c8a9e] file_fdw: Add on_error and log_verbosity options to file
-->

<listitem>
<para>
Add on_error and log_verbosity options to file_fdw (Atsushi Torikoshi)
<ulink url="&commit_baseurl;a1c4c8a9e">&sect;</ulink>
</para>

<para>
These control how file_fdw handles and reports invalid file rows.
</para>
</listitem>

<!--
Author: Fujii Masao <[email protected]>
2024-11-20 [6c8f67032] file_fdw: Add REJECT_LIMIT option to file_fdw.
-->

<listitem>
<para>
Add "reject_limit" to control the number of invalid rows file_fdw can ignore (Atsushi Torikoshi)
<ulink url="&commit_baseurl;6c8f67032">&sect;</ulink>
</para>

<para>
This is active when ON_ERROR = 'ignore'.
</para>
</listitem>

<!--
Author: Nathan Bossart <[email protected]>
2025-01-07 [f7e1b3828] Add passwordcheck.min_password_length.
-->

<listitem>
<para>
Add configurable variable min_password_length to passwordcheck (Emanuele Musella, Maurizio Boriani)
<ulink url="&commit_baseurl;f7e1b3828">&sect;</ulink>
</para>

<para>
This controls the minimum password length.
</para>
</listitem>

<!--
Author: Tatsuo Ishii <[email protected]>
2024-10-11 [cae0f3c40] pgbench: Improve result outputs related to failed transa
-->

<listitem>
<para>
Have pgbench report the number of failed transactions (Yugo Nagata)
<ulink url="&commit_baseurl;cae0f3c40">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tom Lane <[email protected]>
2025-03-16 [448904423] contrib/isn: Make weak mode a GUC setting, and fix relat
-->

<listitem>
<para>
Add isn server variable "weak" to control invalid check digit acceptance (Viktor Holmberg)
<ulink url="&commit_baseurl;448904423">&sect;</ulink>
</para>

<para>
This was previously only controlled by function isn_weak().
</para>
</listitem>

<!--
Author: Heikki Linnakangas <[email protected]>
2025-04-03 [e4309f73f] Add support for sorted gist index builds to btree_gist
-->

<listitem>
<para>
Allow values to be sorted to speed btree_gist index builds (Bernd Helmle, Andrey Borodin)
<ulink url="&commit_baseurl;e4309f73f">&sect;</ulink>
</para>
</listitem>

<!--
Author: Tomas Vondra <[email protected]>
2025-03-29 [14ffaece0] amcheck: Add gin_index_check() to verify GIN index
-->

<listitem>
<para>
Add amcheck function gin_index_check() to verify GIN indexes (Grigory Kryachko, Heikki Linnakangas, Andrey Borodin)
<ulink url="&commit_baseurl;14ffaece0">&sect;</ulink>
</para>
</listitem>

<!--
Author: Andres Freund <[email protected]>
2025-04-08 [dcf7e1697] Add pg_buffercache_evict_{relation,all} functions
-->

<listitem>
<para>
Add functions pg_buffercache_evict_relation() and pg_buffercache_evict_all() to evict unpinned shared buffers (Nazir Bilal Yavuz)
<ulink url="&commit_baseurl;dcf7e1697">&sect;</ulink>
</para>

<para>
The existing function pg_buffercache_evict() now returns the buffer flush status.
</para>
</listitem>

<!--
Author: Robert Haas <[email protected]>
2025-03-18 [c65bc2e1d] Make it possible for loadable modules to add EXPLAIN opt
Author: Robert Haas <[email protected]>
2025-03-18 [4fd02bf7c] Add some new hooks so extensions can add details to EXPL
Author: Robert Haas <[email protected]>
2025-03-20 [50ba65e73] Add an additional hook for EXPLAIN option validation.
-->

<listitem>
<para>
Allow extensions to install custom EXPLAIN options (Robert Haas, Sami Imseih)
<ulink url="&commit_baseurl;c65bc2e1d">&sect;</ulink>
<ulink url="&commit_baseurl;4fd02bf7c">&sect;</ulink>
<ulink url="&commit_baseurl;50ba65e73">&sect;</ulink>
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-08-04 [7949d9594] Introduce pluggable APIs for Cumulative Statistics
Author: Michael Paquier <[email protected]>
2024-08-05 [2eff9e678] Add helper routines to retrieve data for custom fixed-nu
-->

<listitem>
<para>
Allow extensions to use the server's cumulative statistics API (Michael Paquier)
<ulink url="&commit_baseurl;7949d9594">&sect;</ulink>
<ulink url="&commit_baseurl;2eff9e678">&sect;</ulink>
</para>
</listitem>

    </itemizedlist>

    <sect4 id="release-18-pgstatstatements">
     <title><link linkend="pgstatstatements"><application>pg_stat_statements</application></link></title>

     <itemizedlist>

<!--
Author: Michael Paquier <[email protected]>
2024-10-28 [6b652e6ce] Set query ID for inner queries of CREATE TABLE AS and DE
-->

<listitem>
<para>
Allow the queries of CREATE TABLE AS and DECLARE to be tracked by pg_stat_statements (Anthonin Bonnefoy)
<ulink url="&commit_baseurl;6b652e6ce">&sect;</ulink>
</para>

<para>
They are also now assigned query ids.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-09-30 [dc6851596] Show values of SET statements as constants in pg_stat_st
-->

<listitem>
<para>
Allow the parameterization of SET values in pg_stat_statements (Greg Sabino Mullane, Michael Paquier)
<ulink url="&commit_baseurl;dc6851596">&sect;</ulink>
</para>

<para>
This reduces the bloat caused by SET statements with differing constants.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2024-10-09 [cf54a2c00] pg_stat_statements: Add columns to track parallel worker
-->

<listitem>
<para>
Add pg_stat_statements columns to report parallel activity (Guillaume Lelarge)
<ulink url="&commit_baseurl;cf54a2c00">&sect;</ulink>
</para>

<para>
The new columns are parallel_workers_to_launch and parallel_workers_launched.
</para>
</listitem>

<!--
Author: Michael Paquier <[email protected]>
2025-02-17 [ce5bcc4a9] pg_stat_statements: Add wal_buffers_full
-->

<listitem>
<para>
Add pg_stat_statements.wal_buffers_full to report full WAL buffers (Bertrand Drouvot)
<ulink url="&commit_baseurl;ce5bcc4a9">&sect;</ulink>
</para>
</listitem>

     </itemizedlist>

    </sect4>

    <sect4 id="release-18-pgcrypto">
     <title><link linkend="pgcrypto"><application>pgcrypto</application></link></title>

     <itemizedlist>

<!--
Author: Álvaro Herrera <[email protected]>
2025-04-05 [749a9e20c] Add modern SHA-2 based password hashes to pgcrypto.
-->

<listitem>
<para>
Add pgcrypto functions sha256crypt() and sha512crypt() (Bernd Helmle)
<ulink url="&commit_baseurl;749a9e20c">&sect;</ulink>
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2025-02-14 [9ad1b3d01] pgcrypto: Add support for CFB mode in AES encryption
-->

<listitem>
<para>
Add CFB mode to pgcrypto encryption and decryption (Umar Hayat)
<ulink url="&commit_baseurl;9ad1b3d01">&sect;</ulink>
</para>
</listitem>

<!--
Author: Daniel Gustafsson <[email protected]>
2025-01-24 [035f99cbe] pgcrypto: Make it possible to disable built-in crypto
-->

<listitem>
<para>
Add pgcrypto server variable builtin_crypto_enabled to allow disabling builtin non-FIPS mode cryptographic functions (Daniel Gustafsson, Joe Conway)
<ulink url="&commit_baseurl;035f99cbe">&sect;</ulink>
</para>

<para>
This is useful for guaranteeing FIPS mode behavior.
</para>
</listitem>

     </itemizedlist>
    </sect4>

   </sect3>

  </sect2>

  <sect2 id="release-18-acknowledgements">
   <title>Acknowledgments</title>

   <para>
    The following individuals (in alphabetical order) have contributed
    to this release as patch authors, committers, reviewers, testers,
    or reporters of issues.
   </para>

   <simplelist>
    <member>(to be completed)</member>
   </simplelist>
  </sect2>

 </sect1>