1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
|
<!-- doc/src/sgml/release-17.sgml -->
<!-- See header comment in release.sgml about typical markup -->
<sect1 id="release-17-5">
<title>Release 17.5</title>
<formalpara>
<title>Release date:</title>
<para>2025-05-08</para>
</formalpara>
<para>
This release contains a variety of fixes from 17.4.
For information about new features in major release 17, see
<xref linkend="release-17"/>.
</para>
<sect2 id="release-17-5-migration">
<title>Migration to Version 17.5</title>
<para>
A dump/restore is not required for those running 17.X.
</para>
<para>
However, if you have any self-referential foreign key constraints on
partitioned tables, it may be necessary to recreate those constraints
to ensure that they are being enforced correctly. See the first
changelog entry below.
</para>
<para>
Also, if you have any BRIN bloom indexes, it may be advisable to
reindex them after updating. See the second changelog entry below.
</para>
<para>
Also, if you are upgrading from a version earlier than 17.1,
see <xref linkend="release-17-1"/>.
</para>
</sect2>
<sect2 id="release-17-5-changes">
<title>Changes</title>
<itemizedlist>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@kurilemu.de>
Branch: master [c83a38758] 2025-05-02 21:25:50 +0200
Branch: REL_17_STABLE [f51ae3187] 2025-05-02 21:25:50 +0200
Branch: REL_16_STABLE [1817d62ec] 2025-05-02 21:25:50 +0200
Branch: REL_15_STABLE [6ba979cf5] 2025-05-02 21:25:50 +0200
Branch: REL_14_STABLE [1649d153a] 2025-05-02 21:25:50 +0200
Branch: REL_13_STABLE [b3a9c536d] 2025-05-02 21:25:50 +0200
-->
<para>
Handle self-referential foreign keys on partitioned tables correctly
(Álvaro Herrera)
<ulink url="&commit_baseurl;f51ae3187">§</ulink>
</para>
<para>
Creating or attaching partitions failed to make the required catalog
entries for a foreign-key constraint, if the table referenced by the
constraint was the same partitioned table. This resulted in failure
to enforce the constraint fully.
</para>
<para>
To fix this, you should drop and recreate any self-referential
foreign keys on partitioned tables, if partitions have been created
or attached since the constraint was created. Bear in mind that
violating rows might already be present, in which case recreating
the constraint will fail, and you'll need to fix up those rows
before trying again.
</para>
</listitem>
<listitem>
<!--
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Branch: master [818245506] 2025-03-26 17:01:41 +0100
Branch: REL_17_STABLE [cb0ad70b8] 2025-03-26 17:02:17 +0100
Branch: REL_16_STABLE [ebcc799a7] 2025-03-26 17:02:50 +0100
Branch: REL_15_STABLE [e064b770c] 2025-03-26 17:03:02 +0100
Branch: REL_14_STABLE [6be02bbc8] 2025-03-26 17:03:06 +0100
-->
<para>
Avoid data loss when merging compressed BRIN summaries
in <function>brin_bloom_union()</function> (Tomas Vondra)
<ulink url="&commit_baseurl;cb0ad70b8">§</ulink>
</para>
<para>
The code failed to account for decompression results not being
identical to the input objects, which would result in failure to add
some of the data to the merged summary, leading to missed rows in
index searches.
</para>
<para>
This mistake was present back to v14 where BRIN bloom indexes were
introduced, but this code path was only rarely reached then. It's
substantially more likely to be hit in v17 because parallel index
builds now use the code.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [f4e7756ef] 2025-03-12 11:47:38 -0400
Branch: REL_17_STABLE [ca0830e5a] 2025-03-12 11:47:19 -0400
Branch: REL_16_STABLE [fec43428c] 2025-03-12 11:47:19 -0400
Branch: REL_15_STABLE [ae0be2f0b] 2025-03-12 11:47:19 -0400
Branch: REL_14_STABLE [d3a29ae6a] 2025-03-12 11:47:19 -0400
Branch: REL_13_STABLE [39af32f78] 2025-03-12 11:47:19 -0400
Branch: REL_15_STABLE [317aba70e] 2025-03-12 11:27:59 -0400
Branch: REL_14_STABLE [584f17a90] 2025-03-12 11:28:04 -0400
Branch: REL_13_STABLE [28a7e31d0] 2025-03-12 11:28:11 -0400
Branch: REL_15_STABLE [7713f4592] 2025-03-13 12:13:07 -0400
Branch: REL_14_STABLE [1a20bc946] 2025-03-13 12:13:07 -0400
Branch: REL_13_STABLE [b200180de] 2025-03-13 12:13:07 -0400
-->
<para>
Fix unexpected <quote>attribute has wrong type</quote> errors
in <command>UPDATE</command>, <command>DELETE</command>,
and <command>MERGE</command> queries that use whole-row table
references to views or functions in <literal>FROM</literal>
(Tom Lane)
<ulink url="&commit_baseurl;ca0830e5a">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
Branch: master [8b6a0e239] 2025-03-29 09:58:40 +0000
Branch: REL_17_STABLE [25303678a] 2025-03-29 09:50:14 +0000
Branch: REL_16_STABLE [8d4cd3b4a] 2025-03-29 09:51:23 +0000
Branch: REL_15_STABLE [14a33d3f0] 2025-03-29 09:52:18 +0000
-->
<para>
Fix <command>MERGE</command> into a partitioned table
with <literal>DO NOTHING</literal> actions (Tender Wang)
<ulink url="&commit_baseurl;25303678a">§</ulink>
</para>
<para>
Some cases failed with <quote>unknown action in MERGE WHEN
clause</quote> errors.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [7c8728494] 2025-04-15 12:08:34 -0400
Branch: REL_17_STABLE [3c39c000c] 2025-04-15 12:08:34 -0400
Branch: REL_16_STABLE [f04e0faa3] 2025-04-15 12:08:34 -0400
Branch: REL_15_STABLE [97d671672] 2025-04-15 12:08:34 -0400
Branch: REL_14_STABLE [4604928ed] 2025-04-15 12:08:34 -0400
-->
<para>
Prevent failure in <command>INSERT</command> commands when the table
has a <literal>GENERATED</literal> column of a domain data type and
the domain's constraints disallow null values (Jian He)
<ulink url="&commit_baseurl;3c39c000c">§</ulink>
</para>
<para>
Constraint failure was reported even if the generation expression
produced a perfectly okay result.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [691836405] 2025-04-05 15:01:48 -0400
Branch: REL_17_STABLE [5e7be43f4] 2025-04-05 15:01:33 -0400
Branch: REL_16_STABLE [1980ec2bc] 2025-04-05 15:01:33 -0400
Branch: REL_15_STABLE [ede29a1e4] 2025-04-05 15:01:33 -0400
Branch: REL_14_STABLE [754a3d82d] 2025-04-05 15:01:33 -0400
Branch: REL_13_STABLE [e276b5829] 2025-04-05 15:01:33 -0400
-->
<para>
Correctly process references to outer CTE names that appear within
a <literal>WITH</literal> clause attached to
an <command>INSERT</command>/<command>UPDATE</command>/<command>DELETE</command>/<command>MERGE</command>
command that's inside <literal>WITH</literal> (Tom Lane)
<ulink url="&commit_baseurl;5e7be43f4">§</ulink>
</para>
<para>
The parser failed to detect disallowed recursion cases, nor did it
account for such references when sorting CTEs into a usable order.
</para>
</listitem>
<listitem>
<!--
Author: Amit Langote <amitlan@postgresql.org>
Branch: master [d4f79865d] 2025-03-13 09:56:36 +0900
Branch: REL_17_STABLE [8b2392ae3] 2025-03-13 09:56:49 +0900
-->
<para>
Fix misprocessing of casts within the keys of JSON constructor
expressions (Amit Langote)
<ulink url="&commit_baseurl;8b2392ae3">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [fedfcf665] 2025-03-09 13:11:20 -0400
Branch: REL_17_STABLE [43847dd5e] 2025-03-09 13:11:20 -0400
Branch: REL_16_STABLE [a7aa9f21f] 2025-03-09 13:11:20 -0400
-->
<para>
Don't try to parallelize <function>array_agg()</function> when the
argument is of an anonymous record type (Richard Guo, Tom Lane)
<ulink url="&commit_baseurl;43847dd5e">§</ulink>
</para>
<para>
The protocol for communicating with parallel workers doesn't support
identifying the concrete record type that a worker is returning.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [4618045be] 2025-03-13 16:07:55 -0400
Branch: REL_17_STABLE [c826cd1b1] 2025-03-13 16:07:55 -0400
Branch: REL_16_STABLE [0405982c7] 2025-03-13 16:07:55 -0400
Branch: REL_15_STABLE [13dd6f772] 2025-03-13 16:07:55 -0400
Branch: REL_14_STABLE [f7ae51312] 2025-03-13 16:07:55 -0400
Branch: REL_13_STABLE [474aee3df] 2025-03-13 16:07:55 -0400
-->
<para>
Fix <literal>ARRAY(<replaceable>subquery</replaceable>)</literal>
and <literal>ARRAY[<replaceable>expression, ...</replaceable>]</literal>
constructs to produce sane results when the input is of
type <type>int2vector</type> or <type>oidvector</type> (Tom Lane)
<ulink url="&commit_baseurl;c826cd1b1">§</ulink>
</para>
<para>
This patch restores the behavior that existed
before <productname>PostgreSQL</productname> 9.5: the result is of
type <type>int2vector[]</type> or <type>oidvector[]</type>.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [7fb880102] 2025-03-08 11:24:25 -0500
Branch: REL_17_STABLE [99c01aadf] 2025-03-08 11:24:42 -0500
Branch: REL_16_STABLE [61513da08] 2025-03-08 11:24:47 -0500
Branch: REL_15_STABLE [e2921c0e9] 2025-03-08 11:24:52 -0500
Branch: REL_14_STABLE [da85544ae] 2025-03-08 11:24:57 -0500
Branch: REL_13_STABLE [f1c1bafcd] 2025-03-08 11:25:01 -0500
-->
<para>
Fix possible erroneous reports of invalid affixes while parsing
<application>Ispell</application> dictionaries (Jacob Brazeal)
<ulink url="&commit_baseurl;99c01aadf">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [95f650674] 2025-03-03 12:43:44 -0500
Branch: REL_17_STABLE [d6dd2a02b] 2025-03-03 12:43:29 -0500
Branch: REL_16_STABLE [edc3bccd0] 2025-03-03 12:43:29 -0500
Branch: REL_15_STABLE [1d180931c] 2025-03-03 12:43:29 -0500
Branch: REL_14_STABLE [c75c830e2] 2025-03-03 12:43:29 -0500
Branch: REL_13_STABLE [aac07b562] 2025-03-03 12:43:29 -0500
Branch: master [bd178960c] 2025-04-02 11:13:01 -0400
Branch: REL_17_STABLE [0941aadcd] 2025-04-02 11:13:01 -0400
Branch: REL_16_STABLE [053222a97] 2025-04-02 11:13:01 -0400
Branch: REL_15_STABLE [2d6cfb0cd] 2025-04-02 11:13:01 -0400
Branch: REL_14_STABLE [d31d39cfe] 2025-04-02 11:13:01 -0400
Branch: REL_13_STABLE [dd34cbfce] 2025-04-02 11:13:01 -0400
-->
<para>
Fix <literal>ALTER TABLE ADD COLUMN</literal> to correctly handle
the case of a domain type that has a default
(Jian He, Tom Lane, Tender Wang)
<ulink url="&commit_baseurl;d6dd2a02b">§</ulink>
<ulink url="&commit_baseurl;0941aadcd">§</ulink>
</para>
<para>
If a domain type has a default, adding a column of that type (without
any explicit <literal>DEFAULT</literal>
clause) failed to install the domain's default
value in existing rows, instead leaving the new column null.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [43b8e6c4a] 2025-04-04 20:11:48 -0400
Branch: REL_17_STABLE [5e6e97fbf] 2025-04-04 20:11:48 -0400
Branch: REL_16_STABLE [fb3a77fd9] 2025-04-04 20:11:48 -0400
Branch: REL_15_STABLE [f5069f026] 2025-04-04 20:11:48 -0400
-->
<para>
Repair misbehavior when there are duplicate column names in a
foreign key constraint's <literal>ON DELETE SET DEFAULT</literal>
or <literal>SET NULL</literal> action (Tom Lane)
<ulink url="&commit_baseurl;5e6e97fbf">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [7bbc46213] 2025-03-04 20:07:30 +0100
Branch: REL_17_STABLE [4e026be5f] 2025-03-04 20:07:30 +0100
Branch: REL_16_STABLE [9ea5fe5b6] 2025-03-04 20:07:30 +0100
Branch: REL_15_STABLE [bf1e2d2db] 2025-03-04 20:07:30 +0100
Branch: REL_14_STABLE [931a1c023] 2025-03-04 20:07:30 +0100
Branch: REL_13_STABLE [0f354e080] 2025-03-04 20:07:30 +0100
-->
<para>
Improve the error message for disallowed attempts to alter the
properties of a foreign key constraint (Álvaro Herrera)
<ulink url="&commit_baseurl;4e026be5f">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [2d5350cfb] 2025-04-20 08:28:48 -0700
Branch: REL_17_STABLE [d0a049987] 2025-04-20 08:28:52 -0700
Branch: REL_16_STABLE [5905e9935] 2025-04-20 08:28:52 -0700
Branch: REL_15_STABLE [e0f53e669] 2025-04-20 08:28:52 -0700
Branch: REL_14_STABLE [a61b67cd0] 2025-04-20 08:28:53 -0700
Branch: REL_13_STABLE [d34b671a6] 2025-04-20 08:28:53 -0700
-->
<para>
Avoid error when resetting
the <structfield>relhassubclass</structfield> flag of a temporary
table that's marked <literal>ON COMMIT DELETE ROWS</literal>
(Noah Misch)
<ulink url="&commit_baseurl;d0a049987">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [984410b92] 2025-02-21 17:30:56 +0900
Branch: REL_17_STABLE [2e0f93d7c] 2025-02-21 17:31:01 +0900
Branch: REL_16_STABLE [0af3ae468] 2025-02-21 17:31:02 +0900
Branch: master [665cafe8a] 2025-02-21 20:37:31 +0900
Branch: REL_17_STABLE [310907aaf] 2025-02-21 20:37:36 +0900
Branch: REL_16_STABLE [514d47dfb] 2025-02-21 20:37:38 +0900
-->
<para>
Add missing deparsing of the <literal>INDENT</literal> option
of <function>XMLSERIALIZE()</function> (Jim Jones)
<ulink url="&commit_baseurl;2e0f93d7c">§</ulink>
<ulink url="&commit_baseurl;310907aaf">§</ulink>
</para>
<para>
Previously, views or rules
using <literal>XMLSERIALIZE(... INDENT)</literal> were dumped
without the <literal>INDENT</literal> clause, causing incorrect
results after restore.
</para>
</listitem>
<listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
Branch: master [d47f92224] 2025-04-20 22:12:07 +1200
Branch: REL_17_STABLE [065ce49a1] 2025-04-20 22:12:37 +1200
Branch: REL_16_STABLE [887a23237] 2025-04-20 22:12:59 +1200
-->
<para>
Avoid premature evaluation of the arguments of an aggregate function
that has both <literal>FILTER</literal> and <literal>ORDER
BY</literal> (or <literal>DISTINCT</literal>) options (David Rowley)
<ulink url="&commit_baseurl;065ce49a1">§</ulink>
</para>
<para>
If there is <literal>ORDER BY</literal>
or <literal>DISTINCT</literal>, we consider pre-sorting the
aggregate input values rather than doing the sort within the Agg
plan node. But this is problematic if the aggregate inputs include
expressions that could fail (for example, a division where some of
the input divisors could be zero) and there is
a <literal>FILTER</literal> clause that's meant to prevent such
failures. Pre-sorting would push the expression evaluations to
before the <literal>FILTER</literal> test, allowing the failures to
happen anyway. Avoid this by not pre-sorting if there's
a <literal>FILTER</literal> and the input expressions are anything
more complex than a simple Var or Const.
</para>
</listitem>
<listitem>
<!--
Author: Richard Guo <rguo@postgresql.org>
Branch: master [716a051aa] 2025-03-04 16:11:03 +0900
Branch: REL_17_STABLE [bc5a08af3] 2025-03-04 16:17:19 +0900
-->
<para>
Fix erroneous deductions from column <literal>NOT NULL</literal>
constraints in the presence of outer joins (Richard Guo)
<ulink url="&commit_baseurl;bc5a08af3">§</ulink>
</para>
<para>
In some cases the planner would discard an <literal>IS NOT
NULL</literal> query condition, even though the condition applies
after an outer join and thus is not redundant.
</para>
</listitem>
<listitem>
<!--
Author: Bruce Momjian <bruce@momjian.us>
Branch: master [46b4ba533] 2025-04-07 21:33:42 -0400
Branch: REL_17_STABLE [b8b1e87b7] 2025-04-07 21:33:41 -0400
-->
<para>
Avoid incorrect optimizations based on <literal>IS [NOT]
NULL</literal> tests that are applied to composite values
(Bruce Momjian)
<ulink url="&commit_baseurl;b8b1e87b7">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
Branch: master [b136db07c] 2025-04-02 11:56:29 +1300
Branch: REL_17_STABLE [5672a8399] 2025-04-02 11:57:27 +1300
Branch: REL_16_STABLE [5a0840b76] 2025-04-02 11:57:54 +1300
Branch: REL_15_STABLE [a7f213b11] 2025-04-02 11:58:16 +1300
Branch: REL_14_STABLE [b68f664bb] 2025-04-02 11:58:37 +1300
-->
<para>
Fix planner's failure to identify more than one hashable
ScalarArrayOpExpr subexpression within a top-level expression
(David Geier)
<ulink url="&commit_baseurl;5672a8399">§</ulink>
</para>
<para>
This resulted in unnecessarily-inefficient execution of any
additional subexpressions that could have been processed with a hash
table (that is, <literal>IN</literal>, <literal>NOT IN</literal>,
or <literal>= ANY</literal> clauses with all-constant right-hand
sides).
</para>
</listitem>
<listitem>
<!--
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Branch: master [9ba7bcc89] 2025-02-19 23:53:37 +0100
Branch: REL_17_STABLE [587b6aa3f] 2025-02-19 23:54:18 +0100
-->
<para>
Fix incorrect table size estimate with low fill factor (Tomas Vondra)
<ulink url="&commit_baseurl;587b6aa3f">§</ulink>
</para>
<para>
When the planner estimates the number of rows in a
never-yet-analyzed table, it uses the table's fillfactor setting in
the estimation, but it neglected to clamp the result to at least one
row per page. A low fillfactor could thus result in an unreasonably
small estimate.
</para>
</listitem>
<listitem>
<!--
Author: Andres Freund <andres@anarazel.de>
Branch: master [459e7bf8e] 2025-04-02 14:54:20 -0400
Branch: REL_17_STABLE [78cb2466f] 2025-04-02 14:42:03 -0400
Branch: REL_16_STABLE [980727b84] 2025-04-02 14:46:31 -0400
Branch: REL_15_STABLE [77d90d6d6] 2025-04-02 14:50:03 -0400
Branch: REL_14_STABLE [4934d3875] 2025-04-02 14:50:44 -0400
Branch: REL_13_STABLE [b9ec8125d] 2025-04-02 14:50:49 -0400
-->
<para>
Disable <quote>skip fetch</quote> optimization in bitmap heap scan
(Matthias van de Meent)
<ulink url="&commit_baseurl;78cb2466f">§</ulink>
</para>
<para>
It turns out that this optimization can result in returning dead
tuples when a concurrent vacuum marks a page all-visible.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [0f21db36d] 2025-03-06 11:54:31 -0500
Branch: REL_17_STABLE [9094eb25b] 2025-03-06 11:54:27 -0500
Branch: REL_16_STABLE [d52221cf0] 2025-03-06 11:54:27 -0500
Branch: REL_15_STABLE [2d313375c] 2025-03-06 11:54:27 -0500
Branch: REL_14_STABLE [e2a6934a8] 2025-03-06 11:54:27 -0500
Branch: REL_13_STABLE [308d0d443] 2025-03-06 11:54:27 -0500
Branch: master [e708ffe79] 2025-04-12 12:28:02 -0400
Branch: REL_17_STABLE [8c153fcfa] 2025-04-12 12:27:46 -0400
Branch: REL_16_STABLE [4b65b085a] 2025-04-12 12:27:46 -0400
Branch: REL_15_STABLE [9a8c16aec] 2025-04-12 12:27:46 -0400
Branch: REL_14_STABLE [1b47a112a] 2025-04-12 12:27:46 -0400
Branch: REL_13_STABLE [c7597a1d3] 2025-04-12 12:27:46 -0400
-->
<para>
Fix performance issues in GIN index search startup when there are
many search keys (Tom Lane, Vinod Sridharan)
<ulink url="&commit_baseurl;9094eb25b">§</ulink>
<ulink url="&commit_baseurl;8c153fcfa">§</ulink>
</para>
<para>
An indexable clause with many keys (for example, <literal>jsonbcol
?| array[...]</literal> with tens of thousands of array elements)
took O(N<superscript>2</superscript>) time to start up, and was
uncancelable for that interval too.
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [17ce344f8] 2025-03-11 12:50:35 +0100
Branch: REL_17_STABLE [ade976f8b] 2025-03-11 12:50:35 +0100
Branch: REL_16_STABLE [e0d8f49a3] 2025-03-11 12:50:35 +0100
Branch: REL_15_STABLE [5d8c58800] 2025-03-11 12:50:35 +0100
Branch: REL_14_STABLE [5144e1f8f] 2025-03-11 12:50:35 +0100
Branch: REL_13_STABLE [f5b4a0b49] 2025-03-11 12:50:35 +0100
-->
<para>
Detect missing support procedures in a BRIN index operator class,
and report an error instead of crashing (Álvaro Herrera)
<ulink url="&commit_baseurl;ade976f8b">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [af717317a] 2025-03-12 20:53:09 +0200
Branch: REL_17_STABLE [e731e9d5e] 2025-03-12 20:53:16 +0200
Branch: REL_16_STABLE [004dbbd72] 2025-03-12 20:53:19 +0200
Branch: REL_15_STABLE [d4d34c08c] 2025-03-12 20:53:23 +0200
Branch: REL_14_STABLE [d2fb076be] 2025-03-12 20:53:25 +0200
-->
<para>
Respond to interrupts (such as query cancel) while waiting for
asynchronous subplans of an Append plan node (Heikki Linnakangas)
<ulink url="&commit_baseurl;e731e9d5e">§</ulink>
</para>
<para>
Previously, nothing would happen until one of the subplans becomes
ready.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [039549d70] 2025-04-08 07:57:19 +0900
Branch: REL_17_STABLE [5cbbe70a9] 2025-04-08 07:58:47 +0900
Branch: REL_16_STABLE [e2a82cd23] 2025-04-08 07:58:50 +0900
-->
<para>
Report the I/O statistics of active WAL senders more frequently
(Bertrand Drouvot)
<ulink url="&commit_baseurl;5cbbe70a9">§</ulink>
</para>
<para>
Previously, the <structname>pg_stat_io</structname> view failed to
accumulate I/O performed by a WAL sender until that process exited.
Now such I/O will be reported after at most one second's delay.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [2e5779083] 2025-04-11 10:00:21 +0900
Branch: REL_17_STABLE [3339847cc] 2025-04-11 10:02:15 +0900
Branch: REL_16_STABLE [c922ae2c4] 2025-04-11 10:02:17 +0900
Branch: REL_15_STABLE [ec59500a1] 2025-04-11 10:02:18 +0900
Branch: REL_14_STABLE [873aff945] 2025-04-11 10:02:20 +0900
Branch: REL_13_STABLE [e2f42f812] 2025-04-11 10:02:21 +0900
-->
<para>
Fix race condition in handling
of <varname>synchronous_standby_names</varname> immediately after
startup (Melnikov Maksim, Michael Paquier)
<ulink url="&commit_baseurl;3339847cc">§</ulink>
</para>
<para>
For a short period after system startup, backends might fail to wait
for synchronous commit even
though <varname>synchronous_standby_names</varname> is enabled.
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [75da2bece] 2025-03-13 15:43:34 +1300
Branch: REL_17_STABLE [e27346807] 2025-03-13 15:48:02 +1300
-->
<para>
Cope with possible intra-query changes
of <varname>io_combine_limit</varname> (Thomas Munro)
<ulink url="&commit_baseurl;e27346807">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Richard Guo <rguo@postgresql.org>
Branch: master [7c82b4f71] 2025-03-26 17:46:51 +0900
Branch: REL_17_STABLE [34fbfe1f5] 2025-03-26 17:49:57 +0900
Branch: REL_16_STABLE [de1484736] 2025-03-26 17:51:44 +0900
-->
<para>
Avoid infinite loop if <varname>scram_iterations</varname> is set to
<systemitem>INT_MAX</systemitem> (Kevin K Biju)
<ulink url="&commit_baseurl;34fbfe1f5">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [e33f2335a] 2025-04-05 12:13:35 -0400
Branch: REL_17_STABLE [717e8a1e5] 2025-04-05 12:13:35 -0400
Branch: REL_16_STABLE [ca54f9b70] 2025-04-05 12:13:35 -0400
-->
<para>
Avoid possible crashes due to double transformation
of <function>json_array()</function>'s subquery (Tom Lane)
<ulink url="&commit_baseurl;717e8a1e5">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [00d61a08c] 2025-03-01 14:22:56 -0500
Branch: REL_17_STABLE [d69c78108] 2025-03-01 14:22:56 -0500
Branch: REL_16_STABLE [5c64ece8a] 2025-03-01 14:22:56 -0500
Branch: REL_15_STABLE [c7303f01c] 2025-03-01 14:22:56 -0500
Branch: REL_14_STABLE [76fbb38ef] 2025-03-01 14:22:56 -0500
Branch: REL_13_STABLE [ebe919e95] 2025-03-01 14:22:56 -0500
-->
<para>
Fix <function>pg_strtof()</function> to not crash with null endptr
(Alexander Lakhin, Tom Lane)
<ulink url="&commit_baseurl;d69c78108">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Branch: master [058b5152f] 2025-03-27 22:57:34 +0100
Branch: REL_17_STABLE [8afec4ef6] 2025-03-27 22:57:34 +0100
Branch: REL_16_STABLE [8d48e84c5] 2025-03-27 22:57:34 +0100
-->
<para>
Fix crash after out-of-memory in certain GUC assignments (Daniel
Gustafsson)
<ulink url="&commit_baseurl;8afec4ef6">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [b464e51ab] 2025-02-18 21:13:54 -0500
Branch: REL_17_STABLE [7edd2cbc5] 2025-02-18 21:23:59 -0500
Branch: REL_16_STABLE [c0c364fa1] 2025-02-18 21:23:59 -0500
Branch: REL_15_STABLE [9c46d902b] 2025-02-18 21:23:59 -0500
Branch: REL_14_STABLE [8388cae55] 2025-02-18 21:24:12 -0500
Branch: REL_13_STABLE [197427fb3] 2025-02-18 21:24:12 -0500
-->
<para>
Avoid crash when a Snowball stemmer encounters an out-of-memory
condition (Maksim Korotkov)
<ulink url="&commit_baseurl;7edd2cbc5">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Richard Guo <rguo@postgresql.org>
Branch: master [c39392eba] 2025-02-19 10:02:32 +0900
Branch: REL_17_STABLE [727bc6ac3] 2025-02-19 10:04:44 +0900
-->
<para>
Fix over-enthusiastic freeing of SpecialJoinInfo structs during
planning (Richard Guo)
<ulink url="&commit_baseurl;727bc6ac3">§</ulink>
</para>
<para>
This led to crashes during planning if partitionwise joining is
enabled.
</para>
</listitem>
<listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
Branch: master [fd09c1316] 2025-04-03 10:30:00 -0700
Branch: REL_17_STABLE [a4309e85f] 2025-04-03 10:30:02 -0700
Branch: REL_16_STABLE [87e8599e0] 2025-04-03 10:30:05 -0700
-->
<para>
Disallow copying of invalidated replication slots (Shlok Kyal)
<ulink url="&commit_baseurl;a4309e85f">§</ulink>
</para>
<para>
This prevents trouble when the invalid slot points to WAL that's
already been removed.
</para>
</listitem>
<listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
Branch: master [48796a98d] 2025-02-24 14:03:04 -0800
Branch: REL_17_STABLE [174952ece] 2025-02-24 14:03:07 -0800
Branch: REL_16_STABLE [cc628f661] 2025-02-24 14:03:10 -0800
-->
<para>
Disallow restoring logical replication slots on standby servers that
are not in hot-standby mode (Masahiko Sawada)
<ulink url="&commit_baseurl;174952ece">§</ulink>
</para>
<para>
This prevents a scenario where the slot could remain valid after
promotion even if <varname>wal_level</varname> is too low.
</para>
</listitem>
<listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
Branch: master [aaf9e95e8] 2025-04-28 11:35:54 +0530
Branch: REL_17_STABLE [36148b22e] 2025-04-28 11:22:07 +0530
Branch: REL_16_STABLE [21a7caeeb] 2025-04-28 11:09:27 +0530
Branch: REL_15_STABLE [f6429bd7d] 2025-04-28 10:56:24 +0530
Branch: REL_14_STABLE [1f63b3626] 2025-04-28 10:34:45 +0530
Branch: REL_13_STABLE [d65485b02] 2025-04-28 11:55:00 +0530
-->
<para>
Prevent over-advancement of catalog xmin in <quote>fast
forward</quote> mode of logical decoding (Zhijie Hou)
<ulink url="&commit_baseurl;36148b22e">§</ulink>
</para>
<para>
This mistake could allow deleted catalog entries to be vacuumed away
even though they were still potentially needed by the WAL-reading
process.
</para>
</listitem>
<listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
Branch: master [4909b38af] 2025-04-10 13:14:40 +0530
Branch: REL_17_STABLE [cadaf0ac4] 2025-04-10 12:57:10 +0530
Branch: REL_16_STABLE [9a2f8b4f0] 2025-04-10 12:44:11 +0530
Branch: REL_15_STABLE [9f21be08e] 2025-04-10 12:31:14 +0530
Branch: REL_14_STABLE [0434033e8] 2025-04-10 12:22:30 +0530
Branch: REL_13_STABLE [247ee9415] 2025-04-24 10:31:40 +0530
Branch: master [50b8ad30f] 2025-04-25 12:46:02 +0530
Branch: REL_17_STABLE [d96206f25] 2025-04-25 12:32:00 +0530
Branch: REL_16_STABLE [9987c9466] 2025-04-25 12:17:40 +0530
Branch: REL_15_STABLE [90bc4523f] 2025-04-25 12:05:52 +0530
Branch: REL_14_STABLE [bb1bc9fa9] 2025-04-25 11:53:27 +0530
Branch: REL_13_STABLE [4164d6976] 2025-04-25 11:45:40 +0530
-->
<para>
Avoid data loss when DDL operations that don't take a strong lock
affect tables that are being logically replicated (Shlok Kyal,
Hayato Kuroda)
<ulink url="&commit_baseurl;cadaf0ac4">§</ulink>
<ulink url="&commit_baseurl;d96206f25">§</ulink>
</para>
<para>
The catalog changes caused by the DDL command were not reflected
into WAL-decoding processes, allowing them to decode subsequent
changes using stale catalog data, probably resulting in data
corruption.
</para>
</listitem>
<listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
Branch: master [0e091ce40] 2025-04-23 11:08:24 +0530
Branch: REL_17_STABLE [05676d87e] 2025-04-23 10:52:36 +0530
Branch: REL_16_STABLE [0de091a4b] 2025-04-23 10:35:54 +0530
-->
<para>
Prevent incorrect reset of replication origin when an apply worker
encounters an error but the error is caught and does not result in
worker exit (Hayato Kuroda)
<ulink url="&commit_baseurl;05676d87e">§</ulink>
</para>
<para>
This mistake could allow duplicate data to be applied.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [9ff68679b] 2025-02-19 16:35:15 -0500
Branch: REL_17_STABLE [788baa9a2] 2025-02-19 16:35:15 -0500
-->
<para>
Fix crash in logical replication if the subscriber's partitioned
table has a BRIN index (Tom Lane)
<ulink url="&commit_baseurl;788baa9a2">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [236750317] 2025-03-10 17:07:38 +0200
Branch: REL_17_STABLE [c1dd3a944] 2025-03-10 17:07:59 +0200
Branch: REL_16_STABLE [8171d2dae] 2025-03-10 17:08:02 +0200
Branch: REL_15_STABLE [50c589992] 2025-03-10 17:08:05 +0200
Branch: REL_14_STABLE [2ef048855] 2025-03-10 17:08:07 +0200
Branch: REL_13_STABLE [9b3914f18] 2025-03-10 17:08:10 +0200
Branch: master [f7c566a1a] 2025-03-10 18:58:10 +0200
Branch: REL_17_STABLE [f1ef111a0] 2025-03-10 19:00:08 +0200
Branch: REL_16_STABLE [324e0b656] 2025-03-10 19:01:51 +0200
Branch: REL_15_STABLE [d765226cb] 2025-03-10 19:01:58 +0200
Branch: REL_14_STABLE [136e68b46] 2025-03-10 19:02:02 +0200
Branch: REL_13_STABLE [6c1e79589] 2025-03-10 19:02:08 +0200
-->
<para>
Avoid duplicate snapshot creation in logical replication index
lookups (Heikki Linnakangas)
<ulink url="&commit_baseurl;c1dd3a944">§</ulink>
<ulink url="&commit_baseurl;f1ef111a0">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
Branch: master [b4e0d0c53] 2025-02-21 14:34:40 +0530
Branch: REL_17_STABLE [0ae1245e0] 2025-02-21 14:21:29 +0530
Branch: REL_16_STABLE [1c2a2354c] 2025-02-21 14:08:27 +0530
-->
<para>
Improve detection of mixed-origin subscriptions
(Hou Zhijie, Shlok Kyal)
<ulink url="&commit_baseurl;0ae1245e0">§</ulink>
</para>
<para>
Subscription creation gives a warning if a subscribed-to table is
also being followed through other publications, since that could
cause duplicate data to be received. This change improves that
logic to also detect cases where a partition parent or child table
is the one being followed through another publication.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [71f17823b] 2025-02-20 10:42:20 +0900
Branch: REL_17_STABLE [29cce279b] 2025-02-20 10:43:35 +0900
Branch: REL_16_STABLE [b4969a296] 2025-02-20 10:43:38 +0900
Branch: REL_15_STABLE [62bed7bb0] 2025-02-20 10:43:40 +0900
-->
<para>
Fix wrong checkpoint details in error message about incorrect
recovery timeline choice (David Steele)
<ulink url="&commit_baseurl;29cce279b">§</ulink>
</para>
<para>
If the requested recovery timeline is not reachable, the reported
checkpoint and timeline should be the values read from the
backup_label, if there is one. This message previously reported
values from the control file, which is correct when recovering from
the control file without a backup_label, but not when there is a
backup_label.
</para>
</listitem>
<listitem>
<!--
Author: Andres Freund <andres@anarazel.de>
Branch: master [499faf906] 2025-03-18 14:04:44 -0400
Branch: REL_17_STABLE [ee578921b] 2025-03-18 13:44:10 -0400
-->
<para>
Fix order of operations in <function>smgropen()</function>
(Andres Freund)
<ulink url="&commit_baseurl;ee578921b">§</ulink>
</para>
<para>
Ensure that the SMgrRelation object is fully initialized before
calling the smgr_open callback, so that it can be cleaned up
properly if the callback fails.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [1f7878c33] 2025-04-23 13:53:29 +0900
Branch: REL_17_STABLE [4b6331e0f] 2025-04-23 13:54:53 +0900
Branch: REL_16_STABLE [e9ab8677b] 2025-04-23 13:54:56 +0900
Branch: REL_15_STABLE [c1201ffcf] 2025-04-23 13:54:57 +0900
-->
<para>
Remove incorrect assertion
in <function>pgstat_report_stat()</function> (Michael Paquier)
<ulink url="&commit_baseurl;4b6331e0f">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [7afca7ede] 2025-04-04 13:49:00 +0300
Branch: REL_17_STABLE [6526d0794] 2025-04-04 13:49:21 +0300
Branch: REL_16_STABLE [419321398] 2025-04-04 13:49:51 +0300
Branch: REL_15_STABLE [3c0fe75c4] 2025-04-04 13:50:00 +0300
Branch: REL_14_STABLE [a749c6f18] 2025-04-04 13:50:12 +0300
Branch: REL_13_STABLE [b92482dc3] 2025-04-04 13:50:52 +0300
-->
<para>
Fix overly-strict assertion
in <function>gistFindCorrectParent()</function> (Heikki Linnakangas)
<ulink url="&commit_baseurl;6526d0794">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
Branch: master [f4290f20d] 2025-03-18 16:37:02 -0700
Branch: REL_17_STABLE [a38dce3c4] 2025-03-18 16:36:59 -0700
-->
<para>
Avoid assertion failure in parallel vacuum
when <varname>maintenance_work_mem</varname> has a very small value
(Masahiko Sawada)
<ulink url="&commit_baseurl;a38dce3c4">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [2817525f0] 2025-03-23 20:41:16 +0200
Branch: REL_17_STABLE [302ce5bd9] 2025-03-23 20:41:52 +0200
Branch: REL_16_STABLE [2f33de3cd] 2025-03-23 20:41:54 +0200
Branch: REL_15_STABLE [b30c77a0e] 2025-03-23 20:41:57 +0200
Branch: REL_14_STABLE [66235baab] 2025-03-23 20:41:59 +0200
-->
<para>
Fix rare assertion failure in standby servers when the primary is
restarted (Heikki Linnakangas)
<ulink url="&commit_baseurl;302ce5bd9">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [7fe312f60] 2025-03-21 11:30:42 -0400
Branch: REL_17_STABLE [1353b1161] 2025-03-21 11:30:42 -0400
Branch: REL_16_STABLE [a28c1fb61] 2025-03-21 11:30:42 -0400
Branch: REL_15_STABLE [5e56efa7c] 2025-03-21 11:30:42 -0400
Branch: REL_14_STABLE [c196c610b] 2025-03-21 11:30:42 -0400
Branch: REL_13_STABLE [0f60e1fba] 2025-03-21 11:30:42 -0400
-->
<para>
In PL/pgSQL, avoid <quote>unexpected plan node type</quote> error
when a scrollable cursor is defined on a
simple <literal>SELECT <replaceable>expression</replaceable></literal>
query (Andrei Lepikhov)
<ulink url="&commit_baseurl;1353b1161">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [1fc340362] 2025-04-16 13:31:59 -0400
Branch: REL_17_STABLE [3424c1075] 2025-04-16 13:31:44 -0400
Branch: REL_16_STABLE [a25f21d99] 2025-04-16 13:31:44 -0400
Branch: REL_15_STABLE [7144cd538] 2025-04-16 13:31:44 -0400
Branch: REL_14_STABLE [148cc0105] 2025-04-16 13:31:44 -0400
Branch: REL_13_STABLE [6a3e57865] 2025-04-16 13:31:44 -0400
-->
<para>
Don't try to drop individual index partitions
in <application>pg_dump</application>'s <option>--clean</option>
mode (Jian He)
<ulink url="&commit_baseurl;3424c1075">§</ulink>
</para>
<para>
The server rejects such <command>DROP</command> commands. That has
no real consequences, since the partitions will go away anyway in
the subsequent <command>DROP</command>s of either their parent
tables or their partitioned index. However, the error reported for
the attempted drop causes problems when restoring
in <option>--single-transaction</option> mode.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [29d75b25b] 2025-02-21 13:37:15 -0500
Branch: REL_17_STABLE [16eff4261] 2025-02-21 13:37:15 -0500
Branch: REL_16_STABLE [d850a6600] 2025-02-21 13:37:16 -0500
Branch: REL_15_STABLE [6df3be415] 2025-02-21 13:37:16 -0500
Branch: REL_14_STABLE [ce1475acd] 2025-02-21 13:37:16 -0500
Branch: REL_13_STABLE [5302ff95c] 2025-02-21 13:37:12 -0500
-->
<para>
In <application>pg_dumpall</application>, avoid emitting invalid
role <command>GRANT</command> commands
if <structname>pg_auth_members</structname> contains invalid role
OIDs (Tom Lane)
<ulink url="&commit_baseurl;16eff4261">§</ulink>
</para>
<para>
Instead, print a warning and skip the entry. This copes better with
catalog corruption that has been seen to occur in back branches as a
result of race conditions between <command>GRANT</command>
and <command>DROP ROLE</command>.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [2a083ab80] 2025-02-28 10:15:29 +0900
Branch: REL_17_STABLE [ee78823ff] 2025-02-28 10:15:32 +0900
Branch: REL_16_STABLE [9ca2145b0] 2025-02-28 10:15:34 +0900
Author: Jeff Davis <jdavis@postgresql.org>
Branch: master [945126234] 2025-04-03 11:04:37 -0700
Branch: REL_17_STABLE [0851b6573] 2025-04-06 09:13:43 -0700
Branch: REL_16_STABLE [57467ec7b] 2025-04-06 09:14:42 -0700
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [48e4ae9a0] 2025-02-27 14:05:51 +0900
Branch: REL_17_STABLE [f903d4da9] 2025-02-27 14:05:55 +0900
Branch: REL_16_STABLE [816149dc6] 2025-02-27 14:05:57 +0900
Branch: REL_15_STABLE [ec741d480] 2025-02-27 14:05:58 +0900
Branch: REL_14_STABLE [35a591a04] 2025-02-27 14:06:00 +0900
-->
<para>
In <application>pg_amcheck</application>
and <application>pg_upgrade</application>, use the correct function
to free allocations made by <application>libpq</application>
(Michael Paquier, Ranier Vilela)
<ulink url="&commit_baseurl;ee78823ff">§</ulink>
<ulink url="&commit_baseurl;0851b6573">§</ulink>
<ulink url="&commit_baseurl;f903d4da9">§</ulink>
</para>
<para>
These oversights could result in crashes in certain Windows build
configurations, such as a debug build
of <application>libpq</application> used by a non-debug build of the
calling application.
</para>
</listitem>
<listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
Branch: master [682c5be25] 2025-03-16 13:29:15 +0200
Branch: REL_17_STABLE [09ef2f8df] 2025-03-16 13:29:20 +0200
-->
<para>
Fix <application>reindexdb</application>'s scheduling of parallel
reindex operations (Alexander Korotkov)
<ulink url="&commit_baseurl;09ef2f8df">§</ulink>
</para>
<para>
The original coding failed to achieve the expected amount of
parallelism.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [d05996340] 2025-04-19 16:37:42 -0400
Branch: REL_17_STABLE [ecb8e5641] 2025-04-19 16:37:42 -0400
Branch: REL_16_STABLE [2d33cf7b8] 2025-04-19 16:37:42 -0400
Branch: REL_15_STABLE [90a3fd811] 2025-04-19 16:37:42 -0400
Branch: REL_14_STABLE [3c2ea65bd] 2025-04-19 16:37:43 -0400
Branch: REL_13_STABLE [3f9132ed2] 2025-04-19 16:37:43 -0400
-->
<para>
Avoid crashing with corrupt input data
in <filename>contrib/pageinspect</filename>'s
<function>heap_page_items()</function> (Dmitry Kovalenko)
<ulink url="&commit_baseurl;ecb8e5641">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [4623d7144] 2025-03-27 13:20:23 -0400
Branch: REL_17_STABLE [51d038da8] 2025-03-27 13:20:23 -0400
Branch: REL_16_STABLE [41ed749e4] 2025-03-27 13:20:23 -0400
Branch: REL_15_STABLE [0e86bad38] 2025-03-27 13:20:23 -0400
Branch: REL_14_STABLE [5ff827389] 2025-03-27 13:20:23 -0400
Branch: REL_13_STABLE [db8238da4] 2025-03-27 13:20:23 -0400
-->
<para>
Prevent assertion failure
in <filename>contrib/pg_freespacemap</filename>'s
<function>pg_freespacemap()</function> (Tender Wang)
<ulink url="&commit_baseurl;51d038da8">§</ulink>
</para>
<para>
Applying <function>pg_freespacemap()</function> to a relation
lacking storage (such as a view) caused an assertion failure,
although there was no ill effect in non-assert builds.
Add an error check to reject that case.
</para>
</listitem>
<listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
Branch: master [023fb5127] 2025-03-25 05:49:47 +0200
Branch: REL_17_STABLE [729fe699e] 2025-03-25 05:50:39 +0200
-->
<para>
In <filename>contrib/postgres_fdw</filename>, avoid pulling up
restriction conditions from subqueries (Alexander Pyhalov)
<ulink url="&commit_baseurl;729fe699e">§</ulink>
</para>
<para>
This fix prevents rare cases of <quote>unexpected expression in
subquery output</quote> errors.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [cb36f8ec2] 2025-03-25 20:03:56 -0400
Branch: REL_17_STABLE [f186f90e5] 2025-03-25 20:03:56 -0400
-->
<para>
Fix build failure when an old version
of <filename>libpq_fe.h</filename> is present in system include
directories (Tom Lane)
<ulink url="&commit_baseurl;f186f90e5">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [6da2ba1d8] 2025-04-01 16:50:09 -0400
Branch: REL_17_STABLE [915e88968] 2025-04-01 16:49:51 -0400
Branch: REL_16_STABLE [a39eb9c77] 2025-04-01 16:49:51 -0400
Branch: REL_15_STABLE [0de9560ba] 2025-04-01 16:49:51 -0400
Branch: REL_14_STABLE [71790aef1] 2025-04-01 16:49:51 -0400
Branch: REL_13_STABLE [e4440a73c] 2025-04-01 16:49:51 -0400
-->
<para>
Fix build failure on macOS 15.4 (Tom Lane, Peter Eisentraut)
<ulink url="&commit_baseurl;915e88968">§</ulink>
</para>
<para>
This macOS update broke our configuration probe
for <function>strchrnul()</function>.
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [2a8a00674] 2025-02-15 13:14:03 +1300
Branch: master [2509b857c] 2025-02-18 14:44:59 +1300
Branch: REL_17_STABLE [57dca6faa] 2025-02-21 15:16:37 +1300
-->
<para>
Fix valgrind labeling of per-buffer data of read streams
(Thomas Munro)
<ulink url="&commit_baseurl;57dca6faa">§</ulink>
</para>
<para>
This affects no core code in released versions
of <productname>PostgreSQL</productname>, but an extension using the
per-buffer data feature might have encountered spurious failures
when being tested under valgrind.
</para>
</listitem>
<listitem>
<!--
Author: John Naylor <john.naylor@postgresql.org>
Branch: master [0600d276d] 2025-02-24 18:03:29 +0700
Branch: REL_17_STABLE [fde7c0164] 2025-02-24 18:03:48 +0700
-->
<para>
Avoid valgrind complaints about string hashing code (John Naylor)
<ulink url="&commit_baseurl;fde7c0164">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [368c3fbf9] 2025-04-30 11:13:49 -0400
Branch: REL_17_STABLE [5d5970b9f] 2025-04-30 11:14:01 -0400
Branch: REL_16_STABLE [e076120d9] 2025-04-30 11:14:06 -0400
Branch: REL_15_STABLE [a144cf145] 2025-04-30 11:14:10 -0400
Branch: REL_14_STABLE [fa4244a43] 2025-04-30 11:14:15 -0400
Branch: REL_13_STABLE [9da548df3] 2025-04-30 11:14:19 -0400
-->
<para>
Update time zone data files to <application>tzdata</application>
release 2025b for DST law changes in Chile, plus historical
corrections for Iran (Tom Lane)
<ulink url="&commit_baseurl;5d5970b9f">§</ulink>
</para>
<para>
There is a new time zone America/Coyhaique for Chile's Aysén Region,
to account for it changing to UTC-03 year-round and thus diverging
from America/Santiago.
</para>
</listitem>
</itemizedlist>
</sect2>
</sect1>
<sect1 id="release-17-4">
<title>Release 17.4</title>
<formalpara>
<title>Release date:</title>
<para>2025-02-20</para>
</formalpara>
<para>
This release contains a few fixes from 17.3.
For information about new features in major release 17, see
<xref linkend="release-17"/>.
</para>
<sect2 id="release-17-4-migration">
<title>Migration to Version 17.4</title>
<para>
A dump/restore is not required for those running 17.X.
</para>
<para>
However, if you are upgrading from a version earlier than 17.1,
see <xref linkend="release-17-1"/>.
</para>
</sect2>
<sect2 id="release-17-4-changes">
<title>Changes</title>
<itemizedlist>
<listitem>
<!--
Author: Andres Freund <andres@anarazel.de>
Branch: master [efdadeb22] 2025-02-14 18:09:19 -0500
Branch: REL_17_STABLE [a92db3d02] 2025-02-14 18:09:21 -0500
Branch: REL_16_STABLE [111f4dd27] 2025-02-14 18:09:23 -0500
Branch: REL_15_STABLE [22ffbbf24] 2025-02-14 18:09:24 -0500
Branch: REL_14_STABLE [985908df1] 2025-02-14 18:09:25 -0500
Branch: REL_13_STABLE [1f7a05324] 2025-02-14 18:09:27 -0500
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [9f45e6a91] 2025-02-15 16:20:21 -0500
Branch: REL_17_STABLE [3abe6e04c] 2025-02-15 16:20:21 -0500
Branch: REL_16_STABLE [991a60a9f] 2025-02-15 16:20:21 -0500
Branch: REL_15_STABLE [e782a63cc] 2025-02-15 16:20:21 -0500
Branch: REL_14_STABLE [c08309584] 2025-02-15 16:20:21 -0500
Branch: REL_13_STABLE [d6d29b213] 2025-02-15 16:20:21 -0500
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [a7f95859e] 2025-02-16 12:46:35 -0500
Branch: REL_17_STABLE [3977bd298] 2025-02-16 12:46:35 -0500
Branch: REL_16_STABLE [644b7d686] 2025-02-16 12:46:35 -0500
Branch: REL_15_STABLE [2226a2e26] 2025-02-16 12:46:35 -0500
Branch: REL_14_STABLE [f864a4cdf] 2025-02-16 12:46:35 -0500
Branch: REL_13_STABLE [9f052613e] 2025-02-16 12:46:35 -0500
-->
<para>
Improve behavior of <application>libpq</application>'s quoting
functions (Andres Freund, Tom Lane)
<ulink url="&commit_baseurl;a92db3d02">§</ulink>
<ulink url="&commit_baseurl;3abe6e04c">§</ulink>
<ulink url="&commit_baseurl;3977bd298">§</ulink>
</para>
<para>
The changes made for CVE-2025-1094 had one serious oversight:
<function>PQescapeLiteral()</function>
and <function>PQescapeIdentifier()</function> failed to honor their
string length parameter, instead always reading to the input
string's trailing null. This resulted in including unwanted text in
the output, if the caller intended to truncate the string via the
length parameter. With very bad luck it could cause a crash due to
reading off the end of memory.
</para>
<para>
In addition, modify all these quoting functions so that when invalid
encoding is detected, an invalid sequence is substituted for just
the first byte of the presumed character, not all of it. This
reduces the risk of problems if a calling application performs
additional processing on the quoted string.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [5b94e2753] 2025-02-12 17:11:43 +0900
Branch: REL_17_STABLE [ff6d9cfcb] 2025-02-12 17:11:47 +0900
-->
<para>
Fix small memory leak
in <application>pg_createsubscriber</application> (Ranier Vilela)
<ulink url="&commit_baseurl;ff6d9cfcb">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Andres Freund <andres@anarazel.de>
Branch: master [b64d83115] 2025-02-12 08:15:53 -0500
Branch: REL_17_STABLE [c9a1d2135] 2025-02-12 08:15:53 -0500
Branch: REL_16_STABLE [01cdb98e4] 2025-02-12 08:15:54 -0500
-->
<para>
Fix meson build system to correctly detect availability of
the <filename>bsd_auth.h</filename> system header
(Nazir Bilal Yavuz)
<ulink url="&commit_baseurl;c9a1d2135">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect2>
</sect1>
<sect1 id="release-17-3">
<title>Release 17.3</title>
<formalpara>
<title>Release date:</title>
<para>2025-02-13</para>
</formalpara>
<para>
This release contains a variety of fixes from 17.2.
For information about new features in major release 17, see
<xref linkend="release-17"/>.
</para>
<sect2 id="release-17-3-migration">
<title>Migration to Version 17.3</title>
<para>
A dump/restore is not required for those running 17.X.
</para>
<para>
However, if you are upgrading from a version earlier than 17.1,
see <xref linkend="release-17-1"/>.
</para>
</sect2>
<sect2 id="release-17-3-changes">
<title>Changes</title>
<itemizedlist>
<listitem>
<!--
Author: Andres Freund <andres@anarazel.de>
Branch: master [5dc1e42b4] 2025-02-10 10:03:37 -0500
Branch: REL_17_STABLE [43a77239d] 2025-02-10 10:03:38 -0500
Branch: REL_16_STABLE [92e4170f4] 2025-02-10 10:03:39 -0500
Branch: REL_15_STABLE [370c94d4c] 2025-02-10 10:03:39 -0500
Branch: REL_14_STABLE [e0ef3d776] 2025-02-10 10:03:40 -0500
Branch: REL_13_STABLE [c906bfe1b] 2025-02-10 10:03:40 -0500
Branch: master [4dc289635] 2025-02-10 10:03:37 -0500
Branch: REL_17_STABLE [7d43ca6fe] 2025-02-10 10:03:38 -0500
Branch: REL_16_STABLE [6e05b195d] 2025-02-10 10:03:39 -0500
Branch: REL_15_STABLE [703b3fd5d] 2025-02-10 10:03:39 -0500
Branch: REL_14_STABLE [5bc33cbea] 2025-02-10 10:03:40 -0500
Branch: REL_13_STABLE [db3eb0e82] 2025-02-10 10:03:40 -0500
Branch: master [3e98c8ce5] 2025-02-10 10:03:37 -0500
Branch: REL_17_STABLE [61ad93cdd] 2025-02-10 10:03:38 -0500
Branch: REL_16_STABLE [56aa2dcdd] 2025-02-10 10:03:39 -0500
Branch: REL_15_STABLE [b1756da75] 2025-02-10 10:03:39 -0500
Branch: REL_14_STABLE [2ae54ae17] 2025-02-10 10:03:40 -0500
Branch: REL_13_STABLE [5df4e1632] 2025-02-10 10:03:40 -0500
Branch: master [ac00ff1c9] 2025-02-10 10:03:37 -0500
Branch: REL_17_STABLE [02d4d87ac] 2025-02-10 10:03:38 -0500
Branch: REL_16_STABLE [01784793f] 2025-02-10 10:03:39 -0500
Branch: REL_15_STABLE [de4b92f33] 2025-02-10 10:03:39 -0500
Branch: REL_14_STABLE [46ddf98df] 2025-02-10 10:03:40 -0500
Branch: REL_13_STABLE [4ea3f5ef3] 2025-02-10 10:03:40 -0500
Branch: master [979205e47] 2025-02-10 12:12:14 -0500
Branch: REL_17_STABLE [05abb0f83] 2025-02-10 12:12:53 -0500
Branch: REL_16_STABLE [41343f840] 2025-02-10 12:12:56 -0500
Branch: REL_15_STABLE [a085fa731] 2025-02-10 12:12:58 -0500
Branch: REL_14_STABLE [4a6825c76] 2025-02-10 12:12:59 -0500
Branch: REL_13_STABLE [7beb2af5e] 2025-02-10 12:13:02 -0500
Branch: REL_13_STABLE [00f1a1f66] 2025-02-10 10:03:40 -0500
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [5bf12323b] 2025-02-10 16:30:03 -0500
Branch: REL_17_STABLE [85c1fcc65] 2025-02-10 16:30:31 -0500
Branch: REL_16_STABLE [0075a5c6c] 2025-02-10 16:30:37 -0500
Branch: REL_15_STABLE [9862de917] 2025-02-10 16:30:54 -0500
Branch: REL_14_STABLE [e1f1b030d] 2025-02-10 16:31:01 -0500
Branch: REL_13_STABLE [f9fceef6e] 2025-02-10 16:31:09 -0500
-->
<para>
Harden <function>PQescapeString</function> and allied functions
against invalidly-encoded input strings (Andres Freund, Noah Misch)
<ulink url="&commit_baseurl;43a77239d">§</ulink>
<ulink url="&commit_baseurl;7d43ca6fe">§</ulink>
<ulink url="&commit_baseurl;61ad93cdd">§</ulink>
<ulink url="&commit_baseurl;02d4d87ac">§</ulink>
<ulink url="&commit_baseurl;05abb0f83">§</ulink>
<ulink url="&commit_baseurl;85c1fcc65">§</ulink>
</para>
<para>
Data-quoting functions supplied by <application>libpq</application>
now fully check the encoding validity of their input. If invalid
characters are detected, they report an error if possible. For the
ones that lack an error return convention, the output string is
adjusted to ensure that the server will report invalid encoding and
no intervening processing will be fooled by bytes that might happen
to match single quote, backslash, etc.
</para>
<para>
The purpose of this change is to guard against SQL-injection attacks
that are possible if one of these functions is used to quote crafted
input. There is no hazard when the resulting string is sent
directly to a <productname>PostgreSQL</productname> server (which
would check its encoding anyway), but there is a risk when it is
passed through <application>psql</application> or other client-side
code. Historically such code has not carefully vetted encoding, and
in many cases it's not clear what it should do if it did detect such
a problem.
</para>
<para>
This fix is effective only if the data-quoting function, the server,
and any intermediate processing agree on the character encoding
that's being used. Applications that insert untrusted input into
SQL commands should take special care to ensure that that's true.
</para>
<para>
Applications and drivers that quote untrusted input without using
these <application>libpq</application> functions may be at risk of
similar problems. They should first confirm the data is valid in
the encoding expected by the server.
</para>
<para>
The <productname>PostgreSQL</productname> Project thanks
Stephen Fewer for reporting this problem.
(CVE-2025-1094)
</para>
</listitem>
<listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
Branch: master [a0ff56e2d] 2024-12-12 15:52:04 -0600
Branch: REL_17_STABLE [d09fbf645] 2024-12-12 15:52:04 -0600
-->
<para>
Restore auto-truncation of database and user names appearing in
connection requests (Nathan Bossart)
<ulink url="&commit_baseurl;d09fbf645">§</ulink>
</para>
<para>
This reverts a v17 change that proved to cause trouble for some
users. Over-length names should be truncated in an encoding-aware
fashion, but for now just return to the former behavior of blind
truncation at <literal>NAMEDATALEN-1</literal> bytes.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [34486b609] 2024-12-28 16:08:50 -0500
Branch: REL_17_STABLE [15b4c46c3] 2024-12-28 16:08:50 -0500
Branch: REL_16_STABLE [41a252c2c] 2024-12-28 16:08:50 -0500
Branch: REL_15_STABLE [3d1ecc92a] 2024-12-28 16:08:50 -0500
Branch: REL_14_STABLE [c58b0c43d] 2024-12-28 16:08:50 -0500
Branch: REL_13_STABLE [70d067cec] 2024-12-28 16:08:50 -0500
-->
<para>
Exclude parallel workers from connection privilege checks and limits
(Tom Lane)
<ulink url="&commit_baseurl;15b4c46c3">§</ulink>
</para>
<para>
Do not
check <literal>datallowconn</literal>, <literal>rolcanlogin</literal>,
and <literal>ACL_CONNECT</literal> privileges when starting a
parallel worker, instead assuming that it's enough for the leader
process to have passed similar checks originally. This avoids, for
example, unexpected failures of parallelized queries when the leader
is running as a role that lacks login privilege. In the same vein,
enforce <literal>ReservedConnections</literal>,
<literal>datconnlimit</literal>, and <literal>rolconnlimit</literal>
limits only against regular backends, and count only regular
backends while checking if the limits were already reached. Those
limits are meant to prevent excessive consumption of process slots
for regular backends --- but parallel workers and other special
processes have their own pools of process slots with their own limit
checks.
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [1e5ef3a2a] 2024-12-03 15:50:03 +0100
Branch: REL_17_STABLE [5ffbbcfa1] 2024-12-03 15:50:03 +0100
-->
<para>
Drop <quote>Lock</quote> suffix from LWLock wait event names
(Bertrand Drouvot)
<ulink url="&commit_baseurl;5ffbbcfa1">§</ulink>
</para>
<para>
Refactoring unintentionally caused
the <structname>pg_stat_activity</structname> view to show
lock-related wait event names with a <quote>Lock</quote> suffix,
which among other things broke joining it
to <structname>pg_wait_events</structname>.
</para>
</listitem>
<listitem>
<!--
Author: Peter Geoghegan <pg@bowt.ie>
Branch: master [31b0a8f04] 2024-12-19 11:08:55 -0500
Branch: REL_17_STABLE [9e85b20da] 2024-12-19 11:08:53 -0500
-->
<para>
Fix possible failure to return all matching tuples for a btree index
scan with a ScalarArrayOp (<literal>= ANY</literal>) condition
(Peter Geoghegan)
<ulink url="&commit_baseurl;9e85b20da">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
Branch: master [1fe5a347e] 2024-12-09 14:23:21 +1300
Branch: REL_17_STABLE [9d5ce4f1a] 2024-12-09 14:24:07 +1300
Branch: REL_16_STABLE [c1d6506ac] 2024-12-09 14:24:34 +1300
Branch: REL_15_STABLE [d54378e98] 2024-12-09 14:24:54 +1300
-->
<para>
Fix possible re-use of stale results in window aggregates (David
Rowley)
<ulink url="&commit_baseurl;9d5ce4f1a">§</ulink>
</para>
<para>
A window aggregate with a <quote>run condition</quote> optimization
and a pass-by-reference result type might incorrectly return the
result from the previous partition instead of performing a fresh
calculation.
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [578a7fe7b] 2024-12-21 23:42:39 +0200
Branch: REL_17_STABLE [7cfdb4d1e] 2024-12-21 23:42:52 +0200
Branch: REL_16_STABLE [9d8ab2c46] 2024-12-21 23:42:55 +0200
Branch: REL_15_STABLE [acd5c28db] 2024-12-21 23:42:57 +0200
Branch: REL_14_STABLE [41eafbb49] 2024-12-21 23:42:59 +0200
Branch: REL_13_STABLE [9c1afd344] 2024-12-21 23:45:56 +0200
-->
<para>
Keep <varname>TransactionXmin</varname> in sync
with <varname>MyProc->xmin</varname> (Heikki Linnakangas)
<ulink url="&commit_baseurl;7cfdb4d1e">§</ulink>
</para>
<para>
This oversight could permit a process to try to access data that had
already been vacuumed away. One known consequence is
transient <quote>could not access status of transaction</quote>
errors.
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [af8cd1639] 2025-01-14 14:28:49 +0200
Branch: REL_17_STABLE [96e61b279] 2025-01-14 14:35:11 +0200
Branch: REL_16_STABLE [91fc447c2] 2025-01-14 14:41:01 +0200
Branch: REL_15_STABLE [ce7c406f0] 2025-01-14 14:29:11 +0200
Branch: REL_14_STABLE [fce17c3a5] 2025-01-14 14:29:13 +0200
Branch: REL_13_STABLE [f217c4105] 2025-01-14 18:54:56 +0200
-->
<para>
Fix race condition that could cause failure to add a newly-inserted
catalog entry to a catalog cache list (Heikki Linnakangas)
<ulink url="&commit_baseurl;96e61b279">§</ulink>
</para>
<para>
This could result, for example, in failure to use a newly-created
function within an existing session.
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [81772a495] 2025-01-25 11:28:14 -0800
Branch: REL_17_STABLE [1587f7b9f] 2025-01-25 11:28:18 -0800
Branch: master [d28cd3e7b] 2025-01-25 11:28:14 -0800
Branch: REL_17_STABLE [f4af4515b] 2025-01-25 11:28:18 -0800
Branch: REL_16_STABLE [9311fcb86] 2025-01-25 11:28:18 -0800
Branch: REL_15_STABLE [dc02b98bd] 2025-01-25 11:28:19 -0800
Branch: REL_14_STABLE [25e99483c] 2025-01-25 11:28:19 -0800
Branch: REL_13_STABLE [8bfd2ceba] 2025-01-25 11:28:19 -0800
-->
<para>
Prevent possible catalog corruption when a system catalog is
vacuumed concurrently with an update (Noah Misch)
<ulink url="&commit_baseurl;1587f7b9f">§</ulink>
<ulink url="&commit_baseurl;f4af4515b">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [38c579b08] 2024-12-20 23:57:02 +1300
Branch: REL_17_STABLE [0350b876b] 2024-12-20 23:57:18 +1300
Branch: REL_16_STABLE [ba02d24ba] 2024-12-20 23:57:26 +1300
Branch: REL_15_STABLE [fb540b6aa] 2024-12-20 23:57:34 +1300
Branch: REL_14_STABLE [23c743b64] 2024-12-20 23:57:53 +1300
Branch: REL_13_STABLE [228091216] 2024-12-20 23:58:08 +1300
Branch: REL_17_STABLE [66aaabe7a] 2025-01-08 10:43:40 +1300
Branch: REL_16_STABLE [c957d7444] 2025-01-08 10:46:45 +1300
Branch: REL_15_STABLE [3181befdc] 2025-01-08 10:47:43 +1300
Branch: REL_14_STABLE [f154f028d] 2025-01-08 10:48:01 +1300
Branch: REL_13_STABLE [a1d17a894] 2025-01-08 10:48:57 +1300
Branch: REL_17_STABLE [45aef9f6b] 2025-01-08 17:02:30 +1300
Branch: REL_16_STABLE [9defaaa1d] 2025-01-08 17:03:25 +1300
Branch: REL_15_STABLE [190054e61] 2025-01-08 17:03:45 +1300
Branch: REL_14_STABLE [049c8cb9a] 2025-01-08 17:04:26 +1300
Branch: REL_13_STABLE [417d41c65] 2025-01-08 17:14:15 +1300
-->
<para>
Fix data corruption when relation truncation fails (Thomas Munro)
<ulink url="&commit_baseurl;0350b876b">§</ulink>
<ulink url="&commit_baseurl;66aaabe7a">§</ulink>
<ulink url="&commit_baseurl;45aef9f6b">§</ulink>
</para>
<para>
The filesystem calls needed to perform relation truncation could
fail, leaving inconsistent state on disk (for example, effectively
reviving deleted data). We can't really prevent that, but we can
recover by dint of making such failures into PANICs, so that
consistency is restored by replaying from WAL up to just before the
attempted truncation. This isn't a hugely desirable behavior, but
such failures are rare enough that it seems an acceptable solution.
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [75818b3af] 2024-12-03 10:12:05 +1300
Branch: REL_17_STABLE [d4ffbf47b] 2024-12-03 10:19:47 +1300
Branch: REL_16_STABLE [ad5aa7bfd] 2024-12-03 10:20:10 +1300
Branch: REL_15_STABLE [a501fe5a9] 2024-12-03 10:20:22 +1300
Branch: REL_14_STABLE [7d0b91a28] 2024-12-03 10:12:56 +1300
Branch: REL_13_STABLE [1168acbca] 2024-12-03 10:13:49 +1300
-->
<para>
Prevent checkpoints from starting during relation truncation
(Robert Haas)
<ulink url="&commit_baseurl;d4ffbf47b">§</ulink>
</para>
<para>
This avoids a race condition wherein the modified file might not get
fsync'd before completing the checkpoint, creating a risk of data
corruption if the operating system crashes soon after.
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [ff90ee614] 2024-12-28 07:16:22 -0800
Branch: REL_17_STABLE [fa6131377] 2024-12-28 07:16:26 -0800
Branch: REL_16_STABLE [5d94aa4dc] 2024-12-28 07:16:26 -0800
Branch: REL_15_STABLE [83bb52375] 2024-12-28 07:16:26 -0800
Branch: REL_14_STABLE [536acda0b] 2024-12-28 07:16:27 -0800
Branch: REL_13_STABLE [102546322] 2024-12-28 07:16:27 -0800
-->
<para>
Avoid possibly losing an update of
<structname>pg_database</structname>.<structfield>datfrozenxid</structfield>
when <command>VACUUM</command> runs concurrently with
a <command>REASSIGN OWNED</command> that changes that database's
owner (Kirill Reshke)
<ulink url="&commit_baseurl;fa6131377">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [ea68ea632] 2025-01-22 11:58:20 -0500
Branch: REL_17_STABLE [2b72fed2d] 2025-01-22 11:58:20 -0500
Branch: REL_16_STABLE [8c57f5485] 2025-01-22 11:58:20 -0500
Branch: REL_15_STABLE [cdeed4de7] 2025-01-22 11:58:20 -0500
Branch: REL_14_STABLE [308599305] 2025-01-22 11:58:20 -0500
Branch: REL_13_STABLE [001c09d8b] 2025-01-22 11:58:20 -0500
-->
<para>
Fix incorrect <structfield>tg_updatedcols</structfield> values
passed to <literal>AFTER UPDATE</literal> triggers (Tom Lane)
<ulink url="&commit_baseurl;2b72fed2d">§</ulink>
</para>
<para>
In some cases the <structfield>tg_updatedcols</structfield> bitmap
could describe the set of columns updated by an earlier command in
the same transaction, fooling the trigger into doing the wrong
thing.
</para>
<para>
Also, prevent memory bloat caused by making too many copies of
the <structfield>tg_updatedcols</structfield> bitmap.
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [9b21f203d] 2025-01-21 14:53:46 +0100
Branch: REL_17_STABLE [2f30847d1] 2025-01-21 14:53:46 +0100
Branch: REL_16_STABLE [ddab512eb] 2025-01-21 14:53:46 +0100
Branch: REL_15_STABLE [1bc092519] 2025-01-21 14:53:46 +0100
-->
<para>
Fix detach of a partition that has its own foreign-key constraint
referencing a partitioned table (Amul Sul)
<ulink url="&commit_baseurl;2f30847d1">§</ulink>
</para>
<para>
In common cases, foreign keys are defined on a partitioned table's
top level; but if instead one is defined on a partition and
references a partitioned table, and the referencing partition is
detached, the relevant <structname>pg_constraint</structname>
entries were updated incorrectly. This led to errors
like <quote>could not find ON INSERT check triggers of foreign key
constraint</quote>.
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [09d09d429] 2024-11-27 13:50:27 +0100
Branch: REL_17_STABLE [6e793582b] 2024-11-27 13:50:27 +0100
-->
<para>
Fix <function>pg_get_constraintdef</function>'s support
for <literal>NOT NULL</literal> constraints on domains
(Álvaro Herrera)
<ulink url="&commit_baseurl;6e793582b">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [3220ceaf7] 2024-12-07 13:12:32 -0500
Branch: REL_17_STABLE [765f76d8c] 2024-12-07 13:12:32 -0500
Branch: REL_16_STABLE [26c233b8b] 2024-12-07 13:12:32 -0500
Branch: REL_15_STABLE [d2f59497a] 2024-12-07 13:12:32 -0500
Branch: REL_14_STABLE [5882a4ba0] 2024-12-07 13:12:32 -0500
Branch: REL_13_STABLE [f2eba400b] 2024-12-07 13:12:32 -0500
-->
<para>
Fix mis-processing of <function>to_timestamp</function>'s
<literal>FF<replaceable>n</replaceable></literal> format codes
(Tom Lane)
<ulink url="&commit_baseurl;765f76d8c">§</ulink>
</para>
<para>
An integer format code immediately
preceding <literal>FF<replaceable>n</replaceable></literal> would
consume all available digits, leaving none
for <literal>FF<replaceable>n</replaceable></literal>.
</para>
</listitem>
<listitem>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
Branch: master [a93e2a1e2] 2025-01-12 13:35:12 +0000
Branch: REL_17_STABLE [d037cc2af] 2025-01-12 13:36:44 +0000
-->
<para>
When deparsing a <literal>PASSING</literal> clause in a SQL/JSON
query function, ensure that variable names are double-quoted when
necessary (Dean Rasheed)
<ulink url="&commit_baseurl;d037cc2af">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
Branch: master [d673eefd4] 2025-01-12 12:54:32 +0000
Branch: REL_17_STABLE [61b12135f] 2025-01-12 12:56:52 +0000
Branch: REL_16_STABLE [77763f3be] 2025-01-12 12:58:14 +0000
Branch: REL_15_STABLE [7c0379516] 2025-01-12 12:59:40 +0000
Branch: REL_14_STABLE [dc8cd9cd0] 2025-01-12 13:01:22 +0000
Branch: REL_13_STABLE [8f137f038] 2025-01-12 13:02:56 +0000
-->
<para>
When deparsing an <literal>XMLTABLE()</literal> expression, ensure
that XML namespace names are double-quoted when necessary (Dean
Rasheed)
<ulink url="&commit_baseurl;61b12135f">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Branch: master [27a1f8d10] 2025-01-10 22:02:58 +0100
Branch: REL_17_STABLE [8ed9bf0a3] 2025-01-10 22:02:58 +0100
Branch: REL_16_STABLE [c35bbdfbc] 2025-01-10 22:02:58 +0100
Branch: REL_15_STABLE [830215a4c] 2025-01-10 22:02:58 +0100
Branch: REL_14_STABLE [83ffb9f20] 2025-01-10 22:02:58 +0100
Branch: REL_13_STABLE [84b8f6d9f] 2025-01-10 22:02:58 +0100
Branch: master [97698cc51] 2025-01-12 23:44:39 +0100
Branch: REL_17_STABLE [dc24c9ad5] 2025-01-12 23:44:39 +0100
Branch: REL_16_STABLE [116036d81] 2025-01-12 23:44:39 +0100
Branch: REL_15_STABLE [9ad7a32b2] 2025-01-12 23:44:39 +0100
Branch: REL_14_STABLE [9e596a099] 2025-01-12 23:44:39 +0100
Branch: REL_13_STABLE [7b1f50d8c] 2025-01-12 23:44:39 +0100
-->
<para>
Include the <literal>ldapscheme</literal> option
in <function>pg_hba_file_rules()</function> output (Laurenz Albe)
<ulink url="&commit_baseurl;8ed9bf0a3">§</ulink>
<ulink url="&commit_baseurl;dc24c9ad5">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
Branch: master [231006451] 2025-01-10 14:30:25 +1300
Branch: REL_17_STABLE [5db9367e5] 2025-01-10 14:31:31 +1300
-->
<para>
Fix planning of pre-sorted <literal>UNION</literal> operations for
cases where the input column datatypes don't all match (David
Rowley)
<ulink url="&commit_baseurl;5db9367e5">§</ulink>
</para>
<para>
This error could lead to sorting data with the wrong sort operator,
with consequences ranging from no visible problem to core dumps.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [a43d7a8c7] 2024-11-19 18:26:19 -0500
Branch: REL_17_STABLE [c1ebef3c1] 2024-11-19 18:26:19 -0500
Branch: REL_16_STABLE [f286f64bc] 2024-11-19 18:26:19 -0500
Branch: REL_15_STABLE [fd3383ff1] 2024-11-19 18:26:19 -0500
Branch: REL_14_STABLE [44a4a521d] 2024-11-19 18:26:19 -0500
Branch: REL_13_STABLE [6b66dba3f] 2024-11-19 18:26:19 -0500
-->
<para>
Don't merge <literal>UNION</literal> operations if their column
collations aren't consistent (Tom Lane)
<ulink url="&commit_baseurl;c1ebef3c1">§</ulink>
</para>
<para>
Previously we ignored collations when deciding if it's safe to
merge <literal>UNION</literal> steps into a single
N-way <literal>UNION</literal> operation. This was arguably valid
before the introduction of nondeterministic collations, but it's not
anymore, since the collation in use can affect the definition of
uniqueness.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [5c9d8636d] 2024-11-28 17:33:16 -0500
Branch: REL_17_STABLE [72822a99d] 2024-11-28 17:33:16 -0500
Branch: REL_16_STABLE [85990e2fd] 2024-11-28 17:33:16 -0500
Branch: master [e032e4c7d] 2024-11-30 12:42:19 -0500
Branch: REL_17_STABLE [78883cd90] 2024-11-30 12:42:20 -0500
Branch: REL_16_STABLE [7b456f040] 2024-11-30 12:42:20 -0500
-->
<para>
Prevent <quote>wrong varnullingrels</quote> planner errors after
pulling up a subquery that's underneath an outer join (Tom Lane)
<ulink url="&commit_baseurl;72822a99d">§</ulink>
<ulink url="&commit_baseurl;78883cd90">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Richard Guo <rguo@postgresql.org>
Branch: master [e28033fe1] 2025-01-02 18:06:00 +0900
Branch: REL_17_STABLE [297b280ab] 2025-01-02 17:59:32 +0900
Branch: REL_16_STABLE [a1a9120c7] 2025-01-02 18:02:02 +0900
-->
<para>
Ignore nulling-relation marker bits when looking up statistics
(Richard Guo)
<ulink url="&commit_baseurl;297b280ab">§</ulink>
</para>
<para>
This oversight could lead to failure to use relevant statistics
about expressions, or to <quote>corrupt MVNDistinct
entry</quote> errors.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [bf826ea06] 2025-01-16 20:40:07 -0500
Branch: REL_17_STABLE [0671a71e0] 2025-01-16 20:40:07 -0500
Branch: REL_16_STABLE [94c02bd33] 2025-01-16 20:40:07 -0500
Branch: REL_15_STABLE [724ebebb1] 2025-01-16 20:40:07 -0500
Branch: REL_14_STABLE [5f725648f] 2025-01-16 20:40:07 -0500
Branch: REL_13_STABLE [45004f527] 2025-01-16 20:40:07 -0500
-->
<para>
Fix missed expression processing for partition pruning steps
(Tom Lane)
<ulink url="&commit_baseurl;0671a71e0">§</ulink>
</para>
<para>
This oversight could lead to <quote>unrecognized node type</quote>
errors, and perhaps other problems, in queries accessing partitioned
tables.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [2bdf1b2a2] 2024-12-28 12:30:42 -0500
Branch: REL_17_STABLE [14141bbbc] 2024-12-28 12:30:42 -0500
-->
<para>
Give the slotsync worker process its own process slot (Tom Lane, Hou
Zhijie)
<ulink url="&commit_baseurl;14141bbbc">§</ulink>
</para>
<para>
This was overlooked in the addition of the slotsync worker, with the
result that its process slot effectively came out of the pool meant
for regular backend processes. This could result in failure to
launch the worker, or to subsequent failures of connection requests
that should have succeeded according to the configured settings,
if the number of regular backend processes
approached <varname>max_connections</varname>.
</para>
</listitem>
<listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
Branch: master [84f1b0b03] 2024-12-17 15:24:45 -0600
Branch: REL_17_STABLE [18452b70a] 2024-12-17 15:24:45 -0600
Branch: REL_16_STABLE [2a7402322] 2024-12-17 15:24:45 -0600
Branch: REL_15_STABLE [9f7b7d516] 2024-12-17 15:24:45 -0600
Branch: REL_14_STABLE [84dc1303c] 2024-12-17 15:24:45 -0600
Branch: REL_13_STABLE [853cef097] 2024-12-17 15:24:45 -0600
-->
<para>
Allow dshash tables to grow past 1GB (Matthias van de Meent)
<ulink url="&commit_baseurl;18452b70a">§</ulink>
</para>
<para>
This avoids errors like <quote>invalid DSA memory alloc request
size</quote>. The case can occur for example in transactions that
process several million tables.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [720e52984] 2025-01-14 15:12:56 +0900
Branch: REL_17_STABLE [e027ee990] 2025-01-14 15:13:14 +0900
Branch: REL_16_STABLE [bfda7d8dd] 2025-01-14 15:13:15 +0900
Branch: REL_15_STABLE [9e9f30139] 2025-01-14 15:13:17 +0900
Branch: REL_14_STABLE [e35ff6520] 2025-01-14 15:13:19 +0900
Branch: REL_13_STABLE [332023e2d] 2025-01-14 15:13:20 +0900
-->
<para>
Avoid possible integer overflow
in <function>bringetbitmap()</function> (James Hunter, Evgeniy
Gorbanyov)
<ulink url="&commit_baseurl;e027ee990">§</ulink>
</para>
<para>
Since the result is only used for statistical purposes, the effects
of this error were mostly cosmetic.
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [69ab44651] 2025-01-09 07:39:05 +0100
Branch: REL_17_STABLE [ffd9b8134] 2025-01-09 07:44:30 +0100
-->
<para>
Correct miscalculation of SLRU bank numbers (Yura Sokolov)
<ulink url="&commit_baseurl;ffd9b8134">§</ulink>
</para>
<para>
This error led to using a smaller number of banks than intended,
causing more contention but no functional misbehavior.
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [73f6b9a3b] 2025-01-20 16:43:29 +1300
Branch: REL_17_STABLE [44f400fbc] 2025-01-20 16:43:39 +1300
Branch: REL_16_STABLE [b4b52c911] 2025-01-20 16:55:11 +1300
-->
<para>
Ensure that an already-set process latch doesn't prevent the
postmaster from noticing socket events (Thomas Munro)
<ulink url="&commit_baseurl;44f400fbc">§</ulink>
</para>
<para>
An extremely heavy workload of backends launching workers and
workers exiting could prevent the postmaster from responding to
incoming client connections in a timely fashion.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [6cf1647d8] 2025-01-20 09:29:42 +0900
Branch: REL_17_STABLE [e6767c0ed] 2025-01-20 09:30:33 +0900
Branch: REL_16_STABLE [2c2e1d4f4] 2025-01-20 09:30:36 +0900
Branch: REL_15_STABLE [26554facc] 2025-01-20 09:30:37 +0900
Branch: REL_14_STABLE [a2d4f806c] 2025-01-20 09:30:39 +0900
Branch: REL_13_STABLE [0f0431e91] 2025-01-20 09:30:40 +0900
-->
<para>
Prevent streaming standby servers from looping infinitely when
reading a WAL record that crosses pages (Kyotaro Horiguchi,
Alexander Kukushkin)
<ulink url="&commit_baseurl;e6767c0ed">§</ulink>
</para>
<para>
This would happen when the record's continuation is on a page that
needs to be read from a different WAL source.
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [8b9cbf492] 2024-12-10 13:51:59 -0800
Branch: REL_17_STABLE [4bd9de3f4] 2024-12-10 13:52:02 -0800
Branch: REL_16_STABLE [ac4a2b403] 2024-12-10 13:52:02 -0800
Branch: REL_15_STABLE [839da50bd] 2024-12-10 13:52:02 -0800
Branch: REL_14_STABLE [315264d70] 2024-12-10 13:52:02 -0800
Branch: REL_13_STABLE [6151769f6] 2024-12-10 13:52:02 -0800
-->
<para>
Fix unintended promotion of FATAL errors to PANIC during early
process startup (Noah Misch)
<ulink url="&commit_baseurl;4bd9de3f4">§</ulink>
</para>
<para>
This fixes some unlikely cases that would result in <quote>PANIC:
proc_exit() called in child process</quote>.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [3f9b96217] 2024-12-07 15:56:28 -0500
Branch: REL_17_STABLE [ec7b89cc5] 2024-12-07 15:56:28 -0500
Branch: REL_16_STABLE [be5db08ed] 2024-12-07 15:56:28 -0500
Branch: REL_15_STABLE [0e4fa06ba] 2024-12-07 15:56:28 -0500
Branch: REL_14_STABLE [1a34cf0f4] 2024-12-07 15:56:28 -0500
Branch: REL_13_STABLE [725d98102] 2024-12-07 15:56:28 -0500
Branch: master [c82003760] 2024-12-07 14:28:16 -0500
Branch: REL_17_STABLE [5b44a317a] 2024-12-07 14:28:16 -0500
Branch: REL_16_STABLE [faad01835] 2024-12-07 14:28:16 -0500
Branch: REL_15_STABLE [d40191467] 2024-12-07 14:28:16 -0500
Branch: REL_14_STABLE [d9d5e1b48] 2024-12-07 14:28:16 -0500
Branch: REL_13_STABLE [531cbd8b7] 2024-12-07 14:28:16 -0500
-->
<para>
Fix cases where an operator family member operator or support
procedure could become a dangling reference (Tom Lane)
<ulink url="&commit_baseurl;ec7b89cc5">§</ulink>
<ulink url="&commit_baseurl;5b44a317a">§</ulink>
</para>
<para>
In some cases a data type could be dropped while references to its
OID still remain in <structname>pg_amop</structname>
or <structname>pg_amproc</structname>. While that caused no
immediate issues, an attempt to drop the owning operator family
would fail, and <application>pg_dump</application> would produce
bogus output when dumping the operator family. This fix causes
creation and modification of operator families/classes to add
needed dependency entries so that dropping a data type will also
drop any dependent operator family elements. That does not help
vulnerable pre-existing operator families, though, so a band-aid has
also been added to <command>DROP OPERATOR FAMILY</command> to
prevent failure when dropping a family that has dangling members.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [c9b3d4909] 2024-12-30 13:33:09 +0900
Branch: REL_17_STABLE [836435424] 2024-12-30 13:33:58 +0900
Branch: REL_16_STABLE [e3a27fd06] 2024-12-30 13:33:59 +0900
Branch: REL_15_STABLE [da8bd5d42] 2024-12-30 13:34:01 +0900
Branch: REL_14_STABLE [c53d90bb4] 2025-01-08 08:47:19 +0900
Branch: REL_13_STABLE [a786cf04d] 2025-01-08 08:47:24 +0900
Author: Michael Paquier <michael@paquier.xyz>
Branch: REL_17_STABLE [bbe68c13a] 2024-12-23 12:48:06 +0900
Branch: REL_16_STABLE [4d45e7490] 2024-12-23 12:48:08 +0900
Branch: REL_15_STABLE [6c9b39754] 2024-12-23 12:48:09 +0900
Branch: REL_14_STABLE [cfd6cbcf9] 2024-12-23 12:48:10 +0900
Branch: REL_13_STABLE [ba230ce40] 2024-12-23 12:48:12 +0900
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [ea792bfd9] 2024-11-21 15:14:02 +0900
Branch: REL_17_STABLE [afe9b0d9f] 2024-11-21 15:14:11 +0900
Branch: REL_16_STABLE [e749eaf46] 2024-11-21 15:14:13 +0900
Branch: REL_15_STABLE [6fc30c24c] 2024-11-21 15:14:15 +0900
-->
<para>
Fix multiple memory leaks in logical decoding output (Vignesh C,
Masahiko Sawada, Boyu Yang)
<ulink url="&commit_baseurl;836435424">§</ulink>
<ulink url="&commit_baseurl;bbe68c13a">§</ulink>
<ulink url="&commit_baseurl;afe9b0d9f">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Branch: master [73a392d23] 2024-12-09 20:58:23 +0100
Branch: REL_17_STABLE [9add1bbfa] 2024-12-09 20:58:23 +0100
Branch: REL_16_STABLE [be9dac9af] 2024-12-09 20:58:23 +0100
-->
<para>
Fix small memory leak when
updating the <varname>application_name</varname>
or <varname>cluster_name</varname> settings (Tofig Aliev)
<ulink url="&commit_baseurl;9add1bbfa">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [3c5f9f12c] 2024-12-03 17:50:57 +0100
Branch: REL_17_STABLE [9abdc1841] 2024-12-03 17:50:57 +0100
-->
<para>
Avoid crash when a background process tries to check a new value
of <varname>synchronized_standby_slots</varname> (Álvaro Herrera)
<ulink url="&commit_baseurl;9abdc1841">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [b9aa4166f] 2025-01-30 15:36:44 -0500
Branch: REL_17_STABLE [1e25cdb21] 2025-01-30 15:36:07 -0500
Branch: REL_16_STABLE [f7a08b6e9] 2025-01-30 15:36:07 -0500
Branch: REL_15_STABLE [b296e55b4] 2025-01-30 15:36:07 -0500
Branch: REL_14_STABLE [6a33bb35c] 2025-01-30 15:36:07 -0500
Branch: REL_13_STABLE [49a38238e] 2025-01-30 15:36:07 -0500
-->
<para>
Avoid integer overflow while
testing <varname>wal_skip_threshold</varname> condition (Tom Lane)
<ulink url="&commit_baseurl;1e25cdb21">§</ulink>
</para>
<para>
A transaction that created a very large relation could mistakenly
decide to ensure durability by copying the relation into WAL instead
of fsync'ing it, thereby negating the point
of <varname>wal_skip_threshold</varname>. (This only matters
when <varname>wal_level</varname> is set
to <literal>minimal</literal>, else a WAL copy is required anyway.)
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [4ba84de45] 2024-11-25 14:42:35 -0800
Branch: REL_17_STABLE [718af10da] 2024-11-25 14:42:38 -0800
Branch: REL_16_STABLE [c1285bbeb] 2024-11-25 14:42:39 -0800
Branch: REL_15_STABLE [941e0c0df] 2024-11-25 14:42:39 -0800
Branch: REL_14_STABLE [2690a4f5d] 2024-11-25 14:42:40 -0800
Branch: REL_13_STABLE [01745fb04] 2024-11-25 14:42:40 -0800
-->
<para>
Fix unsafe order of operations during cache lookups (Noah Misch)
<ulink url="&commit_baseurl;718af10da">§</ulink>
</para>
<para>
The only known consequence was a usually-harmless <quote>you don't
own a lock of type ExclusiveLock</quote> warning
during <command>GRANT TABLESPACE</command>.
</para>
</listitem>
<listitem>
<!--
Author: John Naylor <john.naylor@postgresql.org>
Branch: master [ccc8194e4] 2024-12-04 16:58:25 +0700
Branch: REL_17_STABLE [83ce20d67] 2024-12-04 16:59:12 +0700
-->
<para>
Avoid potential use-after-free in parallel vacuum (Vallimaharajan G,
John Naylor)
<ulink url="&commit_baseurl;83ce20d67">§</ulink>
</para>
<para>
This bug seems to have no consequences in standard builds, but it's
theoretically a hazard.
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [78c09bd9f] 2024-11-22 15:29:47 +1300
Branch: REL_17_STABLE [8a9a51518] 2024-11-22 15:29:28 +1300
Branch: REL_16_STABLE [6de14dbb3] 2024-11-22 15:29:18 +1300
Branch: REL_15_STABLE [15ab513fe] 2024-11-22 15:29:00 +1300
Branch: REL_14_STABLE [7ca388fd0] 2024-11-22 15:30:37 +1300
Branch: REL_13_STABLE [8aefd8b6f] 2024-11-22 15:32:02 +1300
-->
<para>
Fix possible <quote>failed to resolve name</quote> failures when
using JIT on older ARM platforms (Thomas Munro)
<ulink url="&commit_baseurl;8a9a51518">§</ulink>
</para>
<para>
This could occur as a consequence of inconsistency about the default
setting of <option>-moutline-atomics</option> between gcc and clang.
At least Debian and Ubuntu are known to ship gcc and clang compilers
that target armv8-a but differ on the use of outline atomics by
default.
</para>
</listitem>
<listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
Branch: master [8f4ee9626] 2024-12-19 13:11:39 +1300
Branch: REL_17_STABLE [7b8d45d27] 2024-12-19 13:12:18 +1300
Branch: REL_16_STABLE [093fc156b] 2024-12-19 13:12:41 +1300
Branch: REL_15_STABLE [ef178d38b] 2024-12-19 13:13:01 +1300
Branch: REL_14_STABLE [bdb07d241] 2024-12-19 13:13:31 +1300
Branch: REL_13_STABLE [2c7887c9d] 2024-12-19 13:13:51 +1300
-->
<para>
Fix assertion failure in <literal>WITH RECURSIVE ... UNION</literal>
queries (David Rowley)
<ulink url="&commit_baseurl;7b8d45d27">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [94131cd53] 2024-11-20 12:03:47 -0500
Branch: REL_17_STABLE [fea81aee8] 2024-11-20 12:03:47 -0500
Branch: REL_16_STABLE [fe084039e] 2024-11-20 12:03:47 -0500
Branch: REL_15_STABLE [9b9689e26] 2024-11-20 12:03:47 -0500
Branch: REL_14_STABLE [3eb26524c] 2024-11-20 12:03:47 -0500
Branch: REL_13_STABLE [630520c22] 2024-11-20 12:03:47 -0500
-->
<para>
Avoid assertion failure in rule deparsing if a set operation leaf
query contains set operations (Man Zeng, Tom Lane)
<ulink url="&commit_baseurl;fea81aee8">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [3eea7a0c9] 2024-12-09 14:38:19 -0500
Branch: REL_17_STABLE [556f7b7bc] 2024-12-09 14:38:19 -0500
Branch: REL_16_STABLE [bb649b553] 2024-12-09 14:38:19 -0500
Branch: REL_15_STABLE [4089b9bd6] 2024-12-09 14:38:19 -0500
Branch: REL_14_STABLE [8a95ad3b2] 2024-12-09 14:38:19 -0500
Branch: REL_13_STABLE [4d20bad5e] 2024-12-09 14:38:19 -0500
-->
<para>
Avoid edge-case assertion failure in parallel query startup (Tom Lane)
<ulink url="&commit_baseurl;556f7b7bc">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [da99fedf8] 2024-12-09 10:45:28 +0900
Branch: REL_17_STABLE [dc5f90541] 2024-12-09 10:46:03 +0900
Branch: REL_16_STABLE [ae77bcc3a] 2024-12-09 10:46:09 +0900
Branch: REL_15_STABLE [1df1e1e78] 2024-12-09 10:46:10 +0900
-->
<para>
Fix assertion failure at shutdown when writing out the statistics
file (Michael Paquier)
<ulink url="&commit_baseurl;dc5f90541">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: John Naylor <john.naylor@postgresql.org>
Branch: master [235328ee4] 2025-01-29 13:35:43 +0700
Branch: REL_17_STABLE [6555fe197] 2025-01-29 13:55:43 +0700
-->
<para>
Avoid valgrind complaints about string hashing code (John Naylor)
<ulink url="&commit_baseurl;6555fe197">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [5b8728cd7] 2024-11-25 18:09:09 -0500
Branch: REL_17_STABLE [97be02ad0] 2024-11-25 18:09:10 -0500
Branch: REL_16_STABLE [4aba56adc] 2024-11-25 18:09:10 -0500
Branch: REL_15_STABLE [80cd33bad] 2024-11-25 18:09:10 -0500
Branch: REL_14_STABLE [a1168855e] 2024-11-25 18:09:10 -0500
Branch: REL_13_STABLE [48a6cd1ae] 2024-11-25 18:09:11 -0500
-->
<para>
In <function>NULLIF()</function>, avoid passing a read-write
expanded object pointer to the data type's equality function
(Tom Lane)
<ulink url="&commit_baseurl;97be02ad0">§</ulink>
</para>
<para>
The equality function could modify or delete the object if it's
given a read-write pointer, which would be bad if we decide to
return it as the <function>NULLIF()</function> result. There is
probably no problem with any built-in equality function, but it's
easy to demonstrate a failure with one coded in PL/pgSQL.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [0da39aa76] 2025-01-29 15:31:55 -0500
Branch: REL_17_STABLE [6e41e9e5e] 2025-01-29 15:31:55 -0500
Branch: REL_16_STABLE [6655d931c] 2025-01-29 15:31:55 -0500
Branch: REL_15_STABLE [bb85d0935] 2025-01-29 15:31:55 -0500
Branch: REL_14_STABLE [c05268e6e] 2025-01-29 15:31:55 -0500
-->
<para>
Ensure that expression preprocessing is applied to a default null
value in <command>INSERT</command> (Tom Lane)
<ulink url="&commit_baseurl;6e41e9e5e">§</ulink>
</para>
<para>
If the target column is of a domain type, the planner must insert a
coerce-to-domain step not just a null constant, and this expression
missed going through some required processing steps. There is no
known consequence with domains based on core data types, but in
theory an error could occur with domains based on extension types.
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [ee937f040] 2024-11-22 16:28:24 +0200
Branch: REL_17_STABLE [969583553] 2024-11-22 16:29:22 +0200
-->
<para>
Avoid data loss when starting a bulk write on a relation fork that
already contains data (Matthias van de Meent)
<ulink url="&commit_baseurl;969583553">§</ulink>
</para>
<para>
Any pre-existing data was overwritten with zeroes. This is not an
issue for core <productname>PostgreSQL</productname>, which never
does that. Some extensions would like to, however.
</para>
</listitem>
<listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
Branch: REL_17_STABLE [9af2b3435] 2025-02-06 11:35:51 -0800
-->
<para>
Avoid crash if a server process tried to iterate over a shared radix
tree that it didn't create (Masahiko Sawada)
<ulink url="&commit_baseurl;9af2b3435">§</ulink>
</para>
<para>
There is no code in core <productname>PostgreSQL</productname> that
does this, but an extension might wish to.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [29dfffae0] 2025-01-11 11:45:56 -0500
Branch: REL_17_STABLE [e98df02df] 2025-01-11 11:45:56 -0500
Branch: REL_16_STABLE [33a4e656d] 2025-01-11 11:45:56 -0500
Branch: REL_15_STABLE [71bb9c4b2] 2025-01-11 11:45:56 -0500
Branch: REL_14_STABLE [bcb4db0d3] 2025-01-11 11:45:56 -0500
Branch: REL_13_STABLE [02a38bc84] 2025-01-11 11:45:56 -0500
-->
<para>
Repair memory leaks in PL/Python (Mat Arye, Tom Lane)
<ulink url="&commit_baseurl;e98df02df">§</ulink>
</para>
<para>
Repeated use of <function>PLyPlan.execute</function>
or <function>plpy.cursor</function> resulted in memory leakage for
the duration of the calling PL/Python function.
</para>
</listitem>
<listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
Branch: master [32a2aa77e] 2024-11-25 11:44:29 +0100
Branch: REL_17_STABLE [f979197eb] 2024-11-25 12:27:10 +0100
Branch: REL_16_STABLE [07c77803c] 2024-11-25 12:27:19 +0100
Branch: REL_15_STABLE [a5f9cbde9] 2024-11-25 12:27:26 +0100
Branch: REL_14_STABLE [17d081a6f] 2024-11-25 13:11:18 +0100
Branch: REL_13_STABLE [f230e27a2] 2024-11-25 13:11:49 +0100
-->
<para>
Fix PL/Tcl to compile with Tcl 9 (Peter Eisentraut)
<ulink url="&commit_baseurl;f979197eb">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [2f696453d] 2024-12-01 14:15:37 -0500
Branch: REL_17_STABLE [a963abd54] 2024-12-01 14:15:37 -0500
Branch: REL_16_STABLE [cca34f68c] 2024-12-01 14:15:37 -0500
Branch: REL_15_STABLE [60b47525c] 2024-12-01 14:15:37 -0500
Branch: REL_14_STABLE [52c7a44e9] 2024-12-01 14:15:37 -0500
Branch: REL_13_STABLE [e359cbb84] 2024-12-01 14:15:37 -0500
-->
<para>
In the <application>ecpg</application> preprocessor, fix possible
misprocessing of cursors that reference out-of-scope variables
(Tom Lane)
<ulink url="&commit_baseurl;a963abd54">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Fujii Masao <fujii@postgresql.org>
Branch: master [94b914f60] 2025-01-15 01:23:02 +0900
Branch: REL_17_STABLE [ba2dbedd5] 2025-01-15 01:24:24 +0900
Branch: REL_16_STABLE [5c7c34db2] 2025-01-15 01:25:05 +0900
Branch: REL_15_STABLE [71ef47cf0] 2025-01-15 01:25:19 +0900
Branch: REL_14_STABLE [d06ab3c0c] 2025-01-15 01:25:31 +0900
Branch: REL_13_STABLE [226c9048d] 2025-01-15 01:25:52 +0900
-->
<para>
In <application>ecpg</application>, fix compile-time warnings about
unsupported use of <literal>COPY ... FROM STDIN</literal> (Ryo
Kanbayashi)
<ulink url="&commit_baseurl;ba2dbedd5">§</ulink>
</para>
<para>
Previously, the intended warning was not issued due to a typo.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [6cddecdfb] 2025-01-29 14:24:36 -0500
Branch: REL_17_STABLE [0b713b94b] 2025-01-29 14:24:36 -0500
Branch: REL_16_STABLE [998c4fc7c] 2025-01-29 14:24:36 -0500
Branch: REL_15_STABLE [b17e3970c] 2025-01-29 14:24:36 -0500
Branch: REL_14_STABLE [54f9afea7] 2025-01-29 14:24:36 -0500
Branch: REL_13_STABLE [98df8bace] 2025-01-29 14:24:36 -0500
-->
<para>
Fix <application>psql</application> to safely handle file path names
that are encoded in SJIS (Tom Lane)
<ulink url="&commit_baseurl;0b713b94b">§</ulink>
</para>
<para>
Some two-byte characters in SJIS have a second byte that is equal to
ASCII backslash (<literal>\</literal>). These characters were
corrupted by path name normalization, preventing access to files
whose names include such characters.
</para>
</listitem>
<listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
Branch: master [25ec329af] 2024-11-28 09:14:41 +0100
Branch: REL_17_STABLE [4527b9e26] 2024-11-28 12:09:53 +0100
-->
<para>
Add <application>psql</application> tab completion for <literal>COPY
(MERGE INTO)</literal> (Jian He)
<ulink url="&commit_baseurl;4527b9e26">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [9a45a89c3] 2025-01-14 18:50:24 -0500
Branch: REL_17_STABLE [a0dfeae0d] 2025-01-14 18:50:24 -0500
Branch: REL_16_STABLE [b935691b8] 2025-01-14 18:50:24 -0500
Branch: REL_15_STABLE [a3b709cf7] 2025-01-14 18:50:24 -0500
Branch: REL_14_STABLE [02e69313a] 2025-01-14 18:50:24 -0500
Branch: REL_13_STABLE [cfd7aadeb] 2025-01-14 18:50:24 -0500
-->
<para>
Fix use of wrong version of <function>pqsignal()</function>
in <application>pgbench</application>
and <application>psql</application> (Fujii Masao, Tom Lane)
<ulink url="&commit_baseurl;a0dfeae0d">§</ulink>
</para>
<para>
This error could lead to misbehavior when using
the <option>-T</option> option in <application>pgbench</application>
or the <command>\watch</command> command
in <application>psql</application>, due to interrupted system calls
not being resumed as expected.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [530f89e64] 2024-12-15 14:14:14 -0500
Branch: REL_17_STABLE [ff9dc96f3] 2024-12-15 14:14:15 -0500
Branch: REL_16_STABLE [076b09123] 2024-12-15 14:14:15 -0500
Branch: REL_15_STABLE [ff88db910] 2024-12-15 14:14:15 -0500
Branch: REL_14_STABLE [2a23dbcf3] 2024-12-15 14:14:15 -0500
Branch: REL_13_STABLE [ec0dc2c59] 2024-12-15 14:14:15 -0500
-->
<para>
Fix misexecution of some nested <command>\if</command> constructs
in <application>pgbench</application> (Michail Nikolaev)
<ulink url="&commit_baseurl;ff9dc96f3">§</ulink>
</para>
<para>
An <command>\if</command> command appearing within a false
(not-being-executed) <command>\if</command> branch was incorrectly
treated the same as <command>\elif</command>.
</para>
</listitem>
<listitem>
<!--
Author: Fujii Masao <fujii@postgresql.org>
Branch: master [af35fe501] 2024-11-27 23:01:53 +0900
Branch: REL_17_STABLE [adb103fca] 2024-11-27 23:03:04 +0900
Branch: REL_16_STABLE [1cf646957] 2024-11-27 23:03:44 +0900
Branch: REL_15_STABLE [1e46f7351] 2024-11-27 23:04:29 +0900
Branch: REL_14_STABLE [0f13e1a78] 2024-11-27 23:04:55 +0900
Branch: REL_13_STABLE [f1cb5e51f] 2024-11-27 23:05:24 +0900
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [fb056564e] 2025-02-07 13:41:42 -0500
Branch: REL_17_STABLE [e35d396ec] 2025-02-07 13:41:42 -0500
Branch: REL_16_STABLE [21b815f92] 2025-02-07 13:41:42 -0500
Branch: REL_15_STABLE [499d1cf55] 2025-02-07 13:41:43 -0500
Branch: REL_14_STABLE [5addea71c] 2025-02-07 13:41:43 -0500
Branch: REL_13_STABLE [b6decfc1d] 2025-02-07 13:41:43 -0500
-->
<para>
In <application>pgbench</application>, fix possible misdisplay of
progress messages during table initialization (Yushi Ogiwara, Tatsuo
Ishii, Fujii Masao)
<ulink url="&commit_baseurl;adb103fca">§</ulink>
<ulink url="&commit_baseurl;e35d396ec">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
Branch: master [ff1975ddd] 2025-02-05 00:45:49 +0200
Branch: REL_17_STABLE [1b8a9533f] 2025-02-05 00:45:43 +0200
Branch: REL_16_STABLE [d54d5668b] 2025-02-05 00:45:37 +0200
Branch: REL_15_STABLE [f1e0b078b] 2025-02-05 00:45:29 +0200
Branch: REL_14_STABLE [f2205448b] 2025-02-05 00:45:16 +0200
Branch: REL_13_STABLE [c24311c1f] 2025-02-05 00:46:06 +0200
-->
<para>
Make <application>pg_controldata</application> more robust against
corrupted <filename>pg_control</filename> files (Ilyasov Ian, Anton
Voloshin)
<ulink url="&commit_baseurl;1b8a9533f">§</ulink>
</para>
<para>
Since <application>pg_controldata</application> will attempt to
print the contents of <filename>pg_control</filename> even if the
CRC check fails, it must take care not to misbehave for invalid
field values. This patch fixes some issues triggered by invalid
timestamps and apparently-negative WAL segment sizes.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [7b8cb9cd6] 2024-12-13 14:21:36 -0500
Branch: REL_17_STABLE [ad950ea98] 2024-12-13 14:21:36 -0500
Branch: REL_16_STABLE [782cc1aa3] 2024-12-13 14:21:36 -0500
Branch: REL_15_STABLE [6978129b4] 2024-12-13 14:21:36 -0500
Branch: REL_14_STABLE [c7f3c414f] 2024-12-13 14:21:36 -0500
Branch: REL_13_STABLE [b6df2d6e5] 2024-12-13 14:21:36 -0500
-->
<para>
Fix possible crash in <application>pg_dump</application> with
identity sequences attached to tables that are extension members
(Tom Lane)
<ulink url="&commit_baseurl;ad950ea98">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [3f0632470] 2024-12-17 22:31:26 -0500
Branch: REL_17_STABLE [04b860198] 2024-12-17 22:31:26 -0500
Branch: REL_16_STABLE [8cfff087b] 2024-12-17 22:31:26 -0500
-->
<para>
Fix memory leak in <application>pg_restore</application>
with zstd-compressed data (Tom Lane)
<ulink url="&commit_baseurl;04b860198">§</ulink>
</para>
<para>
The leak was per-decompression-operation, so would be most
noticeable with a dump containing many tables or large objects.
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [970b97eeb] 2025-01-09 16:04:23 +1300
Branch: REL_17_STABLE [faee3185a] 2025-01-09 16:05:01 +1300
Branch: REL_16_STABLE [be7489662] 2025-01-09 16:05:08 +1300
Branch: REL_15_STABLE [6b6901a26] 2025-01-09 16:05:16 +1300
Branch: REL_14_STABLE [8f40d4612] 2025-01-09 16:05:25 +1300
Branch: REL_13_STABLE [bd0564f61] 2025-01-09 16:05:36 +1300
Branch: master [026762dae] 2025-01-09 15:00:58 +1300
Branch: REL_17_STABLE [af109e339] 2025-01-09 15:00:23 +1300
Branch: REL_16_STABLE [0bff6f1da] 2025-01-09 14:59:47 +1300
Branch: REL_15_STABLE [70a7a3761] 2025-01-09 14:58:18 +1300
Branch: REL_14_STABLE [1636c5e56] 2025-01-09 14:57:52 +1300
Branch: REL_13_STABLE [d02486cc8] 2025-01-09 14:57:02 +1300
-->
<para>
Fix <application>pg_basebackup</application> to correctly
handle <filename>pg_wal.tar</filename> files exceeding 2GB on
Windows (Davinder Singh, Thomas Munro)
<ulink url="&commit_baseurl;faee3185a">§</ulink>
<ulink url="&commit_baseurl;af109e339">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [969bbd0fa] 2024-12-14 16:07:18 -0500
Branch: REL_17_STABLE [3652de36e] 2024-12-14 16:07:18 -0500
Branch: REL_16_STABLE [31daa10fa] 2024-12-14 16:07:18 -0500
-->
<para>
Use SQL-standard function bodies in the declarations
of <filename>contrib/earthdistance</filename>'s SQL-language
functions (Tom Lane, Ronan Dunklau)
<ulink url="&commit_baseurl;3652de36e">§</ulink>
</para>
<para>
This change allows their references
to <filename>contrib/cube</filename> to be resolved during extension
creation, reducing the risk of search-path-based failures and
possible attacks.
</para>
<para>
In particular, this restores their usability in contexts like
generated columns, for which <productname>PostgreSQL</productname>
v17 restricts the search path on security grounds. We have received
reports of databases failing to be upgraded to v17 because of that.
This patch has been included in v16 to provide a workaround:
updating the <filename>earthdistance</filename> extension to this
version beforehand should allow an upgrade to succeed.
</para>
</listitem>
<listitem>
<!--
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Branch: master [957ba9ff1] 2024-12-17 17:48:55 +0100
Branch: REL_17_STABLE [3668c1d50] 2024-12-17 17:50:13 +0100
-->
<para>
Detect version mismatch
between <filename>contrib/pageinspect</filename>'s SQL declarations
and the underlying shared library (Tomas Vondra)
<ulink url="&commit_baseurl;3668c1d50">§</ulink>
</para>
<para>
Previously, such a mismatch could result in a crash while
calling <function>brin_page_items()</function>. Instead throw an
error recommending updating the extension.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [c431986de] 2024-12-23 15:14:30 -0500
Branch: REL_17_STABLE [89962bfef] 2024-12-23 15:14:30 -0500
-->
<para>
When trying to cancel a remote query
in <filename>contrib/postgres_fdw</filename>, re-issue the cancel
request a few times if it didn't seem to do anything (Tom Lane)
<ulink url="&commit_baseurl;89962bfef">§</ulink>
</para>
<para>
This fixes a race condition where we might try to cancel a just-sent
query before the remote server has started to process it, so that
the initial cancel request is ignored.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [5980f1884] 2024-11-25 12:50:17 -0500
Branch: REL_17_STABLE [e266a0ed6] 2024-11-25 12:50:17 -0500
Branch: REL_16_STABLE [1f4aadec4] 2024-11-25 12:50:17 -0500
Branch: REL_15_STABLE [851c6ff18] 2024-11-25 12:50:17 -0500
Branch: REL_14_STABLE [2fc0199a5] 2024-11-25 12:50:17 -0500
Branch: REL_13_STABLE [32057a0f7] 2024-11-25 12:50:17 -0500
-->
<para>
Update configuration probes that determine the compiler switches
needed to access ARM CRC instructions (Tom Lane)
<ulink url="&commit_baseurl;e266a0ed6">§</ulink>
</para>
<para>
On ARM platforms where the baseline CPU target lacks CRC
instructions, we need to supply a <option>-march</option> switch to
persuade the compiler to compile such instructions. Recent versions
of gcc reject the value we were trying, leading to silently falling
back to software CRC.
</para>
</listitem>
<listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Branch: REL_17_STABLE [0951d4ee4] 2025-02-07 15:09:13 +0100
Branch: REL_16_STABLE [60516fc8b] 2025-02-07 15:09:13 +0100
-->
<para>
Fix meson build system to support old OpenSSL libraries on Windows
(Darek Slusarczyk)
<ulink url="&commit_baseurl;0951d4ee4">§</ulink>
</para>
<para>
Add support for the legacy library
names <filename>ssleay32</filename>
and <filename>libeay32</filename>.
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [2571c1d5c] 2024-12-25 18:14:18 +0200
Branch: REL_17_STABLE [c80acbc6f] 2024-12-25 18:14:26 +0200
Branch: REL_16_STABLE [4e0d71ff2] 2024-12-25 18:14:30 +0200
Branch: master [07f902bd7] 2024-12-25 19:22:25 +0200
Branch: REL_17_STABLE [d8b0c6411] 2024-12-25 19:22:33 +0200
Branch: REL_16_STABLE [643efb18b] 2024-12-25 19:22:41 +0200
-->
<para>
In Windows builds using meson, ensure all libcommon and libpgport
functions are exported (Vladlen Popolitov, Heikki Linnakangas)
<ulink url="&commit_baseurl;c80acbc6f">§</ulink>
<ulink url="&commit_baseurl;d8b0c6411">§</ulink>
</para>
<para>
This fixes <quote>unresolved external symbol</quote> build errors
for extensions.
</para>
</listitem>
<listitem>
<!--
Author: Andrew Dunstan <andrew@dunslane.net>
Branch: master Release: REL_17_BR [7c655a04a] 2024-05-26 17:34:45 -0400
Branch: REL_16_STABLE [1250adfdf] 2024-11-26 15:41:58 -0500
-->
<para>
Fix meson configuration process to correctly detect
OSSP's <filename>uuid.h</filename> header file under MSVC
(Andrew Dunstan)
<ulink url="&commit_baseurl;7c655a04a">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
Branch: master [4ee130c6e] 2024-11-26 18:09:05 +0100
Branch: REL_17_STABLE [e00c1e249] 2024-11-26 18:09:14 +0100
Branch: REL_16_STABLE [766b0b40a] 2024-11-26 18:09:23 +0100
-->
<para>
When building with meson, install <filename>pgevent</filename>
in <replaceable>pkglibdir</replaceable>
not <replaceable>bindir</replaceable> (Peter Eisentraut)
<ulink url="&commit_baseurl;e00c1e249">§</ulink>
</para>
<para>
This matches the behavior of the make-based build system and the old
MSVC build system.
</para>
</listitem>
<listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
Branch: master [02ed3c2bd] 2025-01-24 10:26:12 +0100
Branch: REL_17_STABLE [24c5b73eb] 2025-01-24 10:26:59 +0100
Branch: REL_16_STABLE [155d6162e] 2025-01-24 10:55:24 +0100
-->
<para>
When building with meson, install <filename>sepgsql.sql</filename>
under <filename>share/contrib/</filename>
not <filename>share/extension/</filename> (Peter Eisentraut)
<ulink url="&commit_baseurl;24c5b73eb">§</ulink>
</para>
<para>
This matches what the make-based build system does.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [60c513f8f] 2025-01-20 16:49:15 -0500
Branch: REL_17_STABLE [e292ba333] 2025-01-20 16:49:15 -0500
Branch: REL_16_STABLE [d62403c51] 2025-01-20 16:49:15 -0500
Branch: REL_15_STABLE [48bc95d0d] 2025-01-20 16:49:15 -0500
Branch: REL_14_STABLE [20b4819d0] 2025-01-20 16:49:15 -0500
Branch: REL_13_STABLE [6397819c8] 2025-01-20 16:49:15 -0500
-->
<para>
Update time zone data files to <application>tzdata</application>
release 2025a for DST law changes in Paraguay, plus historical
corrections for the Philippines (Tom Lane)
<ulink url="&commit_baseurl;e292ba333">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect2>
</sect1>
<sect1 id="release-17-2">
<title>Release 17.2</title>
<formalpara>
<title>Release date:</title>
<para>2024-11-21</para>
</formalpara>
<para>
This release contains a few fixes from 17.1.
For information about new features in major release 17, see
<xref linkend="release-17"/>.
</para>
<sect2 id="release-17-2-migration">
<title>Migration to Version 17.2</title>
<para>
A dump/restore is not required for those running 17.X.
</para>
<para>
However, if you are upgrading from a version earlier than 17.1,
see <xref linkend="release-17-1"/>.
</para>
</sect2>
<sect2 id="release-17-2-changes">
<title>Changes</title>
<itemizedlist>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: REL_17_STABLE [6bfacd368] 2024-11-16 12:58:26 -0500
Branch: REL_16_STABLE [ee33d5847] 2024-11-16 12:58:26 -0500
Branch: REL_15_STABLE [17db248f3] 2024-11-16 12:58:26 -0500
Branch: REL_14_STABLE [099e711b7] 2024-11-16 12:58:26 -0500
-->
<para>
Repair ABI break for extensions that work with
struct <structname>ResultRelInfo</structname> (Tom Lane)
<ulink url="&commit_baseurl;6bfacd368">§</ulink>
</para>
<para>
Last week's minor releases unintentionally broke binary
compatibility with <application>timescaledb</application> and
several other extensions. Restore the affected structure to its
previous size, so that such extensions need not be rebuilt.
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [7b88529f4] 2024-11-15 20:39:56 -0800
Branch: REL_17_STABLE [1c05004a8] 2024-11-15 20:39:59 -0800
Branch: REL_16_STABLE [b0918c128] 2024-11-15 20:39:59 -0800
Branch: REL_15_STABLE [edf80895f] 2024-11-15 20:39:59 -0800
Branch: REL_14_STABLE [be062bfa5] 2024-11-15 20:40:00 -0800
Branch: REL_13_STABLE [07c6e0f61] 2024-11-15 20:40:00 -0800
Branch: REL_12_STABLE [c46333865] 2024-11-15 20:40:00 -0800
-->
<para>
Restore functionality of <command>ALTER {ROLE|DATABASE} SET
role</command> (Tom Lane, Noah Misch)
<ulink url="&commit_baseurl;1c05004a8">§</ulink>
</para>
<para>
The fix for CVE-2024-10978 accidentally caused settings
for <varname>role</varname> to not be applied if they come from
non-interactive sources, including previous <command>ALTER
{ROLE|DATABASE}</command> commands and
the <varname>PGOPTIONS</varname> environment variable.
</para>
</listitem>
<listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
Branch: master [e5ed873b1] 2024-11-15 17:06:11 -0800
Branch: REL_17_STABLE [568e78a65] 2024-11-15 17:06:08 -0800
Branch: REL_16_STABLE [f35391133] 2024-11-15 17:06:05 -0800
Branch: REL_15_STABLE [91771b3fb] 2024-11-15 17:06:02 -0800
Branch: REL_14_STABLE [26c4e8968] 2024-11-15 17:06:00 -0800
Branch: REL_13_STABLE [15dc1abb1] 2024-11-15 17:05:57 -0800
-->
<para>
Fix cases where a logical replication
slot's <structfield>restart_lsn</structfield> could go backwards
(Masahiko Sawada)
<ulink url="&commit_baseurl;568e78a65">§</ulink>
</para>
<para>
Previously, restarting logical replication could sometimes cause the
slot's restart point to be recomputed as an older value than had
previously been advertised
in <structname>pg_replication_slots</structname>. This is bad,
since for example WAL files might have been removed on the basis of
the later <structfield>restart_lsn</structfield> value, in which
case replication would fail to restart.
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [90bcc7c2d] 2024-11-15 12:53:12 +0100
Branch: REL_17_STABLE [cb844d66b] 2024-11-15 12:53:12 +0100
Branch: REL_16_STABLE [ea1649c35] 2024-11-15 12:53:12 +0100
Branch: REL_15_STABLE [e28cf2fbc] 2024-11-15 12:53:12 +0100
Branch: REL_14_STABLE [ba2535841] 2024-11-15 12:53:12 +0100
-->
<para>
Avoid deleting still-needed WAL files
during <application>pg_rewind</application>
(Polina Bungina, Alexander Kukushkin)
<ulink url="&commit_baseurl;cb844d66b">§</ulink>
</para>
<para>
Previously, in unlucky cases, it was possible
for <application>pg_rewind</application> to remove important WAL
files from the rewound demoted primary. In particular this happens
if those files have been marked for archival (i.e.,
their <filename>.ready</filename> files were created) but not yet
archived. Then the newly promoted node no longer has such files
because of them having been recycled, but likely they are needed
for recovery in the demoted node.
If <application>pg_rewind</application> removes them, recovery is
not possible anymore.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [818119afc] 2024-11-15 11:31:58 +0900
Branch: REL_17_STABLE [1d6a03ea4] 2024-11-15 11:32:13 +0900
Branch: REL_16_STABLE [afa20845d] 2024-11-15 11:32:16 +0900
Branch: REL_15_STABLE [154c5b42a] 2024-11-15 11:32:18 +0900
-->
<para>
Fix race conditions associated with dropping shared statistics
entries (Kyotaro Horiguchi, Michael Paquier)
<ulink url="&commit_baseurl;1d6a03ea4">§</ulink>
</para>
<para>
These bugs could lead to loss of statistics data, assertion
failures, or <quote>can only drop stats once</quote> errors.
</para>
</listitem>
<listitem>
<!--
Author: Peter Geoghegan <pg@bowt.ie>
Branch: master [93063e2e4] 2024-11-12 20:57:45 -0500
Branch: REL_17_STABLE [7af6d1306] 2024-11-12 20:57:43 -0500
Branch: REL_16_STABLE [05aac2e83] 2024-11-12 20:57:41 -0500
Branch: REL_15_STABLE [16a2bb079] 2024-11-12 20:57:39 -0500
Branch: REL_14_STABLE [2a30b6836] 2024-11-12 20:57:37 -0500
Branch: REL_13_STABLE [e493ea866] 2024-11-12 20:57:35 -0500
-->
<para>
Count index scans in <filename>contrib/bloom</filename> indexes in
the statistics views, such as the
<structname>pg_stat_user_indexes</structname>.<structfield>idx_scan</structfield>
counter (Masahiro Ikeda)
<ulink url="&commit_baseurl;7af6d1306">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
Branch: master [db22b9002] 2024-11-12 01:44:20 +0200
Branch: REL_17_STABLE [a6fa869cf] 2024-11-12 01:51:20 +0200
Branch: REL_16_STABLE [b242aba02] 2024-11-12 01:53:40 +0200
Branch: REL_15_STABLE [713b8546a] 2024-11-12 01:54:30 +0200
Branch: REL_14_STABLE [247e7647f] 2024-11-12 01:54:35 +0200
Branch: REL_13_STABLE [5411e8213] 2024-11-12 01:54:38 +0200
-->
<para>
Fix crash when checking to see if an index's opclass options have
changed (Alexander Korotkov)
<ulink url="&commit_baseurl;a6fa869cf">§</ulink>
</para>
<para>
Some forms of <command>ALTER TABLE</command> would fail if the
table has an index with non-default operator class options.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [b69bdcee9] 2024-11-15 18:23:38 -0500
Branch: REL_17_STABLE [5f28e6ba7] 2024-11-15 18:23:38 -0500
Branch: REL_16_STABLE [b6312becc] 2024-11-15 18:23:38 -0500
Branch: REL_15_STABLE [2496c3f6f] 2024-11-15 18:23:38 -0500
Branch: REL_14_STABLE [2bdd3b248] 2024-11-15 18:23:38 -0500
-->
<para>
Avoid assertion failure caused by disconnected NFA sub-graphs in
regular expression parsing (Tom Lane)
<ulink url="&commit_baseurl;5f28e6ba7">§</ulink>
</para>
<para>
This bug does not appear to have any visible consequences in
non-assert builds.
</para>
</listitem>
</itemizedlist>
</sect2>
</sect1>
<sect1 id="release-17-1">
<title>Release 17.1</title>
<formalpara>
<title>Release date:</title>
<para>2024-11-14</para>
</formalpara>
<para>
This release contains a variety of fixes from 17.0.
For information about new features in major release 17, see
<xref linkend="release-17"/>.
</para>
<sect2 id="release-17-1-migration">
<title>Migration to Version 17.1</title>
<para>
A dump/restore is not required for those running 17.X.
</para>
<para>
However, if you have ever detached a partition from a partitioned
table that has a foreign-key reference to another partitioned table,
and not dropped the former partition, then you may have catalog and/or
data corruption to repair, as detailed in the fifth changelog entry
below.
</para>
<para>
Also, in the uncommon case that a
database's <varname>LC_CTYPE</varname> setting is <literal>C</literal>
while its <varname>LC_COLLATE</varname> setting is some other locale,
indexes on textual columns should be reindexed, as described in the
sixth changelog entry below.
</para>
</sect2>
<sect2 id="release-17-1-changes">
<title>Changes</title>
<itemizedlist>
<listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
Branch: master [cd7ab5753] 2024-11-11 09:00:00 -0600
Branch: REL_17_STABLE [edcda9bb4] 2024-11-11 09:00:00 -0600
Branch: REL_16_STABLE [562289460] 2024-11-11 09:00:00 -0600
Branch: REL_15_STABLE [6db5ea8de] 2024-11-11 09:00:00 -0600
Branch: REL_14_STABLE [4e51030af] 2024-11-11 09:00:00 -0600
Branch: REL_13_STABLE [952ff31e2] 2024-11-11 09:00:00 -0600
Branch: REL_12_STABLE [448525e8a] 2024-11-11 09:00:00 -0600
-->
<para>
Ensure cached plans are marked as dependent on the calling role when
RLS applies to a non-top-level table reference (Nathan Bossart)
<ulink url="&commit_baseurl;edcda9bb4">§</ulink>
</para>
<para>
If a CTE, subquery, sublink, security invoker view, or coercion
projection in a query references a table with row-level security
policies, we neglected to mark the resulting plan as potentially
dependent on which role is executing it. This could lead to later
query executions in the same session using the wrong plan, and then
returning or hiding rows that should have been hidden or returned
instead.
</para>
<para>
The <productname>PostgreSQL</productname> Project thanks
Wolfgang Walther for reporting this problem.
(CVE-2024-10976)
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [bf8835ea9] 2024-11-11 10:19:52 +0900
Branch: REL_17_STABLE [a5cc4c667] 2024-11-11 10:19:56 +0900
Branch: REL_16_STABLE [67d28bd02] 2024-11-11 10:19:58 +0900
Branch: REL_15_STABLE [d2c3e31c1] 2024-11-11 10:19:59 +0900
Branch: REL_14_STABLE [e6c945476] 2024-11-11 10:20:01 +0900
Branch: REL_13_STABLE [7b49707b7] 2024-11-11 10:20:02 +0900
Branch: REL_12_STABLE [2a951ef0a] 2024-11-11 10:20:03 +0900
-->
<para>
Make <application>libpq</application> discard error messages
received during SSL or GSS protocol negotiation (Jacob Champion)
<ulink url="&commit_baseurl;a5cc4c667">§</ulink>
</para>
<para>
An error message received before encryption negotiation is completed
might have been injected by a man-in-the-middle, rather than being
real server output. Reporting it opens the door to various security
hazards; for example, the message might spoof a query result that a
careless user could mistake for correct output. The best answer
seems to be to discard such data and rely only
on <application>libpq</application>'s own report of the connection
failure.
</para>
<para>
The <productname>PostgreSQL</productname> Project thanks
Jacob Champion for reporting this problem.
(CVE-2024-10977)
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [5a2fed911] 2024-11-11 10:29:54 -0500
Branch: REL_17_STABLE [cd82afdda] 2024-11-11 10:29:54 -0500
Branch: REL_16_STABLE [ae340d031] 2024-11-11 10:29:54 -0500
Branch: REL_15_STABLE [a5d2e6205] 2024-11-11 10:29:54 -0500
Branch: REL_14_STABLE [2a68808e2] 2024-11-11 10:29:54 -0500
Branch: REL_13_STABLE [76123ded6] 2024-11-11 10:29:54 -0500
Branch: REL_12_STABLE [4c9d96f74] 2024-11-11 10:29:54 -0500
Branch: master [73c9f91a1] 2024-11-11 17:05:53 -0500
Branch: REL_17_STABLE [f4f5d27d8] 2024-11-11 17:05:53 -0500
Branch: REL_16_STABLE [95f5a5237] 2024-11-11 17:05:53 -0500
Branch: REL_15_STABLE [109a32380] 2024-11-11 17:05:53 -0500
Branch: REL_14_STABLE [00b94e8e2] 2024-11-11 17:05:53 -0500
Branch: REL_13_STABLE [dc7378793] 2024-11-11 17:05:53 -0500
Branch: REL_12_STABLE [0edad8654] 2024-11-11 17:05:53 -0500
-->
<para>
Fix unintended interactions between <command>SET SESSION
AUTHORIZATION</command> and <command>SET ROLE</command> (Tom Lane)
<ulink url="&commit_baseurl;cd82afdda">§</ulink>
<ulink url="&commit_baseurl;f4f5d27d8">§</ulink>
</para>
<para>
The SQL standard mandates that <command>SET SESSION
AUTHORIZATION</command> have a side-effect of doing <command>SET
ROLE NONE</command>. Our implementation of that was flawed,
creating more interaction between the two settings than intended.
Notably, rolling back a transaction that had done <command>SET
SESSION AUTHORIZATION</command> would revert <literal>ROLE</literal>
to <literal>NONE</literal> even if that had not been the previous
state, so that the effective user ID might now be different from
what it had been before the transaction. Transiently
setting <varname>session_authorization</varname> in a
function <literal>SET</literal> clause had a similar effect.
A related bug was that if a parallel worker
inspected <literal>current_setting('role')</literal>, it
saw <literal>none</literal> even when it should see something else.
</para>
<para>
The <productname>PostgreSQL</productname> Project thanks
Tom Lane for reporting this problem.
(CVE-2024-10978)
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [b7e3a52a8] 2024-11-11 06:23:43 -0800
Branch: REL_17_STABLE [3ebcfa54d] 2024-11-11 06:23:46 -0800
Branch: REL_16_STABLE [8fe3e697a] 2024-11-11 06:23:47 -0800
Branch: REL_15_STABLE [e530835c6] 2024-11-11 06:23:47 -0800
Branch: REL_14_STABLE [d15ec27c9] 2024-11-11 06:23:47 -0800
Branch: REL_13_STABLE [e428cd058] 2024-11-11 06:23:48 -0800
Branch: REL_12_STABLE [2ab12d860] 2024-11-11 06:23:48 -0800
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: REL_14_STABLE [f89bd92c9] 2024-11-11 10:42:32 -0500
Branch: REL_13_STABLE [6bccd7b03] 2024-11-11 10:42:32 -0500
Branch: REL_12_STABLE [b1e58defb] 2024-11-11 10:42:32 -0500
Branch: master [a34c33fd2] 2024-11-11 12:20:08 -0500
Branch: REL_17_STABLE [4cd4f3b97] 2024-11-11 12:20:08 -0500
Branch: REL_16_STABLE [88269df4d] 2024-11-11 12:20:08 -0500
Branch: REL_16_STABLE [168579e23] 2024-11-11 12:27:06 -0500
Author: Noah Misch <noah@leadboat.com>
Branch: REL_16_STABLE [c335264c9] 2024-11-11 10:55:18 -0800
Branch: REL_15_STABLE [16ed4f4d0] 2024-11-11 10:56:05 -0800
Branch: REL_14_STABLE [c1fff7b1b] 2024-11-11 10:56:09 -0800
Branch: REL_13_STABLE [9f97c31c2] 2024-11-11 10:56:12 -0800
Branch: REL_12_STABLE [1e457468f] 2024-11-11 10:56:14 -0800
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [c4252c9ef] 2024-11-11 13:57:21 -0500
Branch: REL_17_STABLE [8d19f3fea] 2024-11-11 13:57:21 -0500
Branch: REL_16_STABLE [64df88700] 2024-11-11 13:57:40 -0500
Branch: REL_15_STABLE [c834b375a] 2024-11-11 13:57:41 -0500
Branch: REL_14_STABLE [256e34653] 2024-11-11 13:57:41 -0500
Branch: REL_13_STABLE [0bd9560d9] 2024-11-11 13:57:41 -0500
Branch: REL_12_STABLE [9fc1c3a02] 2024-11-11 13:57:41 -0500
-->
<para>
Prevent trusted PL/Perl code from changing environment variables
(Andrew Dunstan, Noah Misch)
<ulink url="&commit_baseurl;3ebcfa54d">§</ulink>
<ulink url="&commit_baseurl;4cd4f3b97">§</ulink>
<ulink url="&commit_baseurl;8d19f3fea">§</ulink>
</para>
<para>
The ability to manipulate process environment variables such
as <literal>PATH</literal> gives an attacker opportunities to
execute arbitrary code. Therefore, <quote>trusted</quote> PLs must
not offer the ability to do that. To fix <literal>plperl</literal>,
replace <varname>%ENV</varname> with a tied hash that rejects any
modification attempt with a warning.
Untrusted <literal>plperlu</literal> retains the ability to change
the environment.
</para>
<para>
The <productname>PostgreSQL</productname> Project thanks
Coby Abrams for reporting this problem.
(CVE-2024-10979)
</para>
</listitem>
<listitem>
<!--
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master [53af9491a] 2024-10-22 16:01:18 +0200
Branch: REL_17_STABLE [5914a22f6] 2024-10-22 16:01:18 +0200
Branch: REL_16_STABLE [2aaf2a28b] 2024-10-22 16:01:18 +0200
Branch: REL_15_STABLE [5d83bad6b] 2024-10-22 16:01:18 +0200
Branch: REL_14_STABLE [46a8c27a7] 2024-10-22 16:01:18 +0200
Branch: REL_13_STABLE [d20194cea] 2024-10-22 16:01:18 +0200
Branch: master [2d5fe5140] 2024-10-30 10:54:03 +0100
Branch: REL_17_STABLE [936ab6de9] 2024-10-30 10:54:03 +0100
Branch: REL_16_STABLE [f7d510a38] 2024-10-30 10:54:03 +0100
Branch: REL_15_STABLE [1b216fcef] 2024-10-30 10:54:03 +0100
-->
<para>
Fix updates of catalog state for foreign-key constraints when
attaching or detaching table partitions (Jehan-Guillaume de
Rorthais, Tender Wang, Álvaro Herrera)
<ulink url="&commit_baseurl;5914a22f6">§</ulink>
<ulink url="&commit_baseurl;936ab6de9">§</ulink>
</para>
<para>
If the referenced table is partitioned, then different catalog
entries are needed for a referencing table that is stand-alone
versus one that is a partition. <literal>ATTACH/DETACH
PARTITION</literal> commands failed to perform this conversion
correctly. In particular, after <literal>DETACH</literal> the now
stand-alone table would be missing foreign-key enforcement triggers,
which could result in the table later containing rows that fail the
foreign-key constraint. A subsequent re-<literal>ATTACH</literal>
could fail with surprising errors, too.
</para>
<para>
The way to fix this is to do <command>ALTER TABLE DROP
CONSTRAINT</command> on the now stand-alone table for each faulty
constraint, and then re-add the constraint. If re-adding the
constraint fails, then some erroneous data has crept in. You will
need to manually re-establish consistency between the referencing
and referenced tables, then re-add the constraint.
</para>
<para>
This query can be used to identify broken constraints and construct
the commands needed to recreate them:
<programlisting>
SELECT conrelid::pg_catalog.regclass AS "constrained table",
conname AS constraint,
confrelid::pg_catalog.regclass AS "references",
pg_catalog.format('ALTER TABLE %s DROP CONSTRAINT %I;',
conrelid::pg_catalog.regclass, conname) AS "drop",
pg_catalog.format('ALTER TABLE %s ADD CONSTRAINT %I %s;',
conrelid::pg_catalog.regclass, conname,
pg_catalog.pg_get_constraintdef(oid)) AS "add"
FROM pg_catalog.pg_constraint c
WHERE contype = 'f' AND conparentid = 0 AND
(SELECT count(*) FROM pg_catalog.pg_constraint c2
WHERE c2.conparentid = c.oid) <>
(SELECT count(*) FROM pg_catalog.pg_inherits i
WHERE (i.inhparent = c.conrelid OR i.inhparent = c.confrelid) AND
EXISTS (SELECT 1 FROM pg_catalog.pg_partitioned_table
WHERE partrelid = i.inhparent));
</programlisting>
Since it is possible that one or more of the <literal>ADD
CONSTRAINT</literal> steps will fail, you should save the query's
output in a file and then attempt to perform each step.
</para>
</listitem>
<listitem>
<!--
Author: Jeff Davis <jdavis@postgresql.org>
Branch: REL_17_STABLE [8148e7124] 2024-11-06 14:44:35 -0800
-->
<para>
Fix test for <literal>C</literal> locale
when <varname>LC_COLLATE</varname> is different
from <varname>LC_CTYPE</varname> (Jeff Davis)
<ulink url="&commit_baseurl;8148e7124">§</ulink>
</para>
<para>
When using <literal>libc</literal> as the default collation
provider, the test to see if <literal>C</literal> locale is in use
for collation accidentally checked <varname>LC_CTYPE</varname>
not <varname>LC_COLLATE</varname>. This has no impact in the
typical case where those settings are the same, nor if both are
not <literal>C</literal> (nor its alias <literal>POSIX</literal>).
However, if <varname>LC_CTYPE</varname> is <literal>C</literal>
while <varname>LC_COLLATE</varname> is some other locale, wrong
query answers could ensue, and corruption of indexes on strings was
possible. Users of databases with such settings should reindex
affected indexes after installing this update.
The converse case with <varname>LC_COLLATE</varname>
being <literal>C</literal> while <varname>LC_CTYPE</varname> is some
other locale would cause performance degradation, but no actual
errors.
</para>
</listitem>
<listitem>
<!--
Author: Amit Langote <amitlan@postgresql.org>
Branch: master [075acdd93] 2024-11-08 17:25:24 +0900
Branch: REL_17_STABLE [a0cdfc889] 2024-11-08 17:19:35 +0900
Branch: REL_16_STABLE [f734b6b4d] 2024-11-08 17:19:13 +0900
Branch: REL_15_STABLE [33040b171] 2024-11-08 17:18:55 +0900
Branch: REL_14_STABLE [62df5484f] 2024-11-08 17:18:38 +0900
Branch: REL_13_STABLE [054701a2b] 2024-11-08 17:18:21 +0900
Branch: REL_12_STABLE [9c4757491] 2024-11-08 17:18:04 +0900
Branch: master [90fe6251c] 2024-11-08 16:07:22 +0900
Branch: REL_17_STABLE [b6484ca95] 2024-11-08 16:07:13 +0900
Branch: REL_16_STABLE [dd2f8ebee] 2024-11-08 16:07:05 +0900
Branch: REL_15_STABLE [0a620659c] 2024-11-08 16:06:58 +0900
Branch: REL_14_STABLE [96f9b29a3] 2024-11-08 16:06:46 +0900
Branch: REL_13_STABLE [ff65f695c] 2024-11-08 16:06:12 +0900
Branch: REL_12_STABLE [46d9be5ef] 2024-11-08 16:05:33 +0900
-->
<para>
Don't use partitionwise joins or grouping if the query's collation
for the key column doesn't match the partition key's collation (Jian
He, Webbo Han)
<ulink url="&commit_baseurl;a0cdfc889">§</ulink>
<ulink url="&commit_baseurl;b6484ca95">§</ulink>
</para>
<para>
Such plans could produce incorrect results.
</para>
</listitem>
<listitem>
<!--
Author: Richard Guo <rguo@postgresql.org>
Branch: master [f00ab1fd1] 2024-11-08 11:21:11 +0900
Branch: REL_17_STABLE [78b1c553b] 2024-11-08 11:24:26 +0900
-->
<para>
Avoid planner failure after converting an <literal>IS NULL</literal>
test on a <literal>NOT NULL</literal> column to
constant <literal>FALSE</literal> (Richard Guo)
<ulink url="&commit_baseurl;78b1c553b">§</ulink>
</para>
<para>
This bug typically led to errors such as <quote>variable not found
in subplan target lists</quote>.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [5a4416192] 2024-10-09 17:07:53 -0400
Branch: REL_17_STABLE [a3c4a91f1] 2024-10-09 17:07:53 -0400
-->
<para>
Avoid possible planner crash while inlining a SQL function whose
arguments contain certain array-related constructs (Tom Lane, Nathan
Bossart)
<ulink url="&commit_baseurl;a3c4a91f1">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
Branch: master [dddb5640c] 2024-10-03 12:53:03 +0100
Branch: REL_17_STABLE [d7d297f84] 2024-10-03 12:50:38 +0100
Branch: master [259a0a99f] 2024-10-03 13:48:32 +0100
Branch: REL_17_STABLE [34ae54af9] 2024-10-03 13:45:37 +0100
-->
<para>
Fix possible wrong answers or <quote>wrong varnullingrels</quote>
planner errors for <literal>MERGE ... WHEN NOT MATCHED BY
SOURCE</literal> actions (Dean Rasheed)
<ulink url="&commit_baseurl;d7d297f84">§</ulink>
<ulink url="&commit_baseurl;34ae54af9">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [9f954177b] 2024-10-12 14:56:08 -0400
Branch: REL_17_STABLE [54889ea64] 2024-10-12 14:56:08 -0400
Branch: REL_16_STABLE [64635c8af] 2024-10-12 14:56:08 -0400
Branch: REL_15_STABLE [4f3bccbaa] 2024-10-12 14:56:08 -0400
Branch: REL_14_STABLE [4ca708eb3] 2024-10-12 14:56:08 -0400
Branch: REL_13_STABLE [76de4b182] 2024-10-12 14:56:08 -0400
-->
<para>
Fix possible <quote>could not find pathkey item to sort</quote>
error when the output of a <literal>UNION ALL</literal> member query
needs to be sorted, and the sort column is an expression (Andrei
Lepikhov, Tom Lane)
<ulink url="&commit_baseurl;54889ea64">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Peter Geoghegan <pg@bowt.ie>
Branch: master [763d65ae2] 2024-10-30 10:57:19 -0400
Branch: REL_17_STABLE [c177726ae] 2024-10-30 10:57:17 -0400
-->
<para>
Fix edge case in B-tree ScalarArrayOp index scans (Peter Geoghegan)
<ulink url="&commit_baseurl;c177726ae">§</ulink>
</para>
<para>
When a scrollable cursor with a plan of this kind was backed up to its
starting point and then run forward again, wrong answers were
possible.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [68ad9816c] 2024-10-21 15:08:22 -0400
Branch: REL_17_STABLE [3685ad618] 2024-10-21 15:08:22 -0400
Branch: REL_16_STABLE [6c3b2d204] 2024-10-21 15:08:22 -0400
Branch: REL_15_STABLE [c80a1e048] 2024-10-21 15:08:22 -0400
Branch: REL_14_STABLE [5e94f616c] 2024-10-21 15:08:22 -0400
Branch: REL_13_STABLE [beab395a4] 2024-10-21 15:08:22 -0400
Branch: REL_12_STABLE [6a57a457c] 2024-10-21 15:08:22 -0400
-->
<para>
Fix assertion failure or confusing error message for <literal>COPY
(<replaceable>query</replaceable>) TO ...</literal>, when
the <replaceable>query</replaceable> is rewritten by a <literal>DO
INSTEAD NOTIFY</literal> rule (Tender Wang, Tom Lane)
<ulink url="&commit_baseurl;3685ad618">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [089aac631] 2024-10-17 08:44:50 +0900
Branch: REL_17_STABLE [c06a4746b] 2024-10-17 08:45:56 +0900
-->
<para>
Fix validation
of <command>COPY</command>'s <literal>FORCE_NOT_NULL</literal>
and <literal>FORCE_NULL</literal> options (Joel Jacobson)
<ulink url="&commit_baseurl;c06a4746b">§</ulink>
</para>
<para>
Some incorrect usages are now rejected as they should be.
</para>
</listitem>
<listitem>
<!--
Author: Amit Langote <amitlan@postgresql.org>
Branch: master [11c87216d] 2024-10-20 12:20:55 +0900
Branch: REL_17_STABLE [7148cb3e3] 2024-10-20 12:21:12 +0900
Branch: REL_16_STABLE [fa4f11854] 2024-10-20 12:21:03 +0900
-->
<para>
Fix server crash when a <function>json_objectagg()</function> call
contains a volatile function (Amit Langote)
<ulink url="&commit_baseurl;7148cb3e3">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [98c7c7152] 2024-10-17 22:11:59 +1300
Branch: REL_17_STABLE [4ac5d33a8] 2024-10-17 22:10:29 +1300
Branch: REL_16_STABLE [53edc9485] 2024-10-17 22:08:13 +1300
Branch: REL_15_STABLE [1831545ca] 2024-10-17 22:04:05 +1300
Branch: REL_14_STABLE [20d948994] 2024-10-17 22:01:54 +1300
Branch: REL_13_STABLE [45329466f] 2024-10-17 22:00:38 +1300
Branch: REL_12_STABLE [4fa80a6d7] 2024-10-17 22:00:16 +1300
-->
<para>
Fix detection of skewed data during parallel hash join (Thomas
Munro)
<ulink url="&commit_baseurl;4ac5d33a8">§</ulink>
</para>
<para>
After repartitioning the inner side of a hash join because one
partition has accumulated too many tuples, we check to see if all
the partition's tuples went into the same child partition, which
suggests that they all have the same hash value and further
repartitioning cannot improve matters. This check malfunctioned in
some cases, allowing repeated futile repartitioning which would
eventually end in a resource-exhaustion error.
</para>
</listitem>
<listitem>
<!--
Author: Jeff Davis <jdavis@postgresql.org>
Branch: master [a9ed7d944] 2024-10-07 17:51:14 -0700
Branch: REL_17_STABLE [2fe4167bc] 2024-10-07 17:54:19 -0700
-->
<para>
Avoid crash when <command>ALTER DATABASE SET</command> is used to
set a server parameter that requires search-path-based lookup, such
as <varname>default_text_search_config</varname> (Jeff Davis)
<ulink url="&commit_baseurl;2fe4167bc">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [68dfecbef] 2024-10-05 14:46:44 -0400
Branch: REL_17_STABLE [fee8cb947] 2024-10-05 14:46:44 -0400
-->
<para>
Avoid repeated lookups of opclasses and collations while creating a
new index on a partitioned table (Tom Lane)
<ulink url="&commit_baseurl;fee8cb947">§</ulink>
</para>
<para>
This was problematic mainly because some of the lookups would be
done with a restricted <varname>search_path</varname>, leading to
unexpected failures if the <command>CREATE INDEX</command> command
referenced objects outside <literal>pg_catalog</literal>.
</para>
<para>
This fix also prevents comments on the parent partitioned index from
being copied to child indexes.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [49a23441c] 2024-10-29 08:41:33 +0900
Branch: REL_17_STABLE [bb584e831] 2024-10-29 08:41:53 +0900
-->
<para>
Add missing dependency from a partitioned table to a non-built-in
access method specified in <literal>CREATE TABLE ... USING</literal>
(Michael Paquier)
<ulink url="&commit_baseurl;bb584e831">§</ulink>
</para>
<para>
Dropping the access method should be blocked when a table exists
that depends on it, but it was not, allowing subsequent odd
behavior. Note that this fix only prevents problems for partitioned
tables created after this update.
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [adbb27ac8] 2024-10-05 13:50:02 +1300
Branch: REL_17_STABLE [9c7acc333] 2024-10-05 13:54:35 +1300
Branch: REL_16_STABLE [ce17de580] 2024-10-05 14:01:24 +1300
-->
<para>
Disallow locale names containing non-ASCII characters (Thomas Munro)
<ulink url="&commit_baseurl;9c7acc333">§</ulink>
</para>
<para>
This is only an issue on Windows, as such locale names are not used
elsewhere. They are problematic because it's quite unclear what
encoding such names are represented in (since the locale itself
defines the encoding to use). In
recent <productname>PostgreSQL</productname> releases, an abort in
the Windows runtime library could occur because of confusion about
that.
</para>
<para>
Anyone who encounters the new error message should either create a
new duplicated locale with an ASCII-only name using Windows Locale
Builder, or consider using BCP 47-compliant locale names
like <literal>tr-TR</literal>.
</para>
</listitem>
<listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Branch: master [1a43de5e0] 2024-10-21 09:49:21 +0300
Branch: REL_17_STABLE [234f6d09e] 2024-10-21 09:49:29 +0300
Branch: REL_16_STABLE [22665f210] 2024-10-21 09:49:32 +0300
Branch: REL_15_STABLE [d97419b85] 2024-10-21 09:49:35 +0300
Branch: REL_14_STABLE [520ec2474] 2024-10-21 09:49:38 +0300
Branch: REL_13_STABLE [8e607a5a4] 2024-10-21 09:49:41 +0300
Branch: REL_12_STABLE [e2ec3afeb] 2024-10-21 09:49:50 +0300
-->
<para>
Fix race condition in committing a serializable transaction (Heikki
Linnakangas)
<ulink url="&commit_baseurl;234f6d09e">§</ulink>
</para>
<para>
Mis-processing of a recently committed transaction could lead to an
assertion failure or a <quote>could not access status of
transaction</quote> error.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [cf4401fe6] 2024-10-01 15:44:03 +0900
Branch: REL_17_STABLE [f250cb29d] 2024-10-01 15:44:07 +0900
Branch: REL_16_STABLE [7de9b64a5] 2024-10-01 15:44:09 +0900
Branch: REL_15_STABLE [41ab45680] 2024-10-01 15:44:11 +0900
Branch: REL_14_STABLE [5f1510787] 2024-10-01 15:44:12 +0900
Branch: REL_13_STABLE [7bfaa4671] 2024-10-01 15:44:14 +0900
Branch: REL_12_STABLE [34d751ba7] 2024-10-01 15:44:15 +0900
-->
<para>
Fix race condition in <command>COMMIT PREPARED</command>
that resulted in orphaned 2PC files (wuchengwen)
<ulink url="&commit_baseurl;f250cb29d">§</ulink>
</para>
<para>
A concurrent <command>PREPARE TRANSACTION</command> could
cause <command>COMMIT PREPARED</command> to not remove the on-disk
two-phase state file for the completed transaction. There was no
immediate ill effect, but a subsequent crash-and-recovery could fail
with <quote>could not access status of transaction</quote>,
requiring manual removal of the orphaned file to restore service.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [09620ea09] 2024-09-27 09:40:09 +0900
Branch: REL_17_STABLE [1532599a8] 2024-09-27 09:40:14 +0900
Branch: REL_16_STABLE [afbd3dc7d] 2024-09-27 09:40:16 +0900
Branch: REL_15_STABLE [a613edc5c] 2024-09-27 09:40:18 +0900
Branch: REL_14_STABLE [6530b869c] 2024-09-27 09:40:19 +0900
Branch: REL_13_STABLE [911eda9f3] 2024-09-27 09:40:21 +0900
Branch: REL_12_STABLE [2f33e68a5] 2024-09-27 09:40:22 +0900
-->
<para>
Avoid invalid memory accesses after skipping an invalid toast index
during <command>VACUUM FULL</command> (Tender Wang)
<ulink url="&commit_baseurl;1532599a8">§</ulink>
</para>
<para>
A list tracking yet-to-be-rebuilt indexes was not properly updated
in this code path, risking assertion failures or crashes later on.
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [a07e03fd8] 2024-09-24 15:25:18 -0700
Branch: REL_17_STABLE [fd27b878c] 2024-09-24 15:25:21 -0700
Branch: REL_16_STABLE [63f019805] 2024-09-24 15:25:22 -0700
Branch: REL_15_STABLE [8590c942c] 2024-09-24 15:25:23 -0700
Branch: REL_14_STABLE [82c2d9e02] 2024-09-24 15:25:23 -0700
Branch: REL_13_STABLE [a8ad1929d] 2024-09-24 15:25:24 -0700
Branch: REL_12_STABLE [7354b680a] 2024-09-24 15:25:25 -0700
Branch: master [aac2c9b4f] 2024-09-24 15:25:18 -0700
Branch: REL_17_STABLE [3b7a689e1] 2024-09-24 15:25:22 -0700
Branch: REL_16_STABLE [51ff46de2] 2024-09-24 15:25:22 -0700
Branch: REL_15_STABLE [5c837f8fa] 2024-09-24 15:25:23 -0700
Branch: REL_14_STABLE [f51b34b3e] 2024-09-24 15:25:23 -0700
Branch: REL_13_STABLE [14c57cb63] 2024-09-24 15:25:24 -0700
Branch: REL_12_STABLE [cafcc3ad0] 2024-09-24 15:25:25 -0700
Branch: master [0d5a3d757] 2024-09-29 15:54:25 -0700
Branch: REL_17_STABLE [da99df15c] 2024-09-29 15:54:28 -0700
Branch: REL_16_STABLE [4c922821e] 2024-09-29 15:54:28 -0700
Branch: REL_15_STABLE [159bf0f31] 2024-09-29 15:54:29 -0700
Branch: REL_14_STABLE [b9ee1339b] 2024-09-29 15:54:29 -0700
Branch: REL_13_STABLE [db1992455] 2024-09-29 15:54:29 -0700
Branch: REL_12_STABLE [5a33a39a8] 2024-09-29 15:54:30 -0700
Branch: master [e947224cb] 2024-10-24 09:16:14 -0700
Branch: REL_17_STABLE [e11907682] 2024-10-24 09:16:17 -0700
Branch: REL_16_STABLE [2d63c964f] 2024-10-24 09:16:18 -0700
Branch: REL_15_STABLE [d34ffbaa1] 2024-10-24 09:16:18 -0700
Branch: REL_14_STABLE [ad24b7565] 2024-10-24 09:16:19 -0700
Branch: REL_13_STABLE [3e5ea478d] 2024-10-24 09:16:19 -0700
Branch: REL_12_STABLE [a0c0078b1] 2024-10-24 09:16:20 -0700
Branch: master [30d47ec8c] 2024-10-29 09:39:55 -0700
Branch: REL_17_STABLE [9aef6f19a] 2024-10-29 09:39:58 -0700
Branch: REL_16_STABLE [370bc7740] 2024-10-29 09:39:58 -0700
Branch: REL_15_STABLE [0fe002d0c] 2024-10-29 09:39:59 -0700
Branch: REL_14_STABLE [11e3f288f] 2024-10-29 09:39:59 -0700
Branch: REL_13_STABLE [2a912bc1a] 2024-10-29 09:40:00 -0700
Branch: REL_12_STABLE [c2139db11] 2024-10-29 09:40:00 -0700
Branch: master [b412f402d] 2024-11-02 09:04:55 -0700
Branch: REL_17_STABLE [0bcb9d079] 2024-11-02 09:05:00 -0700
Branch: REL_16_STABLE [6c837c237] 2024-11-02 09:05:02 -0700
Branch: REL_15_STABLE [6d5b4031b] 2024-11-02 09:05:04 -0700
Branch: REL_14_STABLE [bb3054297] 2024-11-02 09:05:05 -0700
Branch: REL_13_STABLE [6b01cac0b] 2024-11-02 09:05:07 -0700
Branch: REL_12_STABLE [d729f1ea5] 2024-11-02 09:05:08 -0700
Branch: master [825c72c07] 2024-11-02 19:42:52 -0700
Branch: REL_17_STABLE [54bc22fbf] 2024-11-02 19:42:55 -0700
Branch: REL_16_STABLE [f8f9110b4] 2024-11-02 19:42:56 -0700
Branch: REL_15_STABLE [d14e94ac4] 2024-11-02 19:42:56 -0700
Branch: REL_14_STABLE [803655e66] 2024-11-02 19:42:57 -0700
Branch: REL_13_STABLE [4dc0c933f] 2024-11-02 19:42:57 -0700
Branch: REL_12_STABLE [766809db3] 2024-11-02 19:42:58 -0700
-->
<para>
Fix ways in which an <quote>in place</quote> catalog update could be
lost (Noah Misch)
<ulink url="&commit_baseurl;fd27b878c">§</ulink>
<ulink url="&commit_baseurl;3b7a689e1">§</ulink>
<ulink url="&commit_baseurl;da99df15c">§</ulink>
<ulink url="&commit_baseurl;e11907682">§</ulink>
<ulink url="&commit_baseurl;9aef6f19a">§</ulink>
<ulink url="&commit_baseurl;0bcb9d079">§</ulink>
<ulink url="&commit_baseurl;54bc22fbf">§</ulink>
</para>
<para>
Normal row updates write a new version of the row to preserve
rollback-ability of the transaction. However, certain system
catalog updates are intentionally non-transactional and are done
with an in-place update of the row. These patches fix race
conditions that could cause the effects of an in-place update to be
lost. As an example, it was possible to forget having set
<structname>pg_class</structname>.<structfield>relhasindex</structfield>
to true, preventing updates of the new index and thus causing index
corruption.
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: REL_17_STABLE [a4668c99f] 2024-10-25 06:51:06 -0700
Branch: REL_16_STABLE [d36b4d8ec] 2024-10-25 06:51:06 -0700
Branch: REL_15_STABLE [3baf804b7] 2024-10-25 06:51:07 -0700
Branch: REL_14_STABLE [dca68242a] 2024-10-25 06:51:07 -0700
Branch: REL_13_STABLE [67f30c79a] 2024-10-25 06:51:08 -0700
Branch: REL_12_STABLE [da9950456] 2024-10-25 06:51:08 -0700
-->
<para>
Reset catalog caches at end of recovery (Noah Misch)
<ulink url="&commit_baseurl;a4668c99f">§</ulink>
</para>
<para>
This prevents scenarios wherein an in-place catalog update could be
lost due to using stale data from a catalog cache.
</para>
</listitem>
<listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
Branch: master [ac04aa84a] 2024-09-17 19:53:11 -0700
Branch: REL_17_STABLE Release: REL_17_0 [2370582ab] 2024-09-17 19:54:25 -0700
Branch: REL_16_STABLE [6f6521de9] 2024-09-17 19:54:25 -0700
Branch: REL_15_STABLE [884860bfc] 2024-09-17 19:54:26 -0700
Branch: REL_14_STABLE [5c698e898] 2024-09-17 19:54:26 -0700
Branch: REL_13_STABLE [916b8ae47] 2024-09-17 19:54:26 -0700
Branch: REL_12_STABLE [507b72bd9] 2024-09-17 19:54:26 -0700
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [b8df69049] 2024-11-08 13:42:10 -0500
Branch: REL_17_STABLE [943b65358] 2024-11-08 13:42:01 -0500
Branch: REL_16_STABLE [06424e9a2] 2024-11-08 13:42:01 -0500
Branch: REL_15_STABLE [bcbdb176e] 2024-11-08 13:42:01 -0500
Branch: REL_14_STABLE [989ccd26c] 2024-11-08 13:42:01 -0500
Branch: REL_13_STABLE [62685876f] 2024-11-08 13:42:01 -0500
Branch: REL_12_STABLE [6e39ca6e7] 2024-11-08 13:42:01 -0500
-->
<para>
Avoid using parallel query while holding off interrupts
(Francesco Degrassi, Noah Misch, Tom Lane)
<ulink url="&commit_baseurl;2370582ab">§</ulink>
<ulink url="&commit_baseurl;943b65358">§</ulink>
</para>
<para>
This situation cannot arise normally, but it can be reached with
test scenarios such as using a SQL-language function as B-tree
support (which would be far too slow for production usage). If it
did occur it would result in an indefinite wait.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [f8d9a9f21] 2024-10-06 16:03:48 -0400
Branch: REL_17_STABLE [3daeb539a] 2024-10-06 16:03:48 -0400
Branch: REL_16_STABLE [5de77b609] 2024-10-06 16:03:48 -0400
Branch: REL_15_STABLE [aef75219c] 2024-10-06 16:03:48 -0400
Branch: REL_14_STABLE [3922c9e9f] 2024-10-06 16:03:48 -0400
Branch: REL_13_STABLE [4a17acd0d] 2024-10-06 16:03:48 -0400
Branch: REL_12_STABLE [5c17f5a63] 2024-10-06 16:03:48 -0400
-->
<para>
Ignore not-yet-defined Portals in
the <structname>pg_cursors</structname> view (Tom Lane)
<ulink url="&commit_baseurl;3daeb539a">§</ulink>
</para>
<para>
It is possible for user-defined code that inspects this view to be
called while a new cursor is being set up, and if that happens a
null pointer dereference would ensue. Avoid the problem by defining
the view to exclude incompletely-set-up cursors.
</para>
</listitem>
<listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
Branch: master [022564f60] 2024-10-07 15:38:45 +0530
Branch: REL_17_STABLE [918107759] 2024-10-07 15:15:05 +0530
Branch: REL_16_STABLE [0f0e253db] 2024-10-07 15:04:05 +0530
Branch: REL_15_STABLE [8175a7d11] 2024-10-07 14:53:18 +0530
Branch: REL_14_STABLE [efe706e27] 2024-10-07 14:45:39 +0530
Branch: master [d759c1a0b] 2024-10-08 12:25:52 +0530
Branch: REL_17_STABLE [c4b8a916f] 2024-10-08 12:13:28 +0530
Branch: REL_16_STABLE [0c40d9019] 2024-10-08 12:01:35 +0530
Branch: REL_15_STABLE [5ce0dcc99] 2024-10-08 11:45:58 +0530
Branch: REL_14_STABLE [581092c90] 2024-10-08 11:30:26 +0530
-->
<para>
Avoid <quote>unexpected table_index_fetch_tuple call during logical
decoding</quote> error while decoding a transaction involving
insertion of a column default value (Takeshi Ideriha, Hou Zhijie)
<ulink url="&commit_baseurl;918107759">§</ulink>
<ulink url="&commit_baseurl;c4b8a916f">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
Branch: master [1b9b6cc34] 2024-10-16 12:08:05 -0700
Branch: REL_17_STABLE [eef9cc4dc] 2024-10-16 12:08:02 -0700
Branch: REL_16_STABLE [05e982cdc] 2024-10-16 12:08:00 -0700
Branch: REL_15_STABLE [4a675f318] 2024-10-16 12:07:58 -0700
Branch: REL_14_STABLE [5c1ed0a51] 2024-10-16 12:07:55 -0700
Branch: REL_13_STABLE [cb988b04d] 2024-10-16 12:07:52 -0700
Branch: REL_12_STABLE [53fa68b3b] 2024-10-16 12:07:50 -0700
-->
<para>
Reduce memory consumption of logical decoding (Masahiko Sawada)
<ulink url="&commit_baseurl;eef9cc4dc">§</ulink>
</para>
<para>
Use a smaller default block size to store tuple data received during
logical replication. This reduces memory wastage, which has been
reported to be severe while processing long-running transactions,
even leading to out-of-memory failures.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [c96de42c4] 2024-10-16 17:36:40 -0400
Branch: REL_17_STABLE [b5eef7539] 2024-10-16 17:36:29 -0400
Branch: REL_16_STABLE [25d639eea] 2024-10-16 17:36:29 -0400
Branch: REL_15_STABLE [b35231989] 2024-10-16 17:36:29 -0400
Branch: REL_14_STABLE [ab13c46ff] 2024-10-16 17:36:30 -0400
Branch: REL_13_STABLE [0d83ced3c] 2024-10-16 17:36:30 -0400
Branch: REL_12_STABLE [cf1443d67] 2024-10-16 17:36:30 -0400
-->
<para>
Fix behavior of stable functions called from
a <command>CALL</command> statement's argument list, when
the <command>CALL</command> is within a
PL/pgSQL <literal>EXCEPTION</literal> block (Tom Lane)
<ulink url="&commit_baseurl;b5eef7539">§</ulink>
</para>
<para>
As with a similar fix in our previous quarterly releases, this case
allowed such functions to be passed the wrong snapshot, causing them
to see stale values of rows modified since the start of the outer
transaction.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [920d51979] 2024-10-02 17:30:36 -0400
Branch: REL_17_STABLE [c7a201053] 2024-10-02 17:30:36 -0400
Branch: REL_16_STABLE [65f431aff] 2024-10-02 17:30:36 -0400
Branch: REL_15_STABLE [bb8c89dbc] 2024-10-02 17:30:36 -0400
Branch: REL_14_STABLE [e7af9b52f] 2024-10-02 17:30:36 -0400
Branch: REL_13_STABLE [2120eda94] 2024-10-02 17:30:36 -0400
Branch: REL_12_STABLE [47d8a15de] 2024-10-02 17:30:36 -0400
-->
<para>
Parse <application>libpq</application>'s <literal>keepalives</literal>
connection option in the same way as other integer-valued options
(Yuto Sasaki)
<ulink url="&commit_baseurl;c7a201053">§</ulink>
</para>
<para>
The coding used here rejected trailing whitespace in the option
value, unlike other cases. This turns out to be problematic
in <application>ecpg</application>'s usage, for example.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [a0bff38d1] 2024-10-23 08:33:54 +0900
Branch: REL_17_STABLE [2c37cb26f] 2024-10-23 08:35:00 +0900
Branch: REL_16_STABLE [a1e613b81] 2024-10-23 08:35:02 +0900
Branch: REL_15_STABLE [335501fb2] 2024-10-23 08:35:04 +0900
Branch: REL_14_STABLE [9a51d4af1] 2024-10-23 08:35:05 +0900
Branch: REL_13_STABLE [fcafbaadf] 2024-10-23 08:35:07 +0900
Branch: REL_12_STABLE [9ecfd8a48] 2024-10-23 08:35:08 +0900
-->
<para>
In <application>ecpglib</application>, fix out-of-bounds read when
parsing incorrect datetime input (Bruce Momjian, Pavel Nekrasov)
<ulink url="&commit_baseurl;2c37cb26f">§</ulink>
</para>
<para>
It was possible to try to read the location just before the start of
a constant array. Real-world consequences seem minimal, though.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [1591b38d1] 2024-09-24 17:21:38 -0400
Branch: REL_17_STABLE [923a71584] 2024-09-24 17:21:38 -0400
-->
<para>
Fix <application>psql</application>'s describe commands to again
work with pre-9.4 servers (Tom Lane)
<ulink url="&commit_baseurl;923a71584">§</ulink>
</para>
<para>
Commands involving display of an ACL (permissions) column failed
with very old <productname>PostgreSQL</productname> servers, due to
use of a function not present in those versions.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [9f34cae14] 2024-10-14 12:27:51 +0900
Branch: REL_17_STABLE [8a6170860] 2024-10-14 12:27:57 +0900
Branch: REL_16_STABLE [6331972c7] 2024-10-14 12:28:01 +0900
-->
<para>
Avoid hanging if an interval less than 1ms is specified
in <application>psql</application>'s <literal>\watch</literal>
command (Andrey Borodin, Michael Paquier)
<ulink url="&commit_baseurl;8a6170860">§</ulink>
</para>
<para>
Instead, treat this the same as an interval of zero (no wait between
executions).
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [b1008c1f0] 2024-11-04 14:36:11 -0500
Branch: REL_17_STABLE [e2a912909] 2024-11-04 14:36:04 -0500
-->
<para>
Fix failure to find replication password
in <filename>~/.pgpass</filename> (Tom Lane)
<ulink url="&commit_baseurl;e2a912909">§</ulink>
</para>
<para>
<application>pg_basebackup</application>
and <application>pg_receivewal</application> failed to match an entry
in <filename>~/.pgpass</filename> that
had <literal>replication</literal> in the database name field, if
no <option>-d</option> or <option>--dbname</option> switch was
supplied. This resulted in an unexpected prompt for password.
</para>
</listitem>
<listitem>
<!--
Author: Robert Haas <rhaas@postgresql.org>
Branch: master [0b1765d95] 2024-11-04 10:11:05 -0500
Branch: REL_17_STABLE [e36711442] 2024-11-04 10:19:37 -0500
-->
<para>
In <application>pg_combinebackup</application>, throw an error if an
incremental backup file is present in a directory that is supposed to
contain a full backup (Robert Haas)
<ulink url="&commit_baseurl;e36711442">§</ulink>
</para>
</listitem>
<listitem>
<!--
Author: Robert Haas <rhaas@postgresql.org>
Branch: master [6c24801b1] 2024-11-04 09:55:02 -0500
Branch: REL_17_STABLE [0d635b615] 2024-11-04 10:04:26 -0500
-->
<para>
In <application>pg_combinebackup</application>, don't construct
filenames containing double slashes (Robert Haas)
<ulink url="&commit_baseurl;0d635b615">§</ulink>
</para>
<para>
This caused no functional problems, but the duplicate slashes were
visible in error messages, which could create confusion.
</para>
</listitem>
<listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
Branch: master [1ab67c9df] 2024-09-25 14:43:16 +0900
Branch: REL_17_STABLE [85cb21df6] 2024-09-25 14:44:50 +0900
Branch: REL_16_STABLE [1ea4d9c00] 2024-09-25 14:44:53 +0900
Branch: REL_15_STABLE [74eaa0544] 2024-09-25 14:44:56 +0900
Branch: REL_14_STABLE [60c618216] 2024-09-25 14:44:57 +0900
Branch: REL_13_STABLE [9db4598c9] 2024-09-25 14:44:59 +0900
Branch: REL_12_STABLE [ef57a7135] 2024-09-25 14:45:01 +0900
Author: Fujii Masao <fujii@postgresql.org>
Branch: master [20cfec896] 2024-09-30 11:13:55 +0900
Branch: REL_17_STABLE [77f154681] 2024-09-30 11:15:56 +0900
Branch: REL_16_STABLE [653ce5b8b] 2024-09-30 11:16:15 +0900
Branch: REL_15_STABLE [92cc21d15] 2024-09-30 11:16:21 +0900
Branch: REL_14_STABLE [88e1153cb] 2024-09-30 11:16:27 +0900
Branch: REL_13_STABLE [9410f7cbf] 2024-09-30 11:17:23 +0900
Author: Nathan Bossart <nathan@postgresql.org>
Branch: master [8318f2b17] 2024-10-07 16:49:20 -0500
Branch: REL_17_STABLE [5bd26e652] 2024-10-07 16:49:20 -0500
Branch: REL_16_STABLE [eba8cc1af] 2024-10-07 16:49:20 -0500
Branch: REL_15_STABLE [6d047c6a9] 2024-10-07 16:49:20 -0500
Branch: REL_14_STABLE [ce6f27857] 2024-10-07 16:49:20 -0500
Branch: REL_13_STABLE [d4ade0baf] 2024-10-07 16:49:20 -0500
Branch: REL_12_STABLE [5e0431c32] 2024-10-07 16:49:20 -0500
-->
<para>
Avoid trying to reindex temporary tables and indexes
in <application>vacuumdb</application> and in
parallel <application>reindexdb</application> (VaibhaveS, Michael
Paquier, Fujii Masao, Nathan Bossart)
<ulink url="&commit_baseurl;85cb21df6">§</ulink>
<ulink url="&commit_baseurl;77f154681">§</ulink>
<ulink url="&commit_baseurl;5bd26e652">§</ulink>
</para>
<para>
Reindexing other sessions' temporary tables cannot work, but the
check to skip them was missing in some code paths, leading to
unwanted failures.
</para>
</listitem>
<listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
Branch: master [9044fc1d4] 2024-11-06 23:17:18 +1300
Branch: REL_17_STABLE [b7467ab71] 2024-11-06 23:07:34 +1300
Branch: REL_16_STABLE [ee67b73f5] 2024-11-06 23:09:03 +1300
Branch: REL_15_STABLE [19bf81c06] 2024-11-06 23:09:28 +1300
Branch: REL_14_STABLE [0b022ddf3] 2024-11-06 23:09:50 +1300
Branch: REL_13_STABLE [e88d824a4] 2024-11-06 23:10:05 +1300
Branch: REL_12_STABLE [50c1453a3] 2024-11-06 23:10:20 +1300
-->
<para>
Fix incorrect LLVM-generated code on ARM64 platforms (Thomas
Munro, Anthonin Bonnefoy)
<ulink url="&commit_baseurl;b7467ab71">§</ulink>
</para>
<para>
When using JIT compilation on ARM platforms, the generated code
could not support relocation distances exceeding 32 bits, allowing
unlucky placement of generated code to cause server crashes on
large-memory systems.
</para>
</listitem>
<listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
Branch: master [5d6187d2a] 2024-10-07 13:51:03 -0500
Branch: REL_17_STABLE [a356d23fd] 2024-10-07 13:51:03 -0500
Branch: REL_16_STABLE [8aaf88b63] 2024-10-07 13:51:03 -0500
Branch: REL_15_STABLE [01731eeea] 2024-10-07 13:51:03 -0500
Branch: REL_14_STABLE [5cea7168d] 2024-10-07 13:51:03 -0500
Branch: REL_13_STABLE [b255493ae] 2024-10-07 13:51:03 -0500
Branch: REL_12_STABLE [c91d0af0a] 2024-10-07 13:51:03 -0500
-->
<para>
Fix a few places that assumed that process start time (represented
as a <type>time_t</type>) will fit into a <type>long</type> value
(Max Johnson, Nathan Bossart)
<ulink url="&commit_baseurl;a356d23fd">§</ulink>
</para>
<para>
On platforms where <type>long</type> is 32 bits (notably Windows),
this coding would fail after Y2038. Most of the failures appear
only cosmetic, but notably <literal>pg_ctl start</literal> would
hang.
</para>
</listitem>
<listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
Branch: master [502e7bf7f] 2024-10-29 11:49:38 -0400
Branch: REL_17_STABLE [cad65907e] 2024-10-29 11:49:50 -0400
Branch: REL_16_STABLE [a0c8d600b] 2024-10-29 11:49:56 -0400
Branch: REL_15_STABLE [74f70cb86] 2024-10-29 11:50:00 -0400
Branch: REL_14_STABLE [dedced73e] 2024-10-29 11:50:05 -0400
Branch: REL_13_STABLE [8a8486175] 2024-10-29 11:50:10 -0400
Branch: REL_12_STABLE [8f1759c9b] 2024-10-29 11:50:14 -0400
Branch: master [b8ea0f675] 2024-09-14 17:55:02 -0400
Branch: REL_17_STABLE Release: REL_17_0 [6283ff201] 2024-09-14 17:55:02 -0400
Branch: REL_16_STABLE [2abc88958] 2024-09-14 17:55:03 -0400
Branch: REL_15_STABLE [2b94ee58b] 2024-09-14 17:55:03 -0400
Branch: REL_14_STABLE [b27622c90] 2024-09-14 17:55:03 -0400
Branch: REL_13_STABLE [b28b9b19b] 2024-09-14 17:55:03 -0400
Branch: REL_12_STABLE [205813da4] 2024-09-14 17:55:03 -0400
-->
<para>
Update time zone data files to <application>tzdata</application>
release 2024b (Tom Lane)
<ulink url="&commit_baseurl;cad65907e">§</ulink>
<ulink url="&commit_baseurl;6283ff201">§</ulink>
</para>
<para>
This <application>tzdata</application> release changes the old
System-V-compatibility zone names to duplicate the corresponding
geographic zones; for example <literal>PST8PDT</literal> is now an
alias for <literal>America/Los_Angeles</literal>. The main visible
consequence is that for timestamps before the introduction of
standardized time zones, the zone is considered to represent local
mean solar time for the named location. For example,
in <literal>PST8PDT</literal>, <type>timestamptz</type> input such
as <literal>1801-01-01 00:00</literal> would previously have been
rendered as <literal>1801-01-01 00:00:00-08</literal>, but now it is
rendered as <literal>1801-01-01 00:00:00-07:52:58</literal>.
</para>
<para>
Also, historical corrections for Mexico, Mongolia, and Portugal.
Notably, <literal>Asia/Choibalsan</literal> is now an alias
for <literal>Asia/Ulaanbaatar</literal> rather than being a separate
zone, mainly because the differences between those zones were found to
be based on untrustworthy data.
</para>
</listitem>
</itemizedlist>
</sect2>
</sect1>
<sect1 id="release-17">
<title>Release 17</title>
<formalpara>
<title>Release date:</title>
<para>2024-09-26</para>
</formalpara>
<sect2 id="release-17-highlights">
<title>Overview</title>
<para>
<productname>PostgreSQL</productname> 17 contains many new features
and enhancements, including:
</para>
<itemizedlist>
<listitem>
<para>
New memory management system for <command>VACUUM</command>, which reduces
memory consumption and can improve overall vacuuming performance.
</para>
</listitem>
<listitem>
<para>
New <acronym>SQL/JSON</acronym> capabilities, including constructors,
identity functions, and the <link
linkend="functions-sqljson-table"><function>JSON_TABLE()</function></link>
function, which converts JSON data into a table representation.
</para>
</listitem>
<listitem>
<para>
Various query performance improvements, including for sequential reads
using streaming I/O, write throughput under high concurrency, and
searches over multiple values in a <link linkend="btree">btree</link>
index.
</para>
</listitem>
<listitem>
<para>
Logical replication enhancements, including:
<itemizedlist>
<listitem>
<para>
Failover control
</para>
</listitem>
<listitem>
<para>
<link
linkend="app-pgcreatesubscriber"><application>pg_createsubscriber</application></link>,
a utility that creates logical replicas from physical standbys
</para>
</listitem>
<listitem>
<para>
<link
linkend="pgupgrade"><application>pg_upgrade</application></link> now
preserves logical replication slots on publishers and full
subscription state on subscribers. This will allow upgrades
to future major versions to continue logical replication without
requiring copy to resynchronize.
</para>
</listitem>
</itemizedlist>
</para>
</listitem>
<listitem>
<para>
New client-side connection option, <link
linkend="libpq-connect-sslnegotiation"><literal>sslnegotiation=direct</literal></link>,
that performs a direct TLS handshake to avoid a round-trip negotiation.
</para>
</listitem>
<listitem>
<para>
<link
linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
now supports incremental backup.
</para>
</listitem>
<listitem>
<para>
<link linkend="sql-copy"><command>COPY</command></link> adds a new option,
<literal>ON_ERROR ignore</literal>, that allows a copy operation to
continue in the event of an error.
</para>
</listitem>
</itemizedlist>
<para>
The above items and other new features of
<productname>PostgreSQL</productname> 17 are explained in more detail
in the sections below.
</para>
</sect2>
<sect2 id="release-17-migration">
<title>Migration to Version 17</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 17 contains a number of changes that may affect compatibility
with previous releases. Observe the following incompatibilities:
</para>
<itemizedlist>
<!--
Author: Jeff Davis <jdavis@postgresql.org>
2024-03-04 [2af07e2f7] Fix search_path to a safe value during maintenance opera
Author: Jeff Davis <jdavis@postgresql.org>
2024-07-16 [b4da732fd64] When creating materialized views, use REFRESH to load data.
-->
<listitem>
<para>
Change functions to use a safe <xref linkend="guc-search-path"/>
during maintenance operations (Jeff Davis)
<ulink url="&commit_baseurl;2af07e2f7">§</ulink>
<ulink url="&commit_baseurl;b4da732fd64">§</ulink>
</para>
<para>
This prevents maintenance operations (<command>ANALYZE</command>,
<command>CLUSTER</command>, <command>CREATE
INDEX</command>, <command>CREATE
MATERIALIZED VIEW</command>, <command>REFRESH
MATERIALIZED VIEW</command>, <command>REINDEX</command>,
or <command>VACUUM</command>) from performing unsafe access.
Functions used by expression indexes and materialized views that
need to reference non-default schemas must specify a search path
during function creation.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-08-28 [165d581f1] Tighten handling of "ago" in interval values
Author: Michael Paquier <michael@paquier.xyz>
2023-08-28 [617f9b7d4] Tighten unit parsing in internal values
-->
<listitem>
<para>
Restrict <literal>ago</literal> to only appear at the end in
<type>interval</type> values (Joseph Koshakow)
<ulink url="&commit_baseurl;165d581f1">§</ulink>
<ulink url="&commit_baseurl;617f9b7d4">§</ulink>
</para>
<para>
Also, prevent empty interval units from appearing multiple times.
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2023-09-05 [f691f5b80] Remove the "snapshot too old" feature.
-->
<listitem>
<para>
Remove server variable old_snapshot_threshold (Thomas Munro)
<ulink url="&commit_baseurl;f691f5b80">§</ulink>
</para>
<para>
This variable allowed vacuum to remove rows that potentially could
be still visible to running transactions, causing "snapshot too
old" errors later if accessed. This feature might be re-added
to <application>PostgreSQL</application> later if an improved
implementation is found.
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2023-07-13 [a0363ab7a] Fix privilege check for SET SESSION AUTHORIZATION.
-->
<listitem>
<para>
Change <link linkend="sql-set-session-authorization"><command>SET
SESSION AUTHORIZATION</command></link> handling of the initial
session user's superuser status (Joseph Koshakow)
<ulink url="&commit_baseurl;a0363ab7a">§</ulink>
</para>
<para>
The new behavior is based on the session user's superuser status at
the time the <command>SET SESSION AUTHORIZATION</command> command
is issued, rather than their superuser status at connection time.
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2023-07-17 [884eee5bf] Remove db_user_namespace.
-->
<listitem>
<para>
Remove feature which simulated per-database users (Nathan Bossart)
<ulink url="&commit_baseurl;884eee5bf">§</ulink>
</para>
<para>
The feature, <literal>db_user_namespace</literal>, was rarely used.
</para>
</listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2024-03-04 [cc09e6549] Remove the adminpack contrib extension
-->
<listitem>
<para>
Remove <application>adminpack</application> contrib extension
(Daniel Gustafsson)
<ulink url="&commit_baseurl;cc09e6549">§</ulink>
</para>
<para>
This was used by now end-of-life <productname>pgAdmin
III</productname>.
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2023-07-14 [d0c28601e] Remove wal_sync_method=fsync_writethrough on Windows.
-->
<listitem>
<para>
Remove <xref linkend="guc-wal-sync-method"/> value
<literal>fsync_writethrough</literal> on <systemitem
class="osname">Windows</systemitem> (Thomas Munro)
<ulink url="&commit_baseurl;d0c28601e">§</ulink>
</para>
<para>
This value was the same as <literal>fsync</literal> on <systemitem
class="osname">Windows</systemitem>.
</para>
</listitem>
<!--
Author: Bruce Momjian <bruce@momjian.us>
2023-11-24 [344afc776] modify segno. for pg_walfile_name() and pg_walfile_name_
-->
<listitem>
<para>
Change file boundary handling of two <acronym>WAL</acronym> file
name functions (Kyotaro Horiguchi, Andres Freund, Bruce Momjian)
<ulink url="&commit_baseurl;344afc776">§</ulink>
</para>
<para>
The functions <link
linkend="functions-admin-backup-table"><function>pg_walfile_name()</function></link>
and <function>pg_walfile_name_offset()</function> used to report
the previous <acronym>LSN</acronym> segment number when the
<acronym>LSN</acronym> was on a file segment boundary; it now
returns the current <acronym>LSN</acronym> segment.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-12-11 [c7a3e6b46] Remove trace_recovery_messages
-->
<listitem>
<para>
Remove server variable <literal>trace_recovery_messages</literal>
since it is no longer needed (Bharath Rupireddy)
<ulink url="&commit_baseurl;c7a3e6b46">§</ulink>
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2023-08-16 [78806a950] Remove incorrect field from information schema
-->
<listitem>
<para>
Remove <link
linkend="information-schema">information schema</link> column
<structname>element_types</structname>.<structfield>domain_default</structfield>
(Peter Eisentraut)
<ulink url="&commit_baseurl;78806a950">§</ulink>
</para>
</listitem>
<!--
Author: Bruce Momjian <bruce@momjian.us>
2023-09-26 [15d5d7405] pgrowlocks: change lock mode output labels for consiste
-->
<listitem>
<para>
Change <application><xref linkend="pgrowlocks"/></application>
lock mode output labels (Bruce Momjian)
<ulink url="&commit_baseurl;15d5d7405">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-10-27 [74604a37f] Remove buffers_backend and buffers_backend_fsync from pg
-->
<listitem>
<para>
Remove <structfield>buffers_backend</structfield> and
<structfield>buffers_backend_fsync</structfield> from <link
linkend="monitoring-pg-stat-bgwriter-view"><structname>pg_stat_bgwriter</structname></link>
(Bharath Rupireddy)
<ulink url="&commit_baseurl;74604a37f">§</ulink>
</para>
<para>
These fields are considered redundant to similar columns in <link
linkend="monitoring-pg-stat-io-view"><structname>pg_stat_io</structname></link>.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-10-19 [13d00729d] Rename I/O timing statistics columns to shared_blk_{read
-->
<listitem>
<para>
Rename I/O block read/write timing statistics columns of
<application><xref linkend="pgstatstatements"/></application>
(Nazir Bilal Yavuz)
<ulink url="&commit_baseurl;13d00729d">§</ulink>
</para>
<para>
This renames <structfield>blk_read_time</structfield>
to <structfield>shared_blk_read_time</structfield>,
and <structfield>blk_write_time</structfield> to
<structfield>shared_blk_write_time</structfield>.
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2024-01-13 [4f622503d] Make attstattarget nullable
Author: Peter Eisentraut <peter@eisentraut.org>
2024-03-17 [012460ee9] Make stxstattarget nullable
-->
<listitem>
<para>
Change <link
linkend="catalog-pg-attribute"><structname>pg_attribute</structname>.<structfield>attstattarget</structfield></link>
and
<structname>pg_statistic_ext</structname>.<structfield>stxstattarget</structfield>
to represent the default statistics target as <literal>NULL</literal>
(Peter Eisentraut)
<ulink url="&commit_baseurl;4f622503d">§</ulink>
<ulink url="&commit_baseurl;012460ee9">§</ulink>
</para>
</listitem>
<!--
Author: Jeff Davis <jdavis@postgresql.org>
2024-03-09 [f696c0cd5] Catalog changes preparing for builtin collation provider
-->
<listitem>
<para>
Rename <link
linkend="catalog-pg-collation"><structname>pg_collation</structname>.<structfield>colliculocale</structfield></link>
to <structfield>colllocale</structfield> and
<link linkend="catalog-pg-database"><structname>pg_database</structname>.<structfield>daticulocale</structfield></link>
to <structfield>datlocale</structfield> (Jeff Davis)
<ulink url="&commit_baseurl;f696c0cd5">§</ulink>
</para>
</listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
2024-04-02 [667e65aac] Use TidStore for dead tuple TIDs storage during lazy vac
Author: Masahiko Sawada <msawada@postgresql.org>
2024-06-14 [f1affb670] Reintroduce dead tuple counter in pg_stat_progress_vacuu
-->
<listitem>
<para>
Rename <link
linkend="vacuum-progress-reporting"><structname>pg_stat_progress_vacuum</structname></link>
column <structfield>max_dead_tuples</structfield>
to <structfield>max_dead_tuple_bytes</structfield>,
rename <structfield>num_dead_tuples</structfield> to
<structfield>num_dead_item_ids</structfield>, and add
<structfield>dead_tuple_bytes</structfield> (Masahiko Sawada)
<ulink url="&commit_baseurl;667e65aac">§</ulink>
<ulink url="&commit_baseurl;f1affb670">§</ulink>
</para>
</listitem>
<!--
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
2024-02-28 [bcdfa5f2e] Rename SLRU elements in view pg_stat_slru
-->
<listitem>
<para>
Rename <acronym>SLRU</acronym> columns in system view <link
linkend="monitoring-pg-stat-slru-view"><structname>pg_stat_slru</structname></link>
(Alvaro Herrera)
<ulink url="&commit_baseurl;bcdfa5f2e">§</ulink>
</para>
<para>
The column names accepted by <link
linkend="monitoring-stats-funcs-table"><function>pg_stat_reset_slru()</function></link>
are also changed.
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 id="release-17-changes">
<title>Changes</title>
<para>
Below you will find a detailed account of the changes between
<productname>PostgreSQL</productname> 17 and the previous major
release.
</para>
<sect3 id="release-17-server">
<title>Server</title>
<sect4 id="release-17-optimizer">
<title>Optimizer</title>
<itemizedlist>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2023-11-17 [f7816aec2] Extract column statistics from CTE references, if possib
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-03-26 [a65724dfa] Propagate pathkeys from CTEs up to the outer query.
-->
<listitem>
<para>
Allow the optimizer to improve <acronym>CTE</acronym> plans by
considering the statistics and sort order of columns referenced in earlier row
output clauses (Jian Guo, Richard Guo, Tom Lane)
<ulink url="&commit_baseurl;f7816aec2">§</ulink>
<ulink url="&commit_baseurl;a65724dfa">§</ulink>
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2024-01-23 [b262ad440] Add better handling of redundant IS [NOT] NULL quals
Author: David Rowley <drowley@postgresql.org>
2024-04-12 [3af704098] Fix IS [NOT] NULL qual optimization for inheritance tabl
-->
<listitem>
<para>
Improve optimization of <literal>IS NOT NULL</literal> and
<literal>IS NULL</literal> query restrictions (David Rowley,
Richard Guo, Andy Fan)
<ulink url="&commit_baseurl;b262ad440">§</ulink>
<ulink url="&commit_baseurl;3af704098">§</ulink>
</para>
<para>
Remove <literal>IS NOT NULL</literal> restrictions from queries on
<literal>NOT NULL</literal> columns and eliminate scans on
<literal>NOT NULL</literal> columns if <literal>IS NULL</literal>
is specified.
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2024-03-04 [07c36c133] Support partition pruning on boolcol IS [NOT] UNKNOWN
-->
<listitem>
<para>
Allow partition pruning on boolean columns on <literal>IS [NOT]
UNKNOWN</literal> conditionals (David Rowley)
<ulink url="&commit_baseurl;07c36c133">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-01-20 [075df6b20] Add planner support functions for range operators <@ and
-->
<listitem>
<para>
Improve optimization of range values when using containment
operators <@ and @> (Kim Johan Andersson, Jian He)
<ulink url="&commit_baseurl;075df6b20">§</ulink>
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-02-15 [9f1337639] Pull up ANY-SUBLINK with the necessary lateral support.
-->
<listitem>
<para>
Allow correlated <literal>IN</literal> subqueries to be transformed
into joins (Andy Fan, Tom Lane)
<ulink url="&commit_baseurl;9f1337639">§</ulink>
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2023-10-05 [a8a968a82] Consider cheap startup paths in add_paths_to_append_rel
-->
<listitem>
<para>
Improve optimization of the <literal>LIMIT</literal> clause
on partitioned tables, inheritance parents, and <literal>UNION
ALL</literal> queries (Andy Fan, David Rowley)
<ulink url="&commit_baseurl;a8a968a82">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2023-07-14 [e08d74ca1] Allow plan nodes with initPlans to be considered paralle
-->
<listitem>
<para>
Allow query nodes to be run in parallel in more cases (Tom Lane)
<ulink url="&commit_baseurl;e08d74ca1">§</ulink>
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-01-21 [0452b461b] Explore alternative orderings of group-by pathkeys durin
-->
<listitem>
<para>
Allow <literal>GROUP BY</literal> columns to be internally
ordered to match <literal>ORDER BY</literal> (Andrei Lepikhov,
Teodor Sigaev)
<ulink url="&commit_baseurl;0452b461b">§</ulink>
</para>
<para>
This can be disabled using server variable
<xref linkend="guc-enable-groupby-reordering"/>.
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2024-03-25 [66c0185a3] Allow planner to use Merge Append to efficiently impleme
-->
<listitem>
<para>
Allow <literal>UNION</literal> (without <literal>ALL</literal>)
to use MergeAppend (David Rowley)
<ulink url="&commit_baseurl;66c0185a3">§</ulink>
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2024-02-01 [9d1a5354f] Fix costing bug in MergeAppend
-->
<listitem>
<para>
Fix MergeAppend plans to more accurately compute the number of
rows that need to be sorted (Alexander Kuzmenkov)
<ulink url="&commit_baseurl;9d1a5354f">§</ulink>
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2023-07-04 [625d5b3ca] Allow Incremental Sorts on GiST and SP-GiST indexes
-->
<listitem>
<para>
Allow <link linkend="gist">GiST</link> and <link
linkend="spgist">SP-GiST</link> indexes to be part of incremental
sorts (Miroslav Bendik)
<ulink url="&commit_baseurl;625d5b3ca">§</ulink>
</para>
<para>
This is particularly useful for <literal>ORDER BY</literal>
clauses where the first column has a GiST and SP-GiST index,
and other columns do not.
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2023-11-27 [bc3c8db8a] Display length and bounds histograms in pg_stats
-->
<listitem>
<para>
Add columns to <link
linkend="view-pg-stats"><structname>pg_stats</structname></link>
to report range-type histogram information (Egor Rogov, Soumyadeep
Chakraborty)
<ulink url="&commit_baseurl;bc3c8db8a">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4 id="release-17-indexes">
<title>Indexes</title>
<itemizedlist>
<!--
Author: Peter Geoghegan <pg@bowt.ie>
2024-04-06 [5bf748b86] Enhance nbtree ScalarArrayOp execution.
-->
<listitem>
<para>
Allow <link linkend="btree">btree</link> indexes to more
efficiently find a set of values, such as those supplied by
<literal>IN</literal> clauses using constants (Peter Geoghegan,
Matthias van de Meent)
<ulink url="&commit_baseurl;5bf748b86">§</ulink>
</para>
</listitem>
<!--
Author: Tomas Vondra <tomas.vondra@postgresql.org>
2023-12-08 [b43757171] Allow parallel CREATE INDEX for BRIN indexes
-->
<listitem>
<para>
Allow <link linkend="brin"><acronym>BRIN</acronym></link> indexes
to be created using parallel workers (Tomas Vondra, Matthias van
de Meent)
<ulink url="&commit_baseurl;b43757171">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4 id="release-17-performance">
<title>General Performance</title>
<itemizedlist>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-04-03 [6dbb49026] Combine freezing and pruning steps in VACUUM
-->
<listitem>
<para>
Allow vacuum to more efficiently remove and freeze tuples (Melanie
Plageman, Heikki Linnakangas)
<ulink url="&commit_baseurl;6dbb49026">§</ulink>
</para>
<para>
<acronym>WAL</acronym> traffic caused by vacuum is also more
compact.
</para>
</listitem>
<!--
Author: John Naylor <john.naylor@postgresql.org>
2024-03-07 [ee1b30f12] Add template for adaptive radix tree
Author: Masahiko Sawada <msawada@postgresql.org>
2024-03-21 [30e144287] Add TIDStore, to store sets of TIDs (ItemPointerData) ef
Author: Masahiko Sawada <msawada@postgresql.org>
2024-04-02 [667e65aac] Use TidStore for dead tuple TIDs storage during lazy vac
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-04-03 [6dbb49026] Combine freezing and pruning steps in VACUUM
-->
<listitem>
<para>
Allow vacuum to more efficiently store tuple references (Masahiko
Sawada, John Naylor)
<ulink url="&commit_baseurl;ee1b30f12">§</ulink>
<ulink url="&commit_baseurl;30e144287">§</ulink>
<ulink url="&commit_baseurl;667e65aac">§</ulink>
<ulink url="&commit_baseurl;6dbb49026">§</ulink>
</para>
<para>
Additionally, vacuum is no longer silently limited to one gigabyte
of memory when <xref linkend="guc-maintenance-work-mem"/> or <xref
linkend="guc-autovacuum-work-mem"/> are higher.
</para>
</listitem>
<!--
Author: Robert Haas <rhaas@postgresql.org>
2024-01-18 [c120550ed] Optimize vacuuming of relations with no indexes.
-->
<listitem>
<para>
Optimize vacuuming of relations with no indexes (Melanie Plageman)
<ulink url="&commit_baseurl;c120550ed">§</ulink>
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2024-04-06 [98f320eb2] Increase default vacuum_buffer_usage_limit to 2MB.
-->
<listitem>
<para>
Increase default <xref linkend="guc-vacuum-buffer-usage-limit"/>
to 2MB (Thomas Munro)
<ulink url="&commit_baseurl;98f320eb2">§</ulink>
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-03-26 [d365ae705] Optimize roles_is_member_of() with a Bloom filter.
-->
<listitem>
<para>
Improve performance when checking roles with many memberships
(Nathan Bossart)
<ulink url="&commit_baseurl;d365ae705">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-07-25 [71e4cc6b8] Optimize WAL insertion lock acquisition and release with
-->
<listitem>
<para>
Improve performance of heavily-contended <acronym>WAL</acronym>
writes (Bharath Rupireddy)
<ulink url="&commit_baseurl;71e4cc6b8">§</ulink>
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2024-04-07 [c4ab7da60] Avoid needless large memcpys in libpq socket writing
-->
<listitem>
<para>
Improve performance when transferring large blocks of data to a
client (Melih Mutlu)
<ulink url="&commit_baseurl;c4ab7da60">§</ulink>
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2024-04-03 [210622c60] Provide vectored variant of ReadBuffer().
Author: Thomas Munro <tmunro@postgresql.org>
2024-04-08 [b7b0f3f27] Use streaming I/O in sequential scans.
Author: Thomas Munro <tmunro@postgresql.org>
2024-04-08 [041b96802] Use streaming I/O in ANALYZE.
-->
<listitem>
<para>
Allow the grouping of file system reads with the new system variable
<xref linkend="guc-io-combine-limit"/> (Thomas Munro, Andres Freund,
Melanie Plageman, Nazir Bilal Yavuz)
<ulink url="&commit_baseurl;210622c60">§</ulink>
<ulink url="&commit_baseurl;b7b0f3f27">§</ulink>
<ulink url="&commit_baseurl;041b96802">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4 id="release-17-monitoring">
<title>Monitoring</title>
<itemizedlist>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-10-30 [96f052613] Introduce pg_stat_checkpointer
Author: Alexander Korotkov <akorotkov@postgresql.org>
2023-12-25 [12915a58e] Enhance checkpointer restartpoint statistics
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-03-14 [e820db5b5] Improve documentation for pg_stat_checkpointer fields
-->
<listitem>
<para>
Create system view <link
linkend="monitoring-pg-stat-checkpointer-view"><structname>pg_stat_checkpointer</structname></link>
(Bharath Rupireddy, Anton A. Melnikov, Alexander Korotkov)
<ulink url="&commit_baseurl;96f052613">§</ulink>
<ulink url="&commit_baseurl;12915a58e">§</ulink>
<ulink url="&commit_baseurl;e820db5b5">§</ulink>
</para>
<para>
Relevant columns have been removed from <link
linkend="pg-stat-bgwriter-view"><structname>pg_stat_bgwriter</structname></link>
and added to this new system view.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-11-12 [23c8c0c8f] Add ability to reset all shared stats types in pg_stat_r
Author: Michael Paquier <michael@paquier.xyz>
2023-11-16 [2e8a0edc2] Add target "slru" to pg_stat_reset_shared()
Author: Michael Paquier <michael@paquier.xyz>
2023-11-14 [e5cca6288] Add support for pg_stat_reset_slru without argument
-->
<listitem>
<para>
Improve control over resetting statistics (Atsushi Torikoshi,
Bharath Rupireddy)
<ulink url="&commit_baseurl;23c8c0c8f">§</ulink>
<ulink url="&commit_baseurl;2e8a0edc2">§</ulink>
<ulink url="&commit_baseurl;e5cca6288">§</ulink>
</para>
<para>
Allow <link
linkend="monitoring-stats-funcs-table"><function>pg_stat_reset_shared()</function></link>
(with no arguments) and
pg_stat_reset_shared(<literal>NULL</literal>) to reset all
shared statistics. Allow pg_stat_reset_shared('slru') and <link
linkend="monitoring-stats-funcs-table"><function>pg_stat_reset_slru()</function></link>
(with no arguments) to reset <acronym>SLRU</acronym> statistics,
which was already possible with pg_stat_reset_slru(NULL).
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2024-01-25 [1d35f705e] Add more LOG messages when starting and ending recovery
-->
<listitem>
<para>
Add log messages related to <acronym>WAL</acronym> recovery from
backups (Andres Freund)
<ulink url="&commit_baseurl;1d35f705e">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-08-26 [e48b19c5d] Generate new LOG for "trust" connections under log_conne
-->
<listitem>
<para>
Add <xref linkend="guc-log-connections"/> log line for
<literal>trust</literal> connections (Jacob Champion)
<ulink url="&commit_baseurl;e48b19c5d">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2023-11-21 [7c3fb505b] Log messages for replication slot acquisition and releas
-->
<listitem>
<para>
Add log message to report walsender acquisition and release of
replication slots (Bharath Rupireddy)
<ulink url="&commit_baseurl;7c3fb505b">§</ulink>
</para>
<para>
This is enabled by the server variable <xref
linkend="guc-log-replication-commands"/>.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-08-20 [1e68e43d3] Add system view pg_wait_events
-->
<listitem>
<para>
Add system view <link
linkend="view-pg-wait-events"><structname>pg_wait_events</structname></link>
that reports wait event types (Bertrand Drouvot)
<ulink url="&commit_baseurl;1e68e43d3">§</ulink>
</para>
<para>
This is useful for adding descriptions
to wait events reported in <link
linkend="monitoring-pg-stat-activity-view"><structname>pg_stat_activity</structname></link>.
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2023-10-13 [0013ba290] Add wait events for checkpoint delay mechanism.
-->
<listitem>
<para>
Add <link linkend="view-pg-wait-events">wait events</link> for
checkpoint delays (Thomas Munro)
<ulink url="&commit_baseurl;0013ba290">§</ulink>
</para>
</listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
2023-07-11 [46ebdfe16] Report index vacuum progress.
-->
<listitem>
<para>
Allow vacuum to report the progress of index processing (Sami
Imseih)
<ulink url="&commit_baseurl;46ebdfe16">§</ulink>
</para>
<para>
This appears in system view <link
linkend="pg-stat-progress-vacuum-view"><structname>pg_stat_progress_vacuum</structname></link>
columns <structfield>indexes_total</structfield> and
<structfield>indexes_processed</structfield>.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4 id="release-17-privileges">
<title>Privileges</title>
<itemizedlist>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-03-13 [ecb0fd337] Reintroduce MAINTAIN privilege and pg_maintain predefine
-->
<listitem>
<para>
Allow granting the right to perform maintenance operations
(Nathan Bossart)
<ulink url="&commit_baseurl;ecb0fd337">§</ulink>
</para>
<para>
The permission can be granted on a per-table basis using the <link
linkend="ddl-priv-maintain"><literal>MAINTAIN</literal></link>
privilege and on a per-role basis via the <link
linkend="predefined-roles"><literal>pg_maintain</literal></link>
predefined role. Permitted operations are
<command>VACUUM</command>, <command>ANALYZE</command>,
<command>REINDEX</command>, <command>REFRESH MATERIALIZED
VIEW</command>, <command>CLUSTER</command>, and <command>LOCK
TABLE</command>.
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-02-14 [8d8afd48d] Allow pg_monitor to execute pg_current_logfile().
-->
<listitem>
<para>
Allow roles with <link
linkend="predefined-roles"><literal>pg_monitor</literal></link>
membership to execute <link
linkend="functions-info-session-table"><function>pg_current_logfile()</function></link>
(Pavlo Golub, Nathan Bossart)
<ulink url="&commit_baseurl;8d8afd48d">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4 id="release-17-server-config">
<title>Server Configuration</title>
<itemizedlist>
<!--
Author: Robert Haas <rhaas@postgresql.org>
2024-03-29 [d3ae2a24f] Add allow_alter_system GUC.
-->
<listitem>
<para>
Add system variable <xref linkend="guc-allow-alter-system"/>
to disallow <link linkend="sql-altersystem"><command>ALTER
SYSTEM</command></link> (Jelte Fennema-Nio, Gabriele Bartolini)
<ulink url="&commit_baseurl;d3ae2a24f">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2023-10-21 [2d870b4ae] Allow ALTER SYSTEM to set unrecognized custom GUCs.
-->
<listitem>
<para>
Allow <link linkend="sql-altersystem"><command>ALTER
SYSTEM</command></link> to set unrecognized custom server variables
(Tom Lane)
<ulink url="&commit_baseurl;2d870b4ae">§</ulink>
</para>
<para>
This is also possible with <link linkend="sql-grant"><literal>GRANT
ON PARAMETER</literal></link>.
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-02-15 [51efe38cb] Introduce transaction_timeout
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-02-16 [bf82f4379] Followup fixes for transaction_timeout
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-02-25 [28e858c0f] Improve documentation and GUC description for transactio
-->
<listitem>
<para>
Add server variable <xref linkend="guc-transaction-timeout"/> to
restrict the duration of transactions (Andrey Borodin, Japin Li,
Junwang Zhao, Alexander Korotkov)
<ulink url="&commit_baseurl;51efe38cb">§</ulink>
<ulink url="&commit_baseurl;bf82f4379">§</ulink>
<ulink url="&commit_baseurl;28e858c0f">§</ulink>
</para>
</listitem>
<!--
Author: Jeff Davis <jdavis@postgresql.org>
2024-03-13 [2d819a08a] Introduce "builtin" collation provider.
Author: Jeff Davis <jdavis@postgresql.org>
2024-03-18 [846311051] Address more review comments on commit 2d819a08a1.
Author: Jeff Davis <jdavis@postgresql.org>
2024-03-19 [f69319f2f] Support C.UTF-8 locale in the new builtin collation prov
Author: Jeff Davis <jdavis@postgresql.org>
2024-03-20 [9acae56ce] Inline basic UTF-8 functions.
-->
<listitem>
<para>
Add a builtin platform-independent collation provider (Jeff Davis)
<ulink url="&commit_baseurl;2d819a08a">§</ulink>
<ulink url="&commit_baseurl;846311051">§</ulink>
<ulink url="&commit_baseurl;f69319f2f">§</ulink>
<ulink url="&commit_baseurl;9acae56ce">§</ulink>
</para>
<para>
This supports <literal>C</literal> and <literal>C.UTF-8</literal>
collations.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-07-06 [a14354cac] Add GUC parameter "huge_pages_status"
-->
<listitem>
<para>
Add server variable <xref linkend="guc-huge-pages-status"/> to
report the use of huge pages by Postgres (Justin Pryzby)
<ulink url="&commit_baseurl;a14354cac">§</ulink>
</para>
<para>
This is useful when <xref linkend="guc-huge-pages"/> is set to
<literal>try</literal>.
</para>
</listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2023-09-25 [7750fefdb] Add GUC for temporarily disabling event triggers
-->
<listitem>
<para>
Add server variable to disable event triggers (Daniel Gustafsson)
<ulink url="&commit_baseurl;7750fefdb">§</ulink>
</para>
<para>
The setting, <xref linkend="guc-event-triggers"/>, allows for the
temporary disabling of event triggers for debugging.
</para>
</listitem>
<!--
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
2024-02-28 [53c2a97a9] Improve performance of subsystems on top of SLRU
-->
<listitem>
<para>
Allow the <link
linkend="monitoring-pg-stat-slru-view"><acronym>SLRU</acronym></link>
cache sizes to be configured (Andrey Borodin, Dilip Kumar,
Alvaro Herrera)
<ulink url="&commit_baseurl;53c2a97a9">§</ulink>
</para>
<para>
The new server variables are <xref
linkend="guc-commit-timestamp-buffers"/>,
<xref linkend="guc-multixact-member-buffers"/>,
<xref linkend="guc-multixact-offset-buffers"/>,
<xref linkend="guc-notify-buffers"/>, <xref
linkend="guc-serializable-buffers"/>, <xref
linkend="guc-subtransaction-buffers"/>, and
<xref linkend="guc-transaction-buffers"/>. <xref
linkend="guc-commit-timestamp-buffers"/>, <xref
linkend="guc-transaction-buffers"/>, and <xref
linkend="guc-subtransaction-buffers"/> scale up automatically with
<xref linkend="guc-shared-buffers"/>.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4 id="release-17-replication">
<title>Streaming Replication and Recovery</title>
<itemizedlist>
<!--
Author: Robert Haas <rhaas@postgresql.org>
2023-12-20 [dc2123400] Add support for incremental backup.
Author: Tomas Vondra <tomas.vondra@postgresql.org>
2024-04-05 [f8ce4ed78] Allow copying files using clone/copy_file_range
-->
<listitem>
<para>
Add support for incremental file system backup (Robert Haas,
Jakub Wartak, Tomas Vondra)
<ulink url="&commit_baseurl;dc2123400">§</ulink>
<ulink url="&commit_baseurl;f8ce4ed78">§</ulink>
</para>
<para>
Incremental backups can be created using <link
linkend="app-pgbasebackup"><application>pg_basebackup</application></link>'s
new <option>--incremental</option>
option. The new application <link
linkend="app-pgcombinebackup"><application>pg_combinebackup</application></link>
allows manipulation of base and incremental file system backups.
</para>
</listitem>
<!--
Author: Robert Haas <rhaas@postgresql.org>
2023-12-20 [174c48050] Add a new WAL summarizer process.
Author: Nathan Bossart <nathan@postgresql.org>
2024-01-09 [d97ef756a] Fix documentation for wal_summary_keep_time.
Author: Robert Haas <rhaas@postgresql.org>
2024-01-09 [f896057e4] Document WAL summarization information functions.
Author: Robert Haas <rhaas@postgresql.org>
2024-01-11 [d9ef650fc] Add new function pg_get_wal_summarizer_state().
-->
<listitem>
<para>
Allow the creation of <acronym>WAL</acronym> summarization files
(Robert Haas, Nathan Bossart, Hubert Depesz Lubaczewski)
<ulink url="&commit_baseurl;174c48050">§</ulink>
<ulink url="&commit_baseurl;d97ef756a">§</ulink>
<ulink url="&commit_baseurl;f896057e4">§</ulink>
<ulink url="&commit_baseurl;d9ef650fc">§</ulink>
</para>
<para>
These files record the block numbers that have changed within an
<link linkend="datatype-pg-lsn"><acronym>LSN</acronym></link>
range and are useful for incremental file
system backups. This is controlled by the server
variables <xref linkend="guc-summarize-wal"/> and <xref
linkend="guc-wal-summary-keep-time"/>, and introspected with <link
linkend="functions-wal-summary"><function>pg_available_wal_summaries()</function></link>,
<function>pg_wal_summary_contents()</function>, and
<function>pg_get_wal_summarizer_state()</function>.
</para>
</listitem>
<!--
Author: Robert Haas <rhaas@postgresql.org>
2024-03-13 [2041bc427] Add the system identifier to backup manifests.
-->
<listitem>
<para>
Add the system identifier to file system <link
linkend="backup-manifest-format">backup manifest</link> files
(Amul Sul)
<ulink url="&commit_baseurl;2041bc427">§</ulink>
</para>
<para>
This helps detect invalid <acronym>WAL</acronym> usage.
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-03-21 [a145f424d] Allow dbname to be written as part of connstring via pg_
-->
<listitem>
<para>
Allow connection string value
<literal>dbname</literal> to be written when <link
linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
writes connection information to
<filename>postgresql.auto.conf</filename> (Vignesh C, Hayato Kuroda)
<ulink url="&commit_baseurl;a145f424d">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-01-04 [007693f2a] Track conflict_reason in pg_replication_slots.
Author: Amit Kapila <akapila@postgresql.org>
2024-03-22 [6ae701b43] Track invalidation_reason in pg_replication_slots.
-->
<listitem>
<para>
Add column <link
linkend="view-pg-replication-slots"><structname>pg_replication_slots</structname>.<structfield>invalidation_reason</structfield></link>
to report the reason for invalid slots (Shveta Malik, Bharath
Rupireddy)
<ulink url="&commit_baseurl;007693f2a">§</ulink>
<ulink url="&commit_baseurl;6ae701b43">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-03-25 [a11f330b5] Track last_inactive_time in pg_replication_slots.
Author: Amit Kapila <akapila@postgresql.org>
2024-03-27 [6d49c8d4b] Change last_inactive_time to inactive_since in pg_replic
Author: Amit Kapila <akapila@postgresql.org>
2024-04-05 [6f132ed69] Allow synced slots to have their inactive_since.
-->
<listitem>
<para>
Add column <link
linkend="view-pg-replication-slots"><structname>pg_replication_slots</structname>.<structfield>inactive_since</structfield></link>
to report slot inactivity duration (Bharath Rupireddy)
<ulink url="&commit_baseurl;a11f330b5">§</ulink>
<ulink url="&commit_baseurl;6d49c8d4b">§</ulink>
<ulink url="&commit_baseurl;6f132ed69">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-02-14 [ddd5f4f54] Add a slot synchronization function.
Author: Amit Kapila <akapila@postgresql.org>
2024-02-16 [7a424ece4] Add more LOG and DEBUG messages for slot synchronization
-->
<listitem>
<para>
Add function <link
linkend="functions-replication-table"><function>pg_sync_replication_slots()</function></link>
to synchronize logical replication slots (Hou Zhijie, Shveta Malik,
Ajin Cherian, Peter Eisentraut)
<ulink url="&commit_baseurl;ddd5f4f54">§</ulink>
<ulink url="&commit_baseurl;7a424ece4">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-01-29 [732924043] Allow setting failover property in the replication comma
-->
<listitem>
<para>
Add the <literal>failover</literal> property to the <link
linkend="protocol-replication">replication protocol</link> (Hou
Zhijie, Shveta Malik)
<ulink url="&commit_baseurl;732924043">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4 id="release-17-logical">
<title><link linkend="logical-replication">Logical Replication</link></title>
<itemizedlist>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2024-03-25 [d44032d01] pg_createsubscriber: creates a new logical replica from
-->
<listitem>
<para>
Add application <link
linkend="app-pgcreatesubscriber"><application>pg_createsubscriber</application></link>
to create a logical replica from a physical standby server
(Euler Taveira)
<ulink url="&commit_baseurl;d44032d01">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2023-10-26 [29d0a77fa] Migrate logical slots to the new node during an upgrade.
Author: Amit Kapila <akapila@postgresql.org>
2024-01-02 [9a17be1e2] Allow upgrades to preserve the full subscription's state
-->
<listitem>
<para>
Have <link
linkend="pgupgrade"><application>pg_upgrade</application></link>
migrate valid logical slots and subscriptions (Hayato Kuroda,
Hou Zhijie, Vignesh C, Julien Rouhaud, Shlok Kyal)
<ulink url="&commit_baseurl;29d0a77fa">§</ulink>
<ulink url="&commit_baseurl;9a17be1e2">§</ulink>
</para>
<para>
This allows logical replication to continue
quickly after the upgrade. This only works for old
<productname>PostgreSQL</productname> clusters that are version
17 or later.
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-01-25 [c393308b6] Allow to enable failover property for replication slots
-->
<listitem>
<para>
Enable the failover of <link
linkend="logical-replication-subscription-slot">logical slots</link>
(Hou Zhijie, Shveta Malik, Ajin Cherian)
<ulink url="&commit_baseurl;c393308b6">§</ulink>
</para>
<para>
This is controlled by an optional fifth argument to <link
linkend="functions-replication-table"><function>pg_create_logical_replication_slot()</function></link>.
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-02-22 [93db6cbda] Add a new slot sync worker to synchronize logical slots
Author: Amit Kapila <akapila@postgresql.org>
2024-03-06 [60c07820d] Doc: Improve replication slot synchronization section.
-->
<listitem>
<para>
Add server variable <xref linkend="guc-sync-replication-slots"/>
to enable failover logical slot synchronization (Shveta Malik,
Hou Zhijie, Peter Smith)
<ulink url="&commit_baseurl;93db6cbda">§</ulink>
<ulink url="&commit_baseurl;60c07820d">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-01-30 [776621a5e] Add a failover option to subscriptions.
Author: Amit Kapila <akapila@postgresql.org>
2024-02-07 [22f7e61a6] Clean-ups for 776621a5e4 and 7329240437.
-->
<listitem>
<para>
Add logical replication failover control to <link
linkend="sql-createsubscription"><literal>CREATE/ALTER
SUBSCRIPTION</literal></link> (Shveta Malik, Hou Zhijie, Ajin
Cherian)
<ulink url="&commit_baseurl;776621a5e">§</ulink>
<ulink url="&commit_baseurl;22f7e61a6">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2023-07-14 [edca34243] Allow the use of a hash index on the subscriber during r
-->
<listitem>
<para>
Allow the application of logical replication changes to use
<link linkend="hash-index">hash</link> indexes on the subscriber
(Hayato Kuroda)
<ulink url="&commit_baseurl;edca34243">§</ulink>
</para>
<para>
Previously only <link linkend="btree">btree</link> indexes could
be used for this purpose.
</para>
</listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
2024-04-03 [5bec1d6bc] Improve eviction algorithm in ReorderBuffer using max-he
-->
<listitem>
<para>
Improve <link linkend="logicaldecoding">logical decoding</link>
performance in cases where there are many subtransactions
(Masahiko Sawada)
<ulink url="&commit_baseurl;5bec1d6bc">§</ulink>
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2023-10-17 [79243de13] Restart the apply worker if the privileges have been rev
-->
<listitem>
<para>
Restart apply workers if subscription owner's superuser privileges
are revoked (Vignesh C)
<ulink url="&commit_baseurl;79243de13">§</ulink>
</para>
<para>
This forces reauthentication.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-10-18 [173b56f1e] Add flush option to pg_logical_emit_message()
-->
<listitem>
<para>
Add <literal>flush</literal> option to <link
linkend="functions-replication-table"><function>pg_logical_emit_message()</function></link>
(Michael Paquier)
<ulink url="&commit_baseurl;173b56f1e">§</ulink>
</para>
<para>
This makes the message durable.
</para>
</listitem>
<!--
Author: Amit Kapila <akapila@postgresql.org>
2024-03-08 [bf279ddd1] Introduce a new GUC 'standby_slot_names'.
Author: Amit Kapila <akapila@postgresql.org>
2024-07-01 [0f934b073] Rename standby_slot_names to synchronized_standby_slots.
-->
<listitem>
<para>
Allow specification of physical standbys that must be synchronized
before they are visible to subscribers (Hou Zhijie, Shveta Malik)
<ulink url="&commit_baseurl;bf279ddd1">§</ulink>
<ulink url="&commit_baseurl;0f934b073">§</ulink>
</para>
<para>
The new server variable is <xref linkend="guc-synchronized-standby-slots"/>.
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2023-09-25 [13aeaf079] Add worker type to pg_stat_subscription.
-->
<listitem>
<para>
Add worker type column to <link
linkend="monitoring-pg-stat-subscription"><structname>pg_stat_subscription</structname></link>
(Peter Smith)
<ulink url="&commit_baseurl;13aeaf079">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3 id="release-17-utility">
<title>Utility Commands</title>
<itemizedlist>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-01-16 [9e2d87011] Add new COPY option SAVE_ERROR_TO
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-01-19 [b725b7eec] Rename COPY option from SAVE_ERROR_TO to ON_ERROR
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-02-03 [40bbc8cf0] Improve documentation for COPY ... ON_ERROR ...
Author: Masahiko Sawada <msawada@postgresql.org>
2024-04-17 [a6d0fa5ef] Disallow specifying ON_ERROR option without value.
-->
<listitem>
<para>
Add new <link linkend="sql-copy"><command>COPY</command></link>
option <literal>ON_ERROR ignore</literal> to discard error rows
(Damir Belyalov, Atsushi Torikoshi, Alex Shulgin, Jian He, Yugo
Nagata)
<ulink url="&commit_baseurl;9e2d87011">§</ulink>
<ulink url="&commit_baseurl;b725b7eec">§</ulink>
<ulink url="&commit_baseurl;40bbc8cf0">§</ulink>
<ulink url="&commit_baseurl;a6d0fa5ef">§</ulink>
</para>
<para>
The default behavior is <literal>ON_ERROR stop</literal>.
</para>
</listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
2024-04-01 [f5a227895] Add new COPY option LOG_VERBOSITY.
-->
<listitem>
<para>
Add new <command>COPY</command> option
<literal>LOG_VERBOSITY</literal> which reports <literal>COPY
FROM</literal> ignored error rows (Bharath Rupireddy)
<ulink url="&commit_baseurl;f5a227895">§</ulink>
</para>
</listitem>
<!--
Author: Masahiko Sawada <msawada@postgresql.org>
2024-01-25 [729439607] Add progress reporting of skipped tuples during COPY FRO
-->
<listitem>
<para>
Allow <literal>COPY FROM</literal> to report the number of skipped
rows during processing (Atsushi Torikoshi)
<ulink url="&commit_baseurl;729439607">§</ulink>
</para>
<para>
This appears in system view column <link
linkend="copy-progress-reporting"><structname>pg_stat_progress_copy</structname>.<structfield>tuples_skipped</structfield></link>.
</para>
</listitem>
<!--
Author: Andrew Dunstan <andrew@dunslane.net>
2023-09-30 [f6d4c9cf1] Provide FORCE_NULL * and FORCE_NOT_NULL * options for CO
-->
<listitem>
<para>
In <literal>COPY FROM</literal>, allow easy specification that all
columns should be forced null or not null (Zhang Mingli)
<ulink url="&commit_baseurl;f6d4c9cf1">§</ulink>
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2024-01-16 [699586315] Support identity columns in partitioned tables
-->
<listitem>
<para>
Allow partitioned tables to have identity columns (Ashutosh Bapat)
<ulink url="&commit_baseurl;699586315">§</ulink>
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2023-07-12 [8c852ba9a] Allow some exclusion constraints on partitions
-->
<listitem>
<para>
Allow <link linkend="ddl-constraints-exclusion">exclusion
constraints</link> on partitioned tables (Paul A. Jungwirth)
<ulink url="&commit_baseurl;8c852ba9a">§</ulink>
</para>
<para>
As long as exclusion constraints compare partition key columns
for equality, other columns can use exclusion constraint-specific
comparisons.
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2024-01-13 [4f622503d] Make attstattarget nullable
-->
<listitem>
<para>
Add clearer <link linkend="sql-altertable"><command>ALTER
TABLE</command></link> method to set a column to the default
statistics target (Peter Eisentraut)
<ulink url="&commit_baseurl;4f622503d">§</ulink>
</para>
<para>
The new syntax is <literal>ALTER TABLE ... SET STATISTICS
DEFAULT</literal>; using <literal>SET STATISTICS -1</literal>
is still supported.
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2024-01-04 [5d06e99a3] ALTER TABLE command to change generation expression
-->
<listitem>
<para>
Allow <literal>ALTER TABLE</literal> to change a column's generation
expression (Amul Sul)
<ulink url="&commit_baseurl;5d06e99a3">§</ulink>
</para>
<para>
The syntax is <literal>ALTER TABLE ... ALTER COLUMN ... SET
EXPRESSION</literal>.
</para>
</listitem>
<!--
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
2024-03-25 [374c7a229] Allow specifying an access method for partitioned tables
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
2024-03-28 [e2395cdbe] ALTER TABLE: rework determination of access method ID
-->
<listitem>
<para>
Allow specification of <link linkend="tableam">table access
methods</link> on partitioned tables (Justin Pryzby, Soumyadeep
Chakraborty, Michael Paquier)
<ulink url="&commit_baseurl;374c7a229">§</ulink>
<ulink url="&commit_baseurl;e2395cdbe">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2024-03-08 [d61a6cad6] Add support for DEFAULT in ALTER TABLE .. SET ACCESS MET
-->
<listitem>
<para>
Add <literal>DEFAULT</literal> setting for <literal>ALTER TABLE
.. SET ACCESS METHOD</literal> (Michael Paquier)
<ulink url="&commit_baseurl;d61a6cad6">§</ulink>
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2023-10-16 [e83d1b0c4] Add support event triggers on authenticated login
-->
<listitem>
<para>
Add support for <link linkend="sql-createeventtrigger">event
triggers</link> that fire at connection time (Konstantin Knizhnik,
Mikhail Gribkov)
<ulink url="&commit_baseurl;e83d1b0c4">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-12-04 [f21848de2] Add support for REINDEX in event triggers
-->
<listitem>
<para>
Add event trigger support for <link
linkend="sql-reindex"><command>REINDEX</command></link> (Garrett
Thornburg, Jian He)
<ulink url="&commit_baseurl;f21848de2">§</ulink>
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2023-07-19 [cdaedfc96] Support parenthesized syntax for CLUSTER without a table
-->
<listitem>
<para>
Allow parenthesized syntax for <link
linkend="sql-cluster"><command>CLUSTER</command></link> options if
a table name is not specified (Nathan Bossart)
<ulink url="&commit_baseurl;cdaedfc96">§</ulink>
</para>
</listitem>
</itemizedlist>
<sect4 id="release-17-explain">
<title><link linkend="sql-explain"><command>EXPLAIN</command></link></title>
<itemizedlist>
<!--
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
2024-01-29 [5de890e36] Add EXPLAIN (MEMORY) to report planner memory consumptio
-->
<listitem>
<para>
Allow <command>EXPLAIN</command> to report
optimizer memory usage (Ashutosh Bapat)
<ulink url="&commit_baseurl;5de890e36">§</ulink>
</para>
<para>
The option is called <literal>MEMORY</literal>.
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-04-03 [06286709e] Invent SERIALIZE option for EXPLAIN.
-->
<listitem>
<para>
Add <command>EXPLAIN</command> option <literal>SERIALIZE</literal>
to report the cost of converting data for network transmission
(Stepan Rutz, Matthias van de Meent)
<ulink url="&commit_baseurl;06286709e">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-10-19 [295c36c0c] Add local_blk_{read|write}_time I/O timing statistics fo
-->
<listitem>
<para>
Add local I/O block read/write timing statistics to
<command>EXPLAIN</command>'s <literal>BUFFERS</literal> output
(Nazir Bilal Yavuz)
<ulink url="&commit_baseurl;295c36c0c">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-03-19 [fd0398fcb] Improve EXPLAIN's display of SubPlan nodes and output pa
-->
<listitem>
<para>
Improve <command>EXPLAIN</command>'s display of SubPlan nodes and
output parameters (Tom Lane, Dean Rasheed)
<ulink url="&commit_baseurl;fd0398fcb">§</ulink>
</para>
</listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2023-09-08 [5a3423ad8] Add JIT deform_counter
-->
<listitem>
<para>
Add <acronym>JIT</acronym> <literal>deform_counter</literal>
details to <command>EXPLAIN</command> (Dmitry Dolgov)
<ulink url="&commit_baseurl;5a3423ad8">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3 id="release-17-datatypes">
<title>Data Types</title>
<itemizedlist>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
2023-11-14 [519fc1bd9] Support +/- infinity in the interval data type.
-->
<listitem>
<para>
Allow the <type>interval</type> data type to support
<literal>+/-infinity</literal> values (Joseph Koshakow, Jian He,
Ashutosh Bapat)
<ulink url="&commit_baseurl;519fc1bd9">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-03-24 [af1d39584] Allow more cases to pass the unsafe-use-of-new-enum-valu
-->
<listitem>
<para>
Allow the use of an <link
linkend="datatype-enum"><type>ENUM</type></link> added via <link
linkend="sql-altertype"><command>ALTER TYPE</command></link> if
the type was created in the same transaction (Tom Lane)
<ulink url="&commit_baseurl;af1d39584">§</ulink>
</para>
<para>
This was previously disallowed.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 id="release-17-merge">
<title><link linkend="sql-merge">MERGE</link></title>
<itemizedlist>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
2024-02-29 [5f2e179bd] Support MERGE into updatable views.
-->
<listitem>
<para>
Allow <command>MERGE</command> to modify updatable views (Dean
Rasheed)
<ulink url="&commit_baseurl;5f2e179bd">§</ulink>
</para>
</listitem>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
2024-03-30 [0294df2f1] Add support for MERGE ... WHEN NOT MATCHED BY SOURCE.
-->
<listitem>
<para>
Add <literal>WHEN NOT MATCHED BY SOURCE</literal> to
<command>MERGE</command> (Dean Rasheed)
<ulink url="&commit_baseurl;0294df2f1">§</ulink>
</para>
<para>
<literal>WHEN NOT MATCHED</literal> on target rows was already
supported.
</para>
</listitem>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
2024-03-17 [c649fa24a] Add RETURNING support to MERGE.
-->
<listitem>
<para>
Allow <command>MERGE</command> to use the
<literal>RETURNING</literal> clause (Dean Rasheed)
<ulink url="&commit_baseurl;c649fa24a">§</ulink>
</para>
<para>
The new <literal>RETURNING</literal> function
<function>merge_action()</function> reports on the
<acronym>DML</acronym> that generated the row.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 id="release-17-functions">
<title>Functions</title>
<itemizedlist>
<!--
Author: Amit Langote <amitlan@postgresql.org>
2024-04-04 [de3600452] Add basic JSON_TABLE() functionality
Author: Amit Langote <amitlan@postgresql.org>
2024-04-08 [bb766cde6] JSON_TABLE: Add support for NESTED paths and columns
-->
<listitem>
<para>
Add function <link
linkend="functions-sqljson-table"><function>JSON_TABLE()</function></link>
to convert <type>JSON</type> data to a table representation (Nikita
Glukhov, Teodor Sigaev, Oleg Bartunov, Alexander Korotkov, Andrew
Dunstan, Amit Langote, Jian He)
<ulink url="&commit_baseurl;de3600452">§</ulink>
<ulink url="&commit_baseurl;bb766cde6">§</ulink>
</para>
<para>
This function can be used in the <literal>FROM</literal> clause of
<command>SELECT</command> queries as a tuple source.
</para>
</listitem>
<!--
Author: Amit Langote <amitlan@postgresql.org>
2023-07-26 [03734a7fe] Add more SQL/JSON constructor functions
-->
<listitem>
<para>
Add <acronym>SQL/JSON</acronym> constructor functions <link
linkend="functions-json-creation-table"><function>JSON()</function></link>,
<function>JSON_SCALAR()</function>, and
<function>JSON_SERIALIZE()</function> (Nikita Glukhov, Teodor Sigaev,
Oleg Bartunov, Alexander Korotkov, Andrew Dunstan, Amit Langote)
<ulink url="&commit_baseurl;03734a7fe">§</ulink>
</para>
</listitem>
<!--
Author: Amit Langote <amitlan@postgresql.org>
2024-01-24 [aaaf9449e] Add soft error handling to some expression nodes
Author: Amit Langote <amitlan@postgresql.org>
2024-01-24 [1edb3b491] Adjust populate_record_field() to handle errors softly
Author: Amit Langote <amitlan@postgresql.org>
2024-03-21 [6185c9737] Add SQL/JSON query functions
Author: Amit Langote <amitlan@postgresql.org>
2024-04-18 [c0fc07518] SQL/JSON: Fix issues with DEFAULT .. ON ERROR / EMPTY
Author: Amit Langote <amitlan@postgresql.org>
2024-04-18 [ef744ebb7] SQL/JSON: Miscellaneous fixes and improvements
-->
<listitem>
<para>
Add <acronym>SQL/JSON</acronym> query functions <link
linkend="functions-sqljson-querying"><function>JSON_EXISTS()</function></link>,
<function>JSON_QUERY()</function>, and
<function>JSON_VALUE()</function> (Nikita Glukhov, Teodor Sigaev,
Oleg Bartunov, Alexander Korotkov, Andrew Dunstan, Amit Langote,
Peter Eisentraut, Jian He)
<ulink url="&commit_baseurl;aaaf9449e">§</ulink>
<ulink url="&commit_baseurl;1edb3b491">§</ulink>
<ulink url="&commit_baseurl;6185c9737">§</ulink>
<ulink url="&commit_baseurl;c0fc07518">§</ulink>
<ulink url="&commit_baseurl;ef744ebb7">§</ulink>
</para>
</listitem>
<!--
Author: Andrew Dunstan <andrew@dunslane.net>
2024-01-25 [66ea94e8e] Implement various jsonpath methods
-->
<listitem>
<para>
Add <link linkend="functions-sqljson-path-operators">jsonpath</link>
methods to convert <type>JSON</type> values to other
<type>JSON</type> data types (Jeevan Chalke)
<ulink url="&commit_baseurl;66ea94e8e">§</ulink>
</para>
<para>
The jsonpath methods are <function>.bigint()</function>,
<function>.boolean()</function>, <function>.date()</function>,
<function>.decimal([precision [, scale]])</function>,
<function>.integer()</function>, <function>.number()</function>,
<function>.string()</function>, <function>.time()</function>,
<function>.time_tz()</function>, <function>.timestamp()</function>,
and <function>.timestamp_tz()</function>.
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-01-25 [8ba6fdf90] Support TZ and OF format codes in <function>to_timestamp()</function>.
-->
<listitem>
<para>
Add <link
linkend="functions-formatting-table"><function>to_timestamp()</function></link>
time zone format specifiers (Tom Lane)
<ulink url="&commit_baseurl;8ba6fdf90">§</ulink>
</para>
<para>
<literal>TZ</literal> accepts time zone abbreviations or numeric
offsets, while <literal>OF</literal> accepts only numeric offsets.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-10-13 [97957fdba] Add support for AT LOCAL
-->
<listitem>
<para>
Allow the session <link linkend="guc-timezone">time zone</link>
to be specified by <literal>AT LOCAL</literal> (Vik Fearing)
<ulink url="&commit_baseurl;97957fdba">§</ulink>
</para>
<para>
This is useful when converting adding and removing time zones from
time stamps values, rather than specifying the literal session
time zone.
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2024-03-19 [794f10f6b] Add some UUID support functions
-->
<listitem>
<para>
Add functions <link
linkend="functions-uuid"><function>uuid_extract_timestamp()</function></link>
and <function>uuid_extract_version()</function> to return
<acronym>UUID</acronym> information (Andrey Borodin)
<ulink url="&commit_baseurl;794f10f6b">§</ulink>
</para>
</listitem>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
2024-03-27 [e6341323a] Add functions to generate random numbers in a specified
-->
<listitem>
<para>
Add functions to generate random numbers in a specified range
(Dean Rasheed)
<ulink url="&commit_baseurl;e6341323a">§</ulink>
</para>
<para>
The functions are <link
linkend="functions-math-random-table"><function>random(min,
max)</function></link> and they take values of type
<type>integer</type>, <type>bigint</type>, and <type>numeric</type>.
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2023-08-23 [260a1f18d] Add to_bin() and to_oct().
-->
<listitem>
<para>
Add functions to convert integers to binary and octal strings
(Eric Radman, Nathan Bossart)
<ulink url="&commit_baseurl;260a1f18d">§</ulink>
</para>
<para>
The functions are <link
linkend="functions-string-other"><function>to_bin()</function></link>
and <function>to_oct()</function>.
</para>
</listitem>
<!--
Author: Jeff Davis <jdavis@postgresql.org>
2023-11-01 [a02b37fc0] Additional unicode primitive functions.
-->
<listitem>
<para>
Add Unicode informational functions (Jeff Davis)
<ulink url="&commit_baseurl;a02b37fc0">§</ulink>
</para>
<para>
Function <link
linkend="functions-info-version"><function>unicode_version()</function></link>
returns the Unicode version,
<function>icu_unicode_version()</function>
returns the <acronym>ICU</acronym> version, and
<function>unicode_assigned()</function> returns if the characters
are assigned Unicode codepoints.
</para>
</listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2023-11-06 [526fe0d79] Add XMLText function (SQL/XML X038)
-->
<listitem>
<para>
Add function <link
linkend="functions-producing-xml-xmltext"><function>xmltext()</function></link>
to convert text to a single <type>XML</type> text node (Jim Jones)
<ulink url="&commit_baseurl;526fe0d79">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-03-20 [1218ca995] Add to_regtypemod function to extract typemod from a str
-->
<listitem>
<para>
Add function <link
linkend="functions-info-catalog-table"><function>to_regtypemod()</function></link>
to return the type modifier of a type specification (David Wheeler,
Erik Wienhold)
<ulink url="&commit_baseurl;1218ca995">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-03-30 [b154d8a6d] Add pg_basetype() function to extract a domain's base ty
-->
<listitem>
<para>
Add <link
linkend="functions-info-catalog-table"><function>pg_basetype()</function></link>
function to return a domain's base type (Steve Chavez)
<ulink url="&commit_baseurl;b154d8a6d">§</ulink>
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-03-14 [d1162cfda] Add pg_column_toast_chunk_id().
-->
<listitem>
<para>
Add function <link
linkend="functions-admin-dbsize"><function>pg_column_toast_chunk_id()</function></link>
to return a value's <link
linkend="storage-toast"><acronym>TOAST</acronym></link> identifier
(Yugo Nagata)
<ulink url="&commit_baseurl;d1162cfda">§</ulink>
</para>
<para>
This returns <literal>NULL</literal> if the value is not stored
in <acronym>TOAST</acronym>.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 id="release-17-plpgsql">
<title><link linkend="plpgsql">PL/pgSQL</link></title>
<itemizedlist>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-01-04 [5e8674dc8] In plpgsql, allow %TYPE and %ROWTYPE to be followed by a
-->
<listitem>
<para>
Allow plpgsql <link
linkend="plpgsql-declaration-type"><literal>%TYPE</literal></link>
and <literal>%ROWTYPE</literal> specifications to represent arrays
of non-array types (Quan Zongliang, Pavel Stehule)
<ulink url="&commit_baseurl;5e8674dc8">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-01-05 [43b46aae1] Clean up some edge cases in plpgsql's %TYPE parsing.
-->
<listitem>
<para>
Allow plpgsql <literal>%TYPE</literal> specification to reference
composite column (Tom Lane)
<ulink url="&commit_baseurl;43b46aae1">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 id="release-17-libpq">
<title><link linkend="libpq">libpq</link></title>
<itemizedlist>
<!--
Author: Joe Conway <mail@joeconway.com>
2024-01-09 [a7be2a6c2] Add new function, PQchangePassword(), to libpq
-->
<listitem>
<para>
Add libpq function to change role passwords (Joe Conway)
<ulink url="&commit_baseurl;a7be2a6c2">§</ulink>
</para>
<para>
The new function, <link
linkend="libpq-PQchangePassword"><function>PQchangePassword()</function></link>,
hashes the new password before sending it to the server.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-07-04 [28b572656] libpq: Add support for Close on portals and statements
-->
<listitem>
<para>
Add libpq functions to close portals and prepared statements
(Jelte Fennema-Nio)
<ulink url="&commit_baseurl;28b572656">§</ulink>
</para>
<para>
The functions are <link
linkend="libpq-PQclosePrepared"><function>PQclosePrepared()</function></link>,
<link
linkend="libpq-PQclosePortal"><function>PQclosePortal()</function></link>,
<link
linkend="libpq-PQsendClosePrepared"><function>PQsendClosePrepared()</function></link>,
and <link
linkend="libpq-PQsendClosePortal"><function>PQsendClosePortal()</function></link>.
</para>
</listitem>
<!--
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
2024-03-12 [61461a300] libpq: Add encrypted and non-blocking query cancellation
-->
<listitem>
<para>
Add libpq <acronym>API</acronym> which allows for blocking and
non-blocking <link linkend="libpq-cancel">cancel requests</link>,
with encryption if already in use (Jelte Fennema-Nio)
<ulink url="&commit_baseurl;61461a300">§</ulink>
</para>
<para>
Previously only blocking, unencrypted cancel requests were supported.
</para>
</listitem>
<!--
Author: Robert Haas <rhaas@postgresql.org>
2024-04-02 [f5e4dedfa] Expose PQsocketPoll via libpq
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-06-13 [105024a47] Improve the granularity of PQsocketPoll's timeout parame
-->
<listitem>
<para>
Add libpq function <link
linkend="libpq-PQsocketPoll"><function>PQsocketPoll()</function></link>
to allow polling of network sockets (Tristan Partin, Tom Lane)
<ulink url="&commit_baseurl;f5e4dedfa">§</ulink>
<ulink url="&commit_baseurl;105024a47">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2024-01-16 [4794c2d31] libpq: Add PQsendPipelineSync()
-->
<listitem>
<para>
Add libpq function <link
linkend="libpq-PQsendPipelineSync"><function>PQsendPipelineSync()</function></link>
to send a pipeline synchronization point (Anton Kirilov)
<ulink url="&commit_baseurl;4794c2d31">§</ulink>
</para>
<para>
This is similar to <link
linkend="libpq-PQpipelineSync"><function>PQpipelineSync()</function></link>
but it does not flush to the server unless the size threshold of
the output buffer is reached.
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-04-06 [4643a2b26] Support retrieval of results in chunks with libpq.
-->
<listitem>
<para>
Add libpq function <link
linkend="libpq-PQsetChunkedRowsMode"><function>PQsetChunkedRowsMode()</function></link>
to allow retrieval of results in chunks (Daniel Vérité)
<ulink url="&commit_baseurl;4643a2b26">§</ulink>
</para>
</listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-04-08 [d39a49c1e] Support TLS handshake directly without SSLRequest negoti
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-04-08 [91044ae4b] Send ALPN in TLS handshake, require it in direct SSL con
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2024-04-24 [44e27f0a6] Support disallowing SSL renegotiation when using LibreSS
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2024-04-24 [d80f2ce29] Support SSL_R_VERSION_TOO_LOW when using LibreSSL
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-04-29 [03a0e0d4b] libpq: Enforce ALPN in direct SSL connections
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-04-29 [17a834a04] Reject SSL connection if ALPN is used but there's no com
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-05-11 [407e0b023] Change ALPN protocol ID to IANA-approved "postgresql"
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-05-16 [fb5718f35] Remove option to fall back from direct to postgres SSL n
-->
<listitem>
<para>
Allow <acronym>TLS</acronym> connections without requiring a
network round-trip negotiation (Greg Stark, Heikki Linnakangas,
Peter Eisentraut, Michael Paquier, Daniel Gustafsson)
<ulink url="&commit_baseurl;d39a49c1e">§</ulink>
<ulink url="&commit_baseurl;91044ae4b">§</ulink>
<ulink url="&commit_baseurl;44e27f0a6">§</ulink>
<ulink url="&commit_baseurl;d80f2ce29">§</ulink>
<ulink url="&commit_baseurl;03a0e0d4b">§</ulink>
<ulink url="&commit_baseurl;17a834a04">§</ulink>
<ulink url="&commit_baseurl;407e0b023">§</ulink>
<ulink url="&commit_baseurl;fb5718f35">§</ulink>
</para>
<para>
This is enabled with the client-side option <link
linkend="libpq-connect-sslnegotiation"><literal>sslnegotiation=direct</literal></link>,
requires <acronym>ALPN</acronym>, and only works on
<productname>PostgreSQL</productname> 17 and later servers.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 id="release-17-psql">
<title><xref linkend="app-psql"/></title>
<itemizedlist>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2023-11-13 [d1379ebf4] Improve default and empty privilege outputs in psql.
-->
<listitem>
<para>
Improve <application>psql</application> display of default and
empty privileges (Erik Wienhold, Laurenz Albe)
<ulink url="&commit_baseurl;d1379ebf4">§</ulink>
</para>
<para>
Command <literal>\dp</literal> now displays <literal>(none)</literal>
for empty privileges; default still displays as empty.
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2023-11-13 [d1379ebf4] Improve default and empty privilege outputs in psql.
-->
<listitem>
<para>
Have backslash commands honor <literal>\pset null</literal> (Erik
Wienhold, Laurenz Albe)
<ulink url="&commit_baseurl;d1379ebf4">§</ulink>
</para>
<para>
Previously <literal>\pset null</literal> was ignored.
</para>
</listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2023-08-29 [f347ec76e] Allow \watch queries to stop on minimum rows returned
-->
<listitem>
<para>
Allow <application>psql</application>'s <literal>\watch</literal>
to stop after a minimum number of rows returned (Greg Sabino Mullane)
<ulink url="&commit_baseurl;f347ec76e">§</ulink>
</para>
<para>
The parameter is <literal>min_rows</literal>.
</para>
</listitem>
<!--
Author: Robert Haas <rhaas@postgresql.org>
2024-04-02 [cafe10565] Allow SIGINT to cancel psql database reconnections.
-->
<listitem>
<para>
Allow <application>psql</application> connection attempts to be
canceled with control-C (Tristan Partin)
<ulink url="&commit_baseurl;cafe10565">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-04-06 [90f517821] Re-implement psql's FETCH_COUNT feature atop libpq's chu
-->
<listitem>
<para>
Allow <application>psql</application> to honor
<literal>FETCH_COUNT</literal> for non-<command>SELECT</command>
queries (Daniel Vérité)
<ulink url="&commit_baseurl;90f517821">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-06-30 [c951e9042] Add tab completion for CREATE SCHEMA in psql
Author: Michael Paquier <michael@paquier.xyz>
2023-10-13 [d16eb83ab] psql: Add completion support for AT [ LOCAL | TIME ZONE
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
2023-11-28 [cd3424748] psql: Add tab completion for view options.
Author: Michael Paquier <michael@paquier.xyz>
2023-11-16 [816f10564] psql: Add some completion support for CREATE TABLE .. AS
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-03-16 [927332b95] psql: fix variable existence tab completion
Author: Masahiko Sawada <msawada@postgresql.org>
2024-03-28 [f1bb9284f] Improve tab completion for ALTER TABLE ALTER COLUMN SET
Author: Masahiko Sawada <msawada@postgresql.org>
2024-04-08 [304b6b1a6] Add more tab completion support for ALTER DEFAULT PRIVIL
Author: Michael Paquier <michael@paquier.xyz>
2024-05-01 [2800fbb2b] Add tab completion for EXPLAIN (MEMORY|SERIALIZE)
-->
<listitem>
<para>
Improve <application>psql</application> tab completion (Dagfinn
Ilmari Mannsåker, Gilles Darold, Christoph Heiss, Steve Chavez,
Vignesh C, Pavel Borisov, Jian He)
<ulink url="&commit_baseurl;c951e9042">§</ulink>
<ulink url="&commit_baseurl;d16eb83ab">§</ulink>
<ulink url="&commit_baseurl;cd3424748">§</ulink>
<ulink url="&commit_baseurl;816f10564">§</ulink>
<ulink url="&commit_baseurl;927332b95">§</ulink>
<ulink url="&commit_baseurl;f1bb9284f">§</ulink>
<ulink url="&commit_baseurl;304b6b1a6">§</ulink>
<ulink url="&commit_baseurl;2800fbb2b">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 id="release-17-server-apps">
<title>Server Applications</title>
<itemizedlist>
<!--
Author: Robert Haas <rhaas@postgresql.org>
2024-01-11 [ee1bfd168] Add new pg_walsummary tool.
-->
<listitem>
<para>
Add application <link
linkend="app-pgwalsummary"><application>pg_walsummary</application></link>
to dump <acronym>WAL</acronym> summary files (Robert Haas)
<ulink url="&commit_baseurl;ee1bfd168">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-04-01 [a45c78e32] Rearrange pg_dump's handling of large objects for better
-->
<listitem>
<para>
Allow <link
linkend="app-pgdump"><application>pg_dump</application></link>'s
large objects to be restorable in batches (Tom Lane)
<ulink url="&commit_baseurl;a45c78e32">§</ulink>
</para>
<para>
This allows the restoration of many large objects to avoid
transaction limits and to be restored in parallel.
</para>
</listitem>
<!--
Author: Dean Rasheed <dean.a.rasheed@gmail.com>
2024-03-20 [522ed12f7] Add "- -exclude-extension" to pg_dump's options.
-->
<listitem>
<para>
Add <application>pg_dump</application> option
<option>--exclude-extension</option> (Ayush Vatsa)
<ulink url="&commit_baseurl;522ed12f7">§</ulink>
</para>
</listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2023-11-29 [a5cf808be] Read include/exclude commands for dump/restore from file
-->
<listitem>
<para>
Allow <link
linkend="app-pgdump"><application>pg_dump</application></link>, <link
linkend="app-pg-dumpall"><application>pg_dumpall</application></link>,
and <link
linkend="app-pgrestore"><application>pg_restore</application></link>
to specify include/exclude objects in a file (Pavel Stehule,
Daniel Gustafsson)
<ulink url="&commit_baseurl;a5cf808be">§</ulink>
</para>
<para>
The option is called <option>--filter</option>.
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2023-09-06 [8c16ad3b4] Allow using syncfs() in frontend utilities.
-->
<listitem>
<para>
Add the <option>--sync-method</option> parameter to several client
applications (Justin Pryzby, Nathan Bossart)
<ulink url="&commit_baseurl;8c16ad3b4">§</ulink>
</para>
<para>
The applications are <link
linkend="app-initdb"><application>initdb</application></link>, <link
linkend="app-pgbasebackup"><application>pg_basebackup</application></link>,
<link
linkend="app-pgchecksums"><application>pg_checksums</application></link>,
<link linkend="app-pgdump"><application>pg_dump</application></link>,
<link linkend="app-pgrewind"><application>pg_rewind</application></link>,
and <link
linkend="pgupgrade"><application>pg_upgrade</application></link>.
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-04-01 [959b38d77] Invent - -transaction-size option for pg_restore.
-->
<listitem>
<para>
Add <link
linkend="app-pgrestore"><application>pg_restore</application></link>
option <option>--transaction-size</option> to allow object restores
in transaction batches (Tom Lane)
<ulink url="&commit_baseurl;959b38d77">§</ulink>
</para>
<para>
This allows the performance benefits of transaction batches without
the problems of excessively large transaction blocks.
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-03-25 [3ff01b2b6] Adjust pgbench option for debug mode.
-->
<listitem>
<para>
Change <link
linkend="pgbench"><application>pgbench</application></link> debug
mode option from <option>-d</option> to <option>--debug</option>
(Greg Sabino Mullane)
<ulink url="&commit_baseurl;3ff01b2b6">§</ulink>
</para>
<para>
Option <option>-d</option> is now used for the database name,
and the new <option>--dbname</option> option can be used as well.
</para>
</listitem>
<!--
Author: Tatsuo Ishii <ishii@postgresql.org>
2023-08-30 [3c662643c] Allow pgbench to exit immediately when any client is abo
-->
<listitem>
<para>
Add pgbench option <option>--exit-on-abort</option> to exit after
any client aborts (Yugo Nagata)
<ulink url="&commit_baseurl;3c662643c">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2024-01-24 [94edfe250] pgbench: Add \syncpipeline
-->
<listitem>
<para>
Add pgbench command <literal>\syncpipeline</literal> to allow
sending of sync messages (Anthonin Bonnefoy)
<ulink url="&commit_baseurl;94edfe250">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-07-19 [3f8c98d0b] pg_archivecleanup: Add - -clean-backup-history
-->
<listitem>
<para>
Allow <link
linkend="pgarchivecleanup"><application>pg_archivecleanup</application></link>
to remove backup history files (Atsushi Torikoshi)
<ulink url="&commit_baseurl;3f8c98d0b">§</ulink>
</para>
<para>
The option is <option>--clean-backup-history</option>.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-06-30 [dd7c60f19] Introduce long options in pg_archivecleanup
-->
<listitem>
<para>
Add some long options to <application>pg_archivecleanup</application>
(Atsushi Torikoshi)
<ulink url="&commit_baseurl;dd7c60f19">§</ulink>
</para>
<para>
The long options are <option>--debug</option>,
<option>--dry-run</option>, and <option>--strip-extension</option>.
</para>
</listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2023-09-21 [cca97ce6a] Allow dbname in pg_basebackup/pg_receivewal connstring
-->
<listitem>
<para>
Allow <link
linkend="app-pgbasebackup"><application>pg_basebackup</application></link>
and <link
linkend="app-pgreceivewal"><application>pg_receivewal</application></link>
to use dbname in their connection specification (Jelte Fennema-Nio)
<ulink url="&commit_baseurl;cca97ce6a">§</ulink>
</para>
<para>
This is useful for connection poolers that are sensitive to the
database name.
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2024-03-06 [d93627bcb] Add - -copy-file-range option to pg_upgrade.
-->
<listitem>
<para>
Add <link
linkend="pgupgrade"><application>pg_upgrade</application></link>
option <option>--copy-file-range</option> (Thomas Munro)
<ulink url="&commit_baseurl;d93627bcb">§</ulink>
</para>
<para>
This is supported on <systemitem class="osname">Linux</systemitem>
and <systemitem class="osname">FreeBSD</systemitem>.
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2024-03-25 [47f99a407] reindexdb: Add the index-level REINDEX with multiple job
-->
<listitem>
<para>
Allow <link
linkend="app-reindexdb"><application>reindexdb</application></link>
<option>--index</option> to process indexes from different tables
in parallel (Maxim Orlov, Svetlana Derevyanko, Alexander Korotkov)
<ulink url="&commit_baseurl;47f99a407">§</ulink>
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-03-11 [24c928ad9] reindexdb: Allow specifying objects to process in all da
Author: Nathan Bossart <nathan@postgresql.org>
2024-03-11 [648928c79] vacuumdb: Allow specifying objects to process in all dat
Author: Nathan Bossart <nathan@postgresql.org>
2024-03-11 [1b49d56d3] clusterdb: Allow specifying tables to process in all dat
-->
<listitem>
<para>
Allow <link linkend="app-reindexdb">reindexdb</link>,
<link linkend="app-vacuumdb">vacuumdb</link>, and <link
linkend="app-clusterdb">clusterdb</link> to process objects in all
databases matching a pattern (Nathan Bossart)
<ulink url="&commit_baseurl;24c928ad9">§</ulink>
<ulink url="&commit_baseurl;648928c79">§</ulink>
<ulink url="&commit_baseurl;1b49d56d3">§</ulink>
</para>
<para>
The new option <option>--all</option> controls this behavior.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 id="release-17-source-code">
<title>Source Code</title>
<itemizedlist>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-07-03 [8e278b657] Remove support for OpenSSL 1.0.1
-->
<listitem>
<para>
Remove support for <productname>OpenSSL</productname> 1.0.1
(Michael Paquier)
<ulink url="&commit_baseurl;8e278b657">§</ulink>
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2023-11-17 [284cbaea7] Allow tests to pass in OpenSSL FIPS mode (TAP tests)
Author: Peter Eisentraut <peter@eisentraut.org>
2023-11-17 [3c44e7d8d] Allow tests to pass in OpenSSL FIPS mode (rest)
-->
<listitem>
<para>
Allow tests to pass in <productname>OpenSSL</productname>
<acronym>FIPS</acronym> mode (Peter Eisentraut)
<ulink url="&commit_baseurl;284cbaea7">§</ulink>
<ulink url="&commit_baseurl;3c44e7d8d">§</ulink>
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-04-06 [792752af4] Optimize pg_popcount() with AVX-512 instructions.
Author: Nathan Bossart <nathan@postgresql.org>
2024-04-06 [41c51f0c6] Optimize visibilitymap_count() with AVX-512 instructions
-->
<listitem>
<para>
Use <acronym>CPU AVX</acronym>-512 instructions for bit counting
(Paul Amonson, Nathan Bossart, Ants Aasma)
<ulink url="&commit_baseurl;792752af4">§</ulink>
<ulink url="&commit_baseurl;41c51f0c6">§</ulink>
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2024-01-25 [820b5af73] jit: Require at least LLVM 10.
-->
<listitem>
<para>
Require <productname><acronym>LLVM</acronym></productname> version
10 or later (Thomas Munro)
<ulink url="&commit_baseurl;820b5af73">§</ulink>
</para>
</listitem>
<!--
Author: John Naylor <john.naylor@postgresql.org>
2023-08-10 [4d14ccd6a] Use native CRC instructions on 64-bit LoongArch
-->
<listitem>
<para>
Use native <acronym>CRC</acronym> instructions on 64-bit
<productname>LoongArch</productname> CPUs (Xudong Yang)
<ulink url="&commit_baseurl;4d14ccd6a">§</ulink>
</para>
</listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-02-28 [0b16bb877] Remove AIX support
-->
<listitem>
<para>
Remove <systemitem class="osname"><acronym>AIX</acronym></systemitem>
support (Heikki Linnakangas)
<ulink url="&commit_baseurl;0b16bb877">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-12-20 [1301c80b2] Remove MSVC scripts
-->
<listitem>
<para>
Remove the <productname>Microsoft Visual
Studio</productname>-specific <productname>PostgreSQL</productname>
build option (Michael Paquier)
<ulink url="&commit_baseurl;1301c80b2">§</ulink>
</para>
<para>
<productname>Meson</productname> is now the only available method
for <productname>Visual Studio</productname> builds.
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2023-07-12 [68a4b58ec] Remove - -disable-thread-safety and related code.
Author: Thomas Munro <tmunro@postgresql.org>
2023-07-12 [ce0b0fa3e] Doc: Adjust libpq docs about thread safety.
-->
<listitem>
<para>
Remove configure option <option>--disable-thread-safety</option>
(Thomas Munro, Heikki Linnakangas)
<ulink url="&commit_baseurl;68a4b58ec">§</ulink>
<ulink url="&commit_baseurl;ce0b0fa3e">§</ulink>
</para>
<para>
We now assume all supported platforms have sufficient thread support.
</para>
</listitem>
<!--
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-02-28 [1c1eec0f2] Remove configure - -with-CC option
-->
<listitem>
<para>
Remove <application>configure</application> option
<option>--with-CC</option> (Heikki Linnakangas)
<ulink url="&commit_baseurl;1c1eec0f2">§</ulink>
</para>
<para>
Setting the <envar>CC</envar> environment variable is now the only
supported method for specifying the compiler.
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2023-10-26 [f0efa5aec] Introduce the concept of read-only StringInfos
-->
<listitem>
<para>
User-defined data type receive functions will no longer receive
their data null-terminated (David Rowley)
<ulink url="&commit_baseurl;f0efa5aec">§</ulink>
</para>
</listitem>
<!--
Author: Andrew Dunstan <andrew@dunslane.net>
2024-04-04 [3311ea86e] Introduce a non-recursive JSON parser
-->
<listitem>
<para>
Add incremental <type>JSON</type> parser for use with huge
<type>JSON</type> documents (Andrew Dunstan)
<ulink url="&commit_baseurl;3311ea86e">§</ulink>
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-02-28 [363eb0599] Convert README to Markdown.
-->
<listitem>
<para>
Convert top-level <filename>README</filename> file to
<productname>Markdown</productname> (Nathan Bossart)
<ulink url="&commit_baseurl;363eb0599">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2023-12-22 [e2b73f4a4] Stop generating plain-text INSTALL instructions.
-->
<listitem>
<para>
Remove no longer needed top-level <filename>INSTALL</filename> file
(Tom Lane)
<ulink url="&commit_baseurl;e2b73f4a4">§</ulink>
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2023-11-06 [721856ff2] Remove distprep
-->
<listitem>
<para>
Remove <application>make</application>'s <literal>distprep</literal>
option (Peter Eisentraut)
<ulink url="&commit_baseurl;721856ff2">§</ulink>
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2024-01-23 [79b03dbb3] Support shared libraries on Android (using make)
-->
<listitem>
<para>
Add <application>make</application> support for
<productname>Android</productname> shared libraries (Peter
Eisentraut)
<ulink url="&commit_baseurl;79b03dbb3">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2024-01-22 [d86d20f0b] Add backend support for injection points
Author: Michael Paquier <michael@paquier.xyz>
2024-03-04 [37b369dc6] injection_points: Add wait and wakeup of processes
Author: Michael Paquier <michael@paquier.xyz>
2024-04-08 [f587338de] injection_points: Introduce runtime conditions
Author: Noah Misch <noah@leadboat.com>
2024-06-27 [bb93640a6] Add wait event type "InjectionPoint", a custom
-->
<listitem>
<para>
Add backend support for injection points (Michael Paquier)
<ulink url="&commit_baseurl;d86d20f0b">§</ulink>
<ulink url="&commit_baseurl;37b369dc6">§</ulink>
<ulink url="&commit_baseurl;f587338de">§</ulink>
<ulink url="&commit_baseurl;bb93640a6">§</ulink>
</para>
<para>
This is used for server debugging and they must be enabled at server
compile time.
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2024-01-19 [8b2bcf3f2] Introduce the dynamic shared memory registry.
-->
<listitem>
<para>
Add dynamic shared memory registry (Nathan Bossart)
<ulink url="&commit_baseurl;8b2bcf3f2">§</ulink>
</para>
<para>
This allows shared libraries which are not initialized at startup
to coordinate dynamic shared memory access.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2024-04-04 [2a217c371] Coordinate emit_log_hook and all log destinations to sha
-->
<listitem>
<para>
Fix <literal>emit_log_hook</literal> to use the same time value as
other log records for the same query (Kambam Vinay, Michael Paquier)
<ulink url="&commit_baseurl;2a217c371">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-01-25 [7014c9a4b] Doc: improve documentation for jsonpath behavior.
-->
<listitem>
<para>
Improve documentation for using <literal>jsonpath</literal> for
predicate checks (David Wheeler)
<ulink url="&commit_baseurl;7014c9a4b">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3 id="release-17-modules">
<title>Additional Modules</title>
<itemizedlist>
<!--
Author: Etsuro Fujita <efujita@postgresql.org>
2023-08-15 [9e9931d2b] Re-allow FDWs and custom scan providers to replace joins
-->
<listitem>
<para>
Allow joins with non-join qualifications to be pushed down to
foreign servers and custom scans (Richard Guo, Etsuro Fujita)
<ulink url="&commit_baseurl;9e9931d2b">§</ulink>
</para>
<para>
Foreign data wrappers and custom scans will need to be modified to
handle these cases.
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2023-12-05 [824dbea3e] Add support for deparsing semi-joins to contrib/postgres
-->
<listitem>
<para>
Allow pushdown of <literal>EXISTS</literal> and <literal>IN</literal>
subqueries to <xref linkend="postgres-fdw"/> foreign servers
(Alexander Pyhalov)
<ulink url="&commit_baseurl;824dbea3e">§</ulink>
</para>
</listitem>
<!--
Author: David Rowley <drowley@postgresql.org>
2023-11-02 [cac169d68] Increase DEFAULT_FDW_TUPLE_COST from 0.01 to 0.2
Author: John Naylor <john.naylor@postgresql.org>
2024-01-11 [f7f694b21] Update documentation of default fdw_tuple_cost
-->
<listitem>
<para>
Increase the default foreign data wrapper tuple cost (David Rowley,
Umair Shahid)
<ulink url="&commit_baseurl;cac169d68">§</ulink>
<ulink url="&commit_baseurl;f7f694b21">§</ulink>
</para>
<para>
This value is used by the optimizer.
</para>
</listitem>
<!--
Author: Noah Misch <noah@leadboat.com>
2024-01-08 [d3c5f37dd] Make dblink interruptible, via new libpqsrv APIs.
-->
<listitem>
<para>
Allow <link linkend="dblink"><application>dblink</application></link>
database operations to be interrupted (Noah Misch)
<ulink url="&commit_baseurl;d3c5f37dd">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2024-03-21 [485f0aa85] Add hash support functions and hash opclass for contrib/
-->
<listitem>
<para>
Allow the creation of hash indexes on <application><xref
linkend="ltree"/></application> columns (Tommy Pavlicek)
<ulink url="&commit_baseurl;485f0aa85">§</ulink>
</para>
<para>
This also enables hash join and hash aggregation on
<application>ltree</application> columns.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-09-20 [59f47fb98] unaccent: Add support for quoted translated characters
-->
<listitem>
<para>
Allow <application><xref linkend="unaccent"/></application> character
translation rules to contain whitespace and quotes (Michael Paquier)
<ulink url="&commit_baseurl;59f47fb98">§</ulink>
</para>
<para>
The syntax for the <filename>unaccent.rules</filename> file has
changed.
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2023-10-28 [5ae208720] Teach contrib/amcheck to check the unique constraint vio
-->
<listitem>
<para>
Allow <application><xref linkend="amcheck"/></application>
to check for unique constraint violations using new option
<option>--checkunique</option> (Anastasia Lubennikova, Pavel Borisov,
Maxim Orlov)
<ulink url="&commit_baseurl;5ae208720">§</ulink>
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2023-11-07 [3c551ebed] citext: Allow tests to pass in OpenSSL FIPS mode
-->
<listitem>
<para>
Allow <application><xref linkend="citext"/></application> tests to
pass in OpenSSL <acronym>FIPS</acronym> mode (Peter Eisentraut)
<ulink url="&commit_baseurl;3c551ebed">§</ulink>
</para>
</listitem>
<!--
Author: Peter Eisentraut <peter@eisentraut.org>
2023-11-17 [795592865] pgcrypto: Allow tests to pass in OpenSSL FIPS mode
-->
<listitem>
<para>
Allow <application><xref linkend="pgcrypto"/></application> tests
to pass in OpenSSL <acronym>FIPS</acronym> mode (Peter Eisentraut)
<ulink url="&commit_baseurl;795592865">§</ulink>
</para>
</listitem>
<!--
Author: Nathan Bossart <nathan@postgresql.org>
2023-11-27 [75680c3d8] Retire a few backwards compatibility macros.
-->
<listitem>
<para>
Remove some unused <link linkend="spi"><acronym>SPI</acronym></link>
macros (Bharath Rupireddy)
<ulink url="&commit_baseurl;75680c3d8">§</ulink>
</para>
</listitem>
<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2023-10-20 [2b5154bea] Extend ALTER OPERATOR to allow setting more optimization
-->
<listitem>
<para>
Allow <link linkend="sql-alteroperator"><command>ALTER
OPERATOR</command></link> to set more optimization attributes
(Tommy Pavlicek)
<ulink url="&commit_baseurl;2b5154bea">§</ulink>
</para>
<para>
This is useful for extensions.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-07-31 [c9af05465] Support custom wait events for wait event type "Extensio
Author: Michael Paquier <michael@paquier.xyz>
2023-10-04 [c8e318b1b] worker_spi: Rename custom wait event to "WorkerSpiMain"
Author: Michael Paquier <michael@paquier.xyz>
2023-10-05 [d61f2538a] postgres_fdw: Replace WAIT_EVENT_EXTENSION with custom w
Author: Michael Paquier <michael@paquier.xyz>
2023-10-05 [c789f0f6c] dblink: Replace WAIT_EVENT_EXTENSION with custom wait ev
-->
<listitem>
<para>
Allow extensions to define <link
linkend="xfunc-addin-wait-events">custom wait events</link>
(Masahiro Ikeda)
<ulink url="&commit_baseurl;c9af05465">§</ulink>
<ulink url="&commit_baseurl;c8e318b1b">§</ulink>
<ulink url="&commit_baseurl;d61f2538a">§</ulink>
<ulink url="&commit_baseurl;c789f0f6c">§</ulink>
</para>
<para>
Custom wait events have been added to <application><xref
linkend="postgres-fdw"/></application> and <application><xref
linkend="dblink"/></application>.
</para>
</listitem>
<!--
Author: Thomas Munro <tmunro@postgresql.org>
2024-04-08 [13453eedd] Add pg_buffercache_evict() function for testing.
-->
<listitem>
<para>
Add <application><xref linkend="pgbuffercache"/></application>
function <function>pg_buffercache_evict()</function> to allow shared
buffer eviction (Palak Chaturvedi, Thomas Munro)
<ulink url="&commit_baseurl;13453eedd">§</ulink>
</para>
<para>
This is useful for testing.
</para>
</listitem>
</itemizedlist>
<sect4 id="release-17-pgstatstatements">
<title><link linkend="pgstatstatements"><application>pg_stat_statements</application></link></title>
<itemizedlist>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-09-28 [11c34b342] Show parameters of CALL as constants in pg_stat_statemen
-->
<listitem>
<para>
Replace <link linkend="sql-call"><command>CALL</command></link>
parameters in <application>pg_stat_statements</application> with
placeholders (Sami Imseih)
<ulink url="&commit_baseurl;11c34b342">§</ulink>
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-07-27 [31de7e60d] Show savepoint names as constants in pg_stat_statements
-->
<listitem>
<para>
Replace savepoint names stored in
<structname>pg_stat_statements</structname> with placeholders
(Greg Sabino Mullane)
<ulink url="&commit_baseurl;31de7e60d">§</ulink>
</para>
<para>
This greatly reduces the number of entries needed to record <link
linkend="sql-savepoint"><command>SAVEPOINT</command></link>,
<link linkend="sql-release-savepoint"><command>RELEASE
SAVEPOINT</command></link>, and <link
linkend="sql-rollback-to"><command>ROLLBACK TO
SAVEPOINT</command></link> commands.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-08-12 [638d42a3c] Show GIDs of two-phase commit commands as constants in p
-->
<listitem>
<para>
Replace the two-phase commit <acronym>GID</acronym>s stored in
<structname>pg_stat_statements</structname> with placeholders
(Michael Paquier)
<ulink url="&commit_baseurl;638d42a3c">§</ulink>
</para>
<para>
This greatly reduces the number of entries needed to record
<link linkend="sql-prepare-transaction"><command>PREPARE
TRANSACTION</command></link>, <link
linkend="sql-commit-prepared"><command>COMMIT
PREPARED</command></link>, and <link
linkend="sql-rollback-prepared"><command>ROLLBACK
PREPARED</command></link>.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-08-27 [bb45156f3] Show names of DEALLOCATE as constants in pg_stat_stateme
-->
<listitem>
<para>
Track <link
linkend="sql-deallocate"><command>DEALLOCATE</command></link>
in <structname>pg_stat_statements</structname> (Dagfinn Ilmari
Mannsåker, Michael Paquier)
<ulink url="&commit_baseurl;bb45156f3">§</ulink>
</para>
<para>
<command>DEALLOCATE</command> names are stored in
<structname>pg_stat_statements</structname> as placeholders.
</para>
</listitem>
<!--
Author: Michael Paquier <michael@paquier.xyz>
2023-10-19 [295c36c0c] Add local_blk_{read|write}_time I/O timing statistics fo
Author: Michael Paquier <michael@paquier.xyz>
2023-10-19 [5147ab1dd] pg_stat_statements: Add local_blk_{read|write}_time
-->
<listitem>
<para>
Add local I/O block read/write timing statistics columns of
<structname>pg_stat_statements</structname> (Nazir Bilal Yavuz)
<ulink url="&commit_baseurl;295c36c0c">§</ulink>
<ulink url="&commit_baseurl;5147ab1dd">§</ulink>
</para>
<para>
The new columns are <structfield>local_blk_read_time</structfield>
and <structfield>local_blk_write_time</structfield>.
</para>
</listitem>
<!--
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
2023-09-08 [5a3423ad8] Add JIT deform_counter
-->
<listitem>
<para>
Add <acronym>JIT</acronym> deform_counter details to
<structname>pg_stat_statements</structname> (Dmitry Dolgov)
<ulink url="&commit_baseurl;5a3423ad8">§</ulink>
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2023-11-27 [dc9f8a798] Track statement entry timestamp in contrib/pg_stat_state
-->
<listitem>
<para>
Add optional fourth argument (<literal>minmax_only</literal>)
to <function>pg_stat_statements_reset()</function> to allow for
the resetting of only min/max statistics (Andrei Zubkov)
<ulink url="&commit_baseurl;dc9f8a798">§</ulink>
</para>
<para>
This argument defaults to <literal>false</literal>.
</para>
</listitem>
<!--
Author: Alexander Korotkov <akorotkov@postgresql.org>
2023-11-27 [dc9f8a798] Track statement entry timestamp in contrib/pg_stat_state
-->
<listitem>
<para>
Add <structname>pg_stat_statements</structname>
columns <structfield>stats_since</structfield> and
<structfield>minmax_stats_since</structfield> to track entry
creation time and last min/max reset time (Andrei Zubkov)
<ulink url="&commit_baseurl;dc9f8a798">§</ulink>
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
</sect2>
<sect2 id="release-17-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>Abhijit Menon-Sen</member>
<member>Adnan Dautovic</member>
<member>Aidar Imamov</member>
<member>Ajin Cherian</member>
<member>Akash Shankaran</member>
<member>Akshat Jaimini</member>
<member>Alaa Attya</member>
<member>Aleksander Alekseev</member>
<member>Aleksej Orlov</member>
<member>Alena Rybakina</member>
<member>Alex Hsieh</member>
<member>Alex Malek</member>
<member>Alex Shulgin</member>
<member>Alex Work</member>
<member>Alexander Korotkov</member>
<member>Alexander Kozhemyakin</member>
<member>Alexander Kuzmenkov</member>
<member>Alexander Lakhin</member>
<member>Alexander Pyhalov</member>
<member>Alexey Palazhchenko</member>
<member>Alfons Kemper</member>
<member>Álvaro Herrera</member>
<member>Amadeo Gallardo</member>
<member>Amit Kapila</member>
<member>Amit Langote</member>
<member>Amul Sul</member>
<member>Anastasia Lubennikova</member>
<member>Anatoly Zaretsky</member>
<member>Andreas Karlsson</member>
<member>Andreas Ulbrich</member>
<member>Andrei Lepikhov</member>
<member>Andrei Zubkov</member>
<member>Andres Freund</member>
<member>Andrew Alsup</member>
<member>Andrew Atkinson</member>
<member>Andrew Bille</member>
<member>Andrew Dunstan</member>
<member>Andrew Kane</member>
<member>Andrey Borodin</member>
<member>Andrey Rachitskiy</member>
<member>Andrey Sokolov</member>
<member>Andy Fan</member>
<member>Anthonin Bonnefoy</member>
<member>Anthony Hsu</member>
<member>Anton Kirilov</member>
<member>Anton Melnikov</member>
<member>Anton Voloshin</member>
<member>Antonin Houska</member>
<member>Ants Aasma</member>
<member>Antti Lampinen</member>
<member>Aramaki Zyake</member>
<member>Artem Anisimov</member>
<member>Artur Zakirov</member>
<member>Ashutosh Bapat</member>
<member>Ashutosh Sharma</member>
<member>Atsushi Torikoshi</member>
<member>Attila Gulyás</member>
<member>Ayush Tiwari</member>
<member>Ayush Vatsa</member>
<member>Bartosz Chrol</member>
<member>Benoît Ryder</member>
<member>Bernd Helmle</member>
<member>Bertrand Drouvot</member>
<member>Bharath Rupireddy</member>
<member>Bo Andreson</member>
<member>Boshomi Phenix</member>
<member>Bowen Shi</member>
<member>Boyu Yang</member>
<member>Bruce Momjian</member>
<member>Cameron Vogt</member>
<member>Cary Huang</member>
<member>Cédric Villemain</member>
<member>Changhong Fei</member>
<member>Chantal Keller</member>
<member>Chapman Flack</member>
<member>Chengxi Sun</member>
<member>Chris Travers</member>
<member>Christian Maurer</member>
<member>Christian Stork</member>
<member>Christoph Berg</member>
<member>Christoph Heiss</member>
<member>Christophe Courtois</member>
<member>Christopher Kline</member>
<member>Claudio Freire</member>
<member>Colin Caine</member>
<member>Corey Huinker</member>
<member>Curt Kolovson</member>
<member>Dag Lem</member>
<member>Dagfinn Ilmari Mannsåker</member>
<member>Damir Belyalov</member>
<member>Daniel Fredouille</member>
<member>Daniel Gustafsson</member>
<member>Daniel Shelepanov</member>
<member>Daniel Vérité</member>
<member>Daniel Westermann</member>
<member>Darren Rush</member>
<member>Dave Cramer</member>
<member>Dave Page</member>
<member>David Christensen</member>
<member>David Cook</member>
<member>David G. Johnston</member>
<member>David Geier</member>
<member>David Hillman</member>
<member>David Perez</member>
<member>David Rowley</member>
<member>David Steele</member>
<member>David Wheeler</member>
<member>David Zhang</member>
<member>Dean Rasheed</member>
<member>Denis Erokhin</member>
<member>Denis Laxalde</member>
<member>Devrim Gündüz</member>
<member>Dilip Kumar</member>
<member>Dimitrios Apostolou</member>
<member>Dmitry Dolgov</member>
<member>Dmitry Koval</member>
<member>Dmitry Vasiliev</member>
<member>Dominique Devienne</member>
<member>Dong Wook Lee</member>
<member>Donghang Lin</member>
<member>Dongming Liu</member>
<member>Drew Callahan</member>
<member>Drew Kimball</member>
<member>Dzmitry Jachnik</member>
<member>Egor Chindyaskin</member>
<member>Egor Rogov</member>
<member>Ekaterina Kiryanova</member>
<member>Elena Indrupskaya</member>
<member>Elizabeth Christensen</member>
<member>Emre Hasegeli</member>
<member>Eric Cyr</member>
<member>Eric Mutta</member>
<member>Eric Radman</member>
<member>Eric Ridge</member>
<member>Erik Rijkers</member>
<member>Erik Wienhold</member>
<member>Erki Eessaar</member>
<member>Ethan Mertz</member>
<member>Etsuro Fujita</member>
<member>Eugen Konkov</member>
<member>Euler Taveira</member>
<member>Evan Macbeth</member>
<member>Evgeny Morozov</member>
<member>Fabien Coelho</member>
<member>Fabrízio de Royes Mello</member>
<member>Farias de Oliveira</member>
<member>Feliphe Pozzer</member>
<member>Fire Emerald</member>
<member>Flavien Guedez</member>
<member>Floris Van Nee</member>
<member>Francesco Degrassi</member>
<member>Frank Streitzig</member>
<member>Gabriele Bartolini</member>
<member>Garrett Thornburg</member>
<member>Gavin Flower</member>
<member>Gavin Panella</member>
<member>Gilles Darold</member>
<member>Gilles Parc</member>
<member>Grant Gryczan</member>
<member>Greg Nancarrow</member>
<member>Greg Sabino Mullane</member>
<member>Greg Stark</member>
<member>Gurjeet Singh</member>
<member>Haiying Tang</member>
<member>Hajime Matsunaga</member>
<member>Hal Takahara</member>
<member>Hanefi Onaldi</member>
<member>Hannu Krosing</member>
<member>Hans Buschmann</member>
<member>Hao Wu</member>
<member>Hao Zhang</member>
<member>Hayato Kuroda</member>
<member>Heikki Linnakangas</member>
<member>Hemanth Sandrana</member>
<member>Himanshu Upadhyaya</member>
<member>Hironobu Suzuki</member>
<member>Holger Reise</member>
<member>Hongxu Ma</member>
<member>Hongyu Song</member>
<member>Horst Reiterer</member>
<member>Hubert Lubaczewski</member>
<member>Hywel Carver</member>
<member>Ian Barwick</member>
<member>Ian Ilyasov</member>
<member>Ilya Nenashev</member>
<member>Isaac Morland</member>
<member>Israel Barth Rubio</member>
<member>Ivan Kartyshov</member>
<member>Ivan Kolombet</member>
<member>Ivan Lazarev</member>
<member>Ivan Panchenko</member>
<member>Ivan Trofimov</member>
<member>Jacob Champion</member>
<member>Jacob Speidel</member>
<member>Jacques Combrink</member>
<member>Jaime Casanova</member>
<member>Jakub Wartak</member>
<member>James Coleman</member>
<member>James Pang</member>
<member>Jani Rahkola</member>
<member>Japin Li</member>
<member>Jeevan Chalke</member>
<member>Jeff Davis</member>
<member>Jeff Janes</member>
<member>Jelte Fennema-Nio</member>
<member>Jeremy Schneider</member>
<member>Jian Guo</member>
<member>Jian He</member>
<member>Jim Jones</member>
<member>Jim Keener</member>
<member>Jim Nasby</member>
<member>Jingtang Zhang</member>
<member>Jingxian Li</member>
<member>Jingzhou Fu</member>
<member>Joe Conway</member>
<member>Joel Jacobson</member>
<member>John Ekins</member>
<member>John Hsu</member>
<member>John Morris</member>
<member>John Naylor</member>
<member>John Russell</member>
<member>Jonathan Katz</member>
<member>Jordi Gutiérrez</member>
<member>Joseph Koshakow</member>
<member>Josh Kupershmidt</member>
<member>Joshua D. Drake</member>
<member>Joshua Uyehara</member>
<member>Jubilee Young</member>
<member>Julien Rouhaud</member>
<member>Junwang Zhao</member>
<member>Justin Pryzby</member>
<member>Kaido Vaikla</member>
<member>Kambam Vinay</member>
<member>Karen Talarico</member>
<member>Karina Litskevich</member>
<member>Karl O. Pinc</member>
<member>Kashif Zeeshan</member>
<member>Kim Johan Andersson</member>
<member>Kirill Reshke</member>
<member>Kirk Parker</member>
<member>Kirk Wolak</member>
<member>Kisoon Kwon</member>
<member>Koen De Groote</member>
<member>Kohei KaiGai</member>
<member>Kong Man</member>
<member>Konstantin Knizhnik</member>
<member>Kouhei Sutou</member>
<member>Krishnakumar R</member>
<member>Kuntal Ghosh</member>
<member>Kurt Roeckx</member>
<member>Kyotaro Horiguchi</member>
<member>Lang Liu</member>
<member>Lars Kanis</member>
<member>Laurenz Albe</member>
<member>Lauri Laanmets</member>
<member>Legs Mansion</member>
<member>Lukas Fittl</member>
<member>Magnus Hagander</member>
<member>Mahendrakar Srinivasarao</member>
<member>Maiquel Grassi</member>
<member>Manos Emmanouilidis</member>
<member>Marcel Hofstetter</member>
<member>Marcos Pegoraro</member>
<member>Marian Krucina</member>
<member>Marina Polyakova</member>
<member>Mark Dilger</member>
<member>Mark Guertin</member>
<member>Mark Sloan</member>
<member>Markus Winand</member>
<member>Marlene Reiterer</member>
<member>Martín Marqués</member>
<member>Martin Nash</member>
<member>Martin Schlossarek</member>
<member>Masahiko Sawada</member>
<member>Masahiro Ikeda</member>
<member>Masaki Kuwamura</member>
<member>Masao Fujii</member>
<member>Mason Sharp</member>
<member>Matheus Alcantara</member>
<member>Mats Kindahl</member>
<member>Matthias Kuhn</member>
<member>Matthias van de Meent</member>
<member>Maxim Boguk</member>
<member>Maxim Orlov</member>
<member>Maxim Yablokov</member>
<member>Maxime Boyer</member>
<member>Melanie Plageman</member>
<member>Melih Mutlu</member>
<member>Merlin Moncure</member>
<member>Micah Gate</member>
<member>Michael Banck</member>
<member>Michael Bondarenko</member>
<member>Michael Paquier</member>
<member>Michael Wang</member>
<member>Michael Zhilin</member>
<member>Michail Nikolaev</member>
<member>Michal Bartak</member>
<member>Michal Kleczek</member>
<member>Mikhail Gribkov</member>
<member>Mingli Zhang</member>
<member>Miroslav Bendik</member>
<member>Mitsuru Hinata</member>
<member>Moaaz Assali</member>
<member>Muralikrishna Bandaru</member>
<member>Nathan Bossart</member>
<member>Nazir Bilal Yavuz</member>
<member>Neil Tiffin</member>
<member>Ngigi Waithaka</member>
<member>Nikhil Benesch</member>
<member>Nikhil Raj</member>
<member>Nikita Glukhov</member>
<member>Nikita Kalinin</member>
<member>Nikita Malakhov</member>
<member>Nikolay Samokhvalov</member>
<member>Nikolay Shaplov</member>
<member>Nisha Moond</member>
<member>Nishant Sharma</member>
<member>Nitin Jadhav</member>
<member>Noah Misch</member>
<member>Noriyoshi Shinoda</member>
<member>Ole Peder Brandtzæg</member>
<member>Oleg Bartunov</member>
<member>Oleg Sibiryakov</member>
<member>Oleg Tselebrovskiy</member>
<member>Olleg Samoylov</member>
<member>Onder Kalaci</member>
<member>Ondrej Navratil</member>
<member>Pablo Kharo</member>
<member>Palak Chaturvedi</member>
<member>Pantelis Theodosiou</member>
<member>Paul Amonson</member>
<member>Paul Jungwirth</member>
<member>Pavel Borisov</member>
<member>Pavel Kulakov</member>
<member>Pavel Luzanov</member>
<member>Pavel Stehule</member>
<member>Pavlo Golub</member>
<member>Pedro Gallegos</member>
<member>Pete Storer</member>
<member>Peter Eisentraut</member>
<member>Peter Geoghegan</member>
<member>Peter Smith</member>
<member>Philip Warner</member>
<member>Philipp Salvisberg</member>
<member>Pierre Ducroquet</member>
<member>Pierre Fortin</member>
<member>Przemyslaw Sztoch</member>
<member>Quynh Tran</member>
<member>Raghuveer Devulapalli</member>
<member>Ranier Vilela</member>
<member>Reid Thompson</member>
<member>Rian McGuire</member>
<member>Richard Guo</member>
<member>Richard Vesely</member>
<member>Ridvan Korkmaz</member>
<member>Robert Haas</member>
<member>Robert Scott</member>
<member>Robert Treat</member>
<member>Roberto Mello</member>
<member>Robins Tharakan</member>
<member>Roman Lozko</member>
<member>Ronan Dunklau</member>
<member>Rui Zhao</member>
<member>Ryo Matsumura</member>
<member>Ryoga Yoshida</member>
<member>Sameer Kumar</member>
<member>Sami Imseih</member>
<member>Samuel Dussault</member>
<member>Sanjay Minni</member>
<member>Satoru Koizumi</member>
<member>Sebastian Skalacki</member>
<member>Sergei Glukhov</member>
<member>Sergei Kornilov</member>
<member>Sergey Prokhorenko</member>
<member>Sergey Sargsyan</member>
<member>Sergey Shinderuk</member>
<member>Shaozhong Shi</member>
<member>Shaun Thomas</member>
<member>Shay Rojansky</member>
<member>Shihao Zhong</member>
<member>Shinya Kato</member>
<member>Shlok Kyal</member>
<member>Shruthi Gowda</member>
<member>Shubham Khanna</member>
<member>Shulin Zhou</member>
<member>Shveta Malik</member>
<member>Simon Riggs</member>
<member>Soumyadeep Chakraborty</member>
<member>Sravan Velagandula</member>
<member>Stan Hu</member>
<member>Stepan Neretin</member>
<member>Stepan Rutz</member>
<member>Stéphane Schildknecht</member>
<member>Stephane Tachoires</member>
<member>Stephen Frost</member>
<member>Steve Atkins</member>
<member>Steve Chavez</member>
<member>Suraj Khamkar</member>
<member>Suraj Kharage</member>
<member>Svante Richter</member>
<member>Svetlana Derevyanko</member>
<member>Sylvain Frandaz</member>
<member>Takayuki Tsunakawa</member>
<member>Tatsuo Ishii</member>
<member>Tatsuro Yamada</member>
<member>Tender Wang</member>
<member>Teodor Sigaev</member>
<member>Thom Brown</member>
<member>Thomas Munro</member>
<member>Tim Carey-Smith</member>
<member>Tim Needham</member>
<member>Tim Palmer</member>
<member>Tobias Bussmann</member>
<member>Tom Lane</member>
<member>Tomas Vondra</member>
<member>Tommy Pavlicek</member>
<member>Tomonari Katsumata</member>
<member>Tristan Partin</member>
<member>Tristen Raab</member>
<member>Tung Nguyen</member>
<member>Umair Shahid</member>
<member>Uwe Binder</member>
<member>Valerie Woolard</member>
<member>Vallimaharajan G</member>
<member>Vasya Boytsov</member>
<member>Victor Wagner</member>
<member>Victor Yegorov</member>
<member>Victoria Shepard</member>
<member>Vidushi Gupta</member>
<member>Vignesh C</member>
<member>Vik Fearing</member>
<member>Viktor Leis</member>
<member>Vinayak Pokale</member>
<member>Vitaly Burovoy</member>
<member>Vojtech Benes</member>
<member>Wei Sun</member>
<member>Wei Wang</member>
<member>Wenjiang Zhang</member>
<member>Will Mortensen</member>
<member>Willi Mann</member>
<member>Wolfgang Walther</member>
<member>Xiang Liu</member>
<member>Xiaoran Wang</member>
<member>Xing Guo</member>
<member>Xudong Yang</member>
<member>Yahor Yuzefovich</member>
<member>Yajun Hu</member>
<member>Yaroslav Saburov</member>
<member>Yong Li</member>
<member>Yongtao Huang</member>
<member>Yugo Nagata</member>
<member>Yuhang Qiu</member>
<member>Yuki Seino</member>
<member>Yura Sokolov</member>
<member>Yurii Rashkovskii</member>
<member>Yuuki Fujii</member>
<member>Yuya Watari</member>
<member>Yves Colin</member>
<member>Zhihong Yu</member>
<member>Zhijie Hou</member>
<member>Zongliang Quan</member>
<member>Zubeyr Eryilmaz</member>
<member>Zuming Jiang</member>
</simplelist>
</sect2>
</sect1>
|