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
|
<!-- doc/src/sgml/release-9.5.sgml -->
<!-- See header comment in release.sgml about typical markup -->
<sect1 id="release-9-5">
<title>Release 9.5</title>
<note>
<title>Release Date</title>
<para>AS OF 2015-06-01</para>
<simpara>2015-XX-XX</simpara>
</note>
<sect2>
<title>Overview</title>
<para>
Major enhancements in <productname>PostgreSQL</> 9.5 include:
</para>
<!-- This list duplicates items below, but without authors or details-->
<itemizedlist>
<listitem>
<para>
</para>
</listitem>
</itemizedlist>
<para>
The above items are explained in more detail in the sections below.
</para>
</sect2>
<sect2>
<title>Migration to Version 9.5</title>
<para>
A dump/restore using <xref linkend="app-pg-dumpall">, or use
of <xref linkend="pgupgrade">, is required for those wishing to migrate
data from any previous release.
</para>
<para>
Version 9.5 contains a number of changes that may affect compatibility
with previous releases. Observe the following incompatibilities:
</para>
<itemizedlist>
<listitem>
<para>
Adjust <link linkend="functions-comparison">operator precedence</>
to match the <acronym>SQL</> standard (Tom Lane)
</para>
<para>
"<" and ">" now have the same precedence as "<="
">=" and "<>", and <literal>IS</> now has lower
precedence. <literal>NOT</> now also has symmetric precedence.
The <acronym>GUC</> <varname>operator_precedence_warning</> can be
enabled to warn about queries where the precedence has changed.
</para>
</listitem>
<listitem>
<para>
Use cast conversions for <application>PL/pgSQL</> type conversions,
rather than converting to and from text (Tom Lane)
</para>
<para>
This causes conversions of booleans to strings to
return <literal>true</> or <literal>false</>, not
<literal>t</>/<literal>f</>.
</para>
</listitem>
<listitem>
<para>
Allow special characters in <link linkend="libpq-envars">server
startup option values</> to be escaped with a backslash (Andres
Freund)
</para>
<para>
This allows characters like spaces to be passed inside option values.
Passing a backslash now requires supplying a double-backslash.
</para>
</listitem>
<listitem>
<para>
Set the default value of <link
linkend="gssapi-auth"><varname>include_realm</></> to not remove
the <acronym>GSS</> and <acronym>SSPI</> realm from the principal
(Stephen Frost)
</para>
</listitem>
<listitem>
<para>
Fix <link linkend="SQL-REASSIGN-OWNED"><command>REASSIGN</></>
and <link linkend="SQL-ALTERTABLE"><command>ALTER OWNER TO</></>
to properly reassign ownership of types, foreign data wrappers,
and foreign servers (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Remove server-side <acronym>GUC</> <varname>autocommit</>, which
was already deprecated and non-operational (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Remove <link
linkend="catalog-pg-authid"><structname>pg_authid</>.<structname>rolcatupdate</></>,
as it had no purpose (Adam Brightwell)
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2>
<title>Changes</title>
<para>
Below you will find a detailed account of the changes between
<productname>PostgreSQL</productname> 9.5 and the previous major
release.
</para>
<sect3>
<title>Server</title>
<sect4>
<title>Indexes</title>
<itemizedlist>
<listitem>
<para>
Add <link linkend="BRIN">Block Range Indexes</> (<acronym>BRIN</>)
(Álvaro Herrera, Heikki Linnakangas, Emre Hasegeli)
</para>
<para>
<acronym>BRIN</> indexes are very compact and store the min/max
values for a range of heap blocks.
</para>
</listitem>
<listitem>
<para>
Allow queries to perform accurate distance filtering of
bounding-box-indexed objects (polygons, circles) using <link
linkend="GiST">GiST</> indexes (Alexander Korotkov, Heikki
Linnakangas)
</para>
<para>
Previously, a common table expression was required to return a
large number of rows ordered by bounding-box distance, and then
filtered further with a more accurate non-bounding-box distance
calculation.
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="GiST">GiST</> indexes to perform index-only
scans (Anastasia Lubennikova, Heikki Linnakangas, Andreas Karlsson)
</para>
</listitem>
<listitem>
<para>
Add <acronym>GUC</> <link
linkend="guc-gin-pending-list-limit"><varname>gin_pending_list_limit</></>
to control the size of <acronym>GIN</> pending lists (Fujii Masao)
</para>
<para>
Previously this was controlled by <link
linkend="guc-work-mem"><varname>work_mem</></>. This can also
be set as an index storage parameter.
</para>
</listitem>
<listitem>
<para>
Issue a warning during the creation of <link
linkend="SQL-CREATEINDEX">hash</> indexes because they are not
crash-safe (Bruce Momjian)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>General Performance</title>
<itemizedlist>
<listitem>
<para>
Improve the speed of sorting character and numeric fields (Peter
Geoghegan, Andrew Gierth, Robert Haas)
</para>
</listitem>
<listitem>
<para>
Improve in-memory hash performance (Tomas Vondra, Robert Haas)
</para>
</listitem>
<listitem>
<para>
Improve concurrency of <link linkend="guc-shared-buffers">shared
buffer</> replacement (Robert Haas, Amit Kapila)
</para>
</listitem>
<listitem>
<para>
Improve concurrent locking and buffer scan performance (Andres
Freund, Kevin Grittner)
</para>
</listitem>
<listitem>
<para>
Allow the optimizer to remove unnecessary references to left
outer join subqueries (David Rowley)
</para>
</listitem>
<listitem>
<para>
Allow pushdown of query restrictions into <link
linkend="functions-window">window functions</>, where appropriate
(David Rowley)
</para>
</listitem>
<listitem>
<para>
Speed up <acronym>CRC</> (cyclic redundancy check) computations
(Abhijit Menon-Sen, Heikki Linnakangas)
</para>
<para>
Also use <acronym>CPU</> instructions for <acronym>CRC</>
calculations, if supported
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Monitoring</title>
<itemizedlist>
<listitem>
<para>
Add per-table autovacuum logging control via
<varname>log_min_autovacuum_duration</> (Michael Paquier)
</para>
<para>
NOT DOCUMENTED?
</para>
</listitem>
<listitem>
<para>
Add <acronym>GUC</> variable <link
linkend="guc-cluster-name"><varname>cluster_name</></> (Thomas
Munro)
</para>
<para>
This string, set in <link
linkend="config-setting-configuration-file"><filename>postgresql.conf</></>,
allows clients to query the cluster name. This name also appears
in the process title, allowing for easier grouping of processes
belonging to the same cluster.
</para>
</listitem>
<listitem>
<para>
Prevent non-superusers from changing <link
linkend="guc-log-disconnections"><varname>log_disconnections</></>
on connection startup (Fujii Masao)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><acronym>SSL</></title>
<itemizedlist>
<listitem>
<para>
Check <link linkend="libpq-ssl"><quote>Subject Alternative
Names</></> in <acronym>SSL</> server certificates, if present
(Alexey Klyukin)
</para>
<para>
Their presence replaces checks against the certificate's
<quote>Common Name</>.
</para>
</listitem>
<listitem>
<para>
Add system view <link
linkend="pg-stat-ssl-view"><structname>pg_stat_ssl</></> to report
<acronym>SSL</> connection information (Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
Add <application>libpq</> function <link
linkend="libpq-pqsslAttribute"><function>PQsslAttribute()</></>
that returns <acronym>SSL</> information (Heikki Linnakangas)
</para>
<para>
While <link linkend="libpq-pqgetssl"><function>PQgetssl()</></>
can still be used to then call <productname>OpenSSL</>
functions, <function>PQsslAttribute()</> returns <acronym>SSL</>
information in an <acronym>SSL</>-implementation-independent way.
(Future versions of libpq might support other <acronym>SSL</>
implementations.)
</para>
</listitem>
<listitem>
<para>
Have <application>libpq</> honor any <productname>OpenSSL</>
thread callbacks (Jan Urbanski)
</para>
<para>
Previously they were overwritten.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Server Settings</title>
<itemizedlist>
<listitem>
<para>
Replace <varname>checkpoint_segments</> with <link
linkend="guc-min-wal-size"><varname>min_wal_size</></> and
<link linkend="guc-max-wal-size"><varname>max_wal_size</></>
(Heikki Linnakangas)
</para>
<para>
This allows the allocation of a large number of <acronym>WAL</>
files without keeping them if they are not needed.
</para>
</listitem>
<listitem>
<para>
Add <acronym>GUC</> <link
linkend="guc-wal-compression"><varname>wal_compression</></> to
enable compression of full page images stored in <acronym>WAL</>
(Rahila Syed, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Allow the recording of transaction
commit timestamps when <acronym>GUC</> <link
linkend="guc-track-commit-timestamp"><varname>track_commit_timestamp</></>
is enabled (Álvaro Herrera, Petr Jelínek)
</para>
<para>
Timestamp information can be accessed using functions <link
linkend="functions-commit-timestamp"><function>pg_xact_commit_timestamp()</></>
and <function>pg_last_committed_xact()</>.
</para>
</listitem>
<listitem>
<para>
Allow <link
linkend="guc-local-preload-libraries"><varname>local_preload_libraries</></>
to be set by <command>ALTER ROLE SET</> (Peter Eisentraut,
Kyotaro Horiguchi)
</para>
</listitem>
<listitem>
<para>
Allow running <link linkend="autovacuum">autovacuum workers</>
to respond to configuration parameter changes (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Make <acronym>GUC</> <link
linkend="guc-debug-assertions"><varname>debug_assertions</></>
read-only (Andres Freund)
</para>
<para>
This means that assertions can no longer be turned
off once enabled at compile-time, allowing for more
efficient code optimization. This also removed the <link
linkend="app-postgres-options">postgres</> <option>-A</> option.
</para>
</listitem>
<listitem>
<para>
Allow setting <link
linkend="guc-effective-io-concurrency"><varname>effective_io_concurrency</></>
on systems where it has no effect (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Add environment variables <link
linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_FILE</></>
and <link
linkend="linux-memory-overcommit"><envar>PG_OOM_ADJUST_VALUE</></>
to control Linux <acronym>OOM</> killer (Gurjeet Singh)
</para>
<para>
The previous <acronym>OOM</> control involved a compile-time
option.
</para>
</listitem>
<listitem>
<para>
Add function and view <link
linkend="view-pg-file-settings"><function>pg_file_settings</></>
to show the source of <acronym>GUC</> values set in configuration
files (Sawada Masahiko)
</para>
</listitem>
<listitem>
<para>
Add <structname>pending_restart</> to the system view <link
linkend="view-pg-settings"><structname>pg_settings</></> to
indicate a change is pending a restart (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="SQL-ALTERSYSTEM"><command>ALTER SYSTEM</></>
values to be reset with <command>ALTER SYSTEM RESET</> (Vik
Fearing)
</para>
<para>
This removes the setting from <filename>postgresql.auto.conf</>.
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Replication and Recovery</title>
<itemizedlist>
<listitem>
<para>
Add <link linkend="recovery-config"><filename>recovery.conf</></>
parameter <link
linkend="recovery-target-action"><varname>recovery_target_action</></>
to control post-recovery activity (Petr Petr Jelínek)
</para>
<para>
<acronym>GUC</> <varname>pause_at_recovery_target</> was also
removed.
</para>
</listitem>
<listitem>
<para>
Add <link linkend="guc-archive-mode"><varname>archive_mode</></>
<literal>always</> to allow standbys to always archive received
<acronym>WAL</> files (Fujii Masao)
</para>
</listitem>
<listitem>
<para>
Add <acronym>GUC</> <link
linkend="guc-wal-retrieve-retry-interval"><varname>wal_retrieve_retry_interval</></>
to control <acronym>WAL</> read retry after failure (Alexey
Vasiliev, Michael Paquier)
</para>
<para>
This is particularly helpful for warm standbys.
</para>
</listitem>
<listitem>
<para>
Archive <acronym>WAL</> files with suffix <literal>.partial</>
during standby promotion (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Add <acronym>GUC</> <link
linkend="guc-log-replication-commands"><varname>log_replication_commands</></>
to log replication commands (Fujii Masao)
</para>
<para>
By default, replication commands, e.g. <link
linkend="protocol-replication"><literal>IDENTIFY_SYSTEM</></>,
are not logged, even when <link
linkend="guc-log-statement"><varname>log_statement</></> is set
to <literal>all</>.
</para>
</listitem>
<listitem>
<para>
Allow the <link linkend="pg-replication-origin-create">labeling</>
of the origin of logical replication changes (Andres Freund)
</para>
<para>
This helps with change tracking.
</para>
</listitem>
<listitem>
<para>
Report the backends holding replication slots in <link
linkend="catalog-pg-replication-slots"><structname>pg_replication_slots</></>
(Craig Ringer)
</para>
<para>
The new output column is <structname>active_pid</>.
</para>
</listitem>
<listitem>
<para>
Allow <filename>recovery.conf</>'s <link
linkend="primary-conninfo"><varname>primary_conninfo</></> to
use connection <acronym>URI</>s, e.g. <literal>postgres://</>
(Alexander Shulgin)
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3>
<title>Queries</title>
<itemizedlist>
<listitem>
<para>
Allow <link linkend="sql-on-conflict"><command>INSERTS</></>
that would generate constraint conflicts to be turned into
<command>UPDATE</>s or ignored (Peter Geoghegan, Heikki
Linnakangas, Andres Freund)
</para>
<para>
The syntax is <command>INSERT ... ON CONFLICT DO NOTHING/UPDATE</>.
This is the Postgres implementation of the popular
<command>UPSERT</> command.
</para>
</listitem>
<listitem>
<para>
Add <literal>GROUP BY</> analysis functions <link
linkend="queries-grouping-sets"><literal>GROUPING SETS</></>,
<link linkend="queries-grouping-sets"><literal>CUBE</></> and
<link linkend="queries-grouping-sets"><literal>ROLLUP</></>
(Andrew Gierth, Atri Sharma)
</para>
</listitem>
<listitem>
<para>
Allow multi-column <link
linkend="SQL-UPDATE"><command>UPDATE</></>s with a single subselect
(Tom Lane)
</para>
<para>
This is accomplished using the syntax <command>UPDATE tab SET
(col1, col2, ...) = (SELECT ...)</>.
</para>
</listitem>
<listitem>
<para>
Add new <link linkend="SQL-SELECT"><command>SELECT</></> option
<literal>SKIP LOCKED</> to skip locked rows (Thomas Munro)
</para>
<para>
This does not throw an error for locked rows like
<literal>NOWAIT</> does.
</para>
</listitem>
<listitem>
<para>
Add <link linkend="SQL-SELECT"><command>SELECT</></> option
<literal>TABLESAMPLE</> to return a subset of a table (Petr
Petr Jelínek)
</para>
</listitem>
<listitem>
<para>
Suggest possible matches for mistyped column names (Peter
Geoghegan, Robert Haas)
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3>
<title>Utility Commands</title>
<itemizedlist>
<listitem>
<para>
Add more details about sort ordering in <link
linkend="SQL-EXPLAIN"><command>EXPLAIN</></> output (Marius Timmer,
Lukas Kreft, Arne Scheffer)
</para>
<para>
Details include <literal>COLLATE</>, <literal>DESC</>,
<literal>USING</>, and <literal>NULLS FIRST</><literal>/LAST</>.
</para>
</listitem>
<listitem>
<para>
Have <link linkend="SQL-VACUUM"><command>VACUUM</></> log the
number of pages skipped due to pins (Jim Nasby)
</para>
</listitem>
<listitem>
<para>
Have <link linkend="SQL-TRUNCATE"><command>TRUNCATE</></> properly
update the <literal>pg_stat</>* tuple counters (Alexander Shulgin)
</para>
</listitem>
</itemizedlist>
<sect4>
<title><xref linkend="SQL-REINDEX"></title>
<itemizedlist>
<listitem>
<para>
Allow <command>REINDEX</> to reindex an entire schema using the
<literal>SCHEMA</> option (Sawada Masahiko)
</para>
</listitem>
<listitem>
<para>
Add <literal>VERBOSE</> option to <command>REINDEX</> (Sawada
Masahiko)
</para>
</listitem>
<listitem>
<para>
Prevent <command>REINDEX DATABASE</> and <command>SCHEMA</>
from outputting object names, unless <literal>VERBOSE</> is used
(Simon Riggs)
</para>
</listitem>
<listitem>
<para>
Remove obsolete <literal>FORCE</> option from <command>REINDEX</>
(Fujii Masao)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Object Manipulation</title>
<itemizedlist>
<listitem>
<para>
Add row-level security control (Craig Ringer, KaiGai Kohei,
Adam Brightwell, Dean Rasheed, Stephen Frost)
</para>
<para>
This controls viewing and adding/modifying rows via new commands
<link linkend="SQL-CREATEPOLICY"><command>CREATE</></>/<link
linkend="SQL-ALTERPOLICY"><command>ALTER</></>/<link
linkend="SQL-DROPPOLICY"><command>DROP POLICY</></> and <link
linkend="SQL-ALTERTABLE"><command>ALTER TABLE ... ENABLE/DISABLE
ROW SECURITY</></>.
</para>
</listitem>
<listitem>
<para>
Allow control of table <acronym>WAL</> logging after table creation
with <link linkend="SQL-ALTERTABLE"><command>ALTER TABLE .. SET
LOGGED / UNLOGGED</></> (Fabrízio de Royes Mello)
</para>
</listitem>
<listitem>
<para>
Add <literal>IF NOT EXISTS</> clause to <link
linkend="SQL-CREATETABLEAS"><command>CREATE TABLE AS</></>,
<link linkend="SQL-CREATEINDEX"><command>CREATE INDEX</></>,
<link linkend="SQL-CREATESEQUENCE"><command>CREATE SEQUENCE</></>,
and <link linkend="SQL-CREATEMATERIALIZEDVIEW"><command>CREATE
MATERIALIZED VIEW</></> (Fabrízio de Royes Mello)
</para>
</listitem>
<listitem>
<para>
Add support for <literal>IF EXISTS</> to <link
linkend="SQL-ALTERTABLE"><command>ALTER TABLE ... RENAME
CONSTRAINT</></> (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Allow <literal>CURRENT</><literal>/SESSION_USER</> to specify the
current user in some commands (Kyotaro Horiguchi, Álvaro
Herrera)
</para>
<para>
Commands include <link linkend="SQL-ALTERUSER"><command>ALTER
USER</></>,
<link linkend="SQL-ALTERGROUP"><command>ALTER
GROUP</></>, <link linkend="SQL-ALTERROLE"><command>ALTER
ROLE</></>, <link linkend="SQL-GRANT"><command>GRANT</></>,
and various <command>ALTER OBJECT / OWNER TO</> commands.
</para>
</listitem>
<listitem>
<para>
Allow comments on <link linkend="SQL-CREATEDOMAIN">domain
constraints</> (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Reduce lock levels of some create and alter trigger and foreign
key commands (Simon Riggs, Andreas Karlsson)
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="SQL-LOCK"><command>LOCK TABLE .. ROW EXCLUSIVE
MODE</></> for those with <command>INSERT</> privileges (Stephen
Frost)
</para>
<para>
Previously only <command>UPDATE</>, <command>DELETE</>, and
<command>TRUNCATE</> privileges allowed this.
</para>
</listitem>
<listitem>
<para>
Apply table and domain <literal>CHECK</> constraints in name order
(Tom Lane)
</para>
<para>
The previous order was indeterminate.
</para>
</listitem>
<listitem>
<para>
Allow <link
linkend="SQL-CREATEDATABASE"><command>CREATE</></>/<link
linkend="SQL-ALTERDATABASE"><command>ALTER DATABASE</></>
to manipulate <structname>datistemplate</> and
<structname>datallowconn</> (Vik Fearing)
</para>
<para>
This allows these database settings to be
changed more easily than modifying the <link
linkend="catalog-pg-database"><structname>pg_database</></>
system table.
</para>
</listitem>
</itemizedlist>
<sect4>
<title><xref linkend="SQL-CREATEFOREIGNDATAWRAPPER"></title>
<itemizedlist>
<listitem>
<para>
Add support for <link
linkend="SQL-IMPORTFOREIGNSCHEMA"><command>IMPORT FOREIGN
SCHEMA</></> (Ronan Dunklau, Michael Paquier, Tom Lane)
</para>
<para>
This allows the creation of local foreign tables definitions
that match the remote table structure. Currently, only the
<link linkend="postgres-fdw"><application>postgres_fdw</></>
foreign data wrapper supports this feature.
</para>
</listitem>
<listitem>
<para>
Allow foreign tables to participate in inheritance (Shigeru Hanada,
Etsuro Fujita)
</para>
<para>
This also allows foreign tables to mark check constraints as not
valid, and to set storage and <type>OID</> characteristics.
</para>
</listitem>
<listitem>
<para>
Allow <literal>CHECK</> constraints to be placed on foreign tables
(Shigeru Hanada, Etsuro Fujita)
</para>
<para>
These checks are assumed to be enforced on the remote server,
and are not checked locally. However, they are considered for
optimization and constraint-exclusion checking.
</para>
</listitem>
<listitem>
<para>
Allow foreign data wrappers and custom scans to implement join
pushdown (KaiGai Kohei)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><xref linkend="SQL-CREATEEVENTTRIGGER"></title>
<itemizedlist>
<listitem>
<para>
Add <link
linkend="pg-event-trigger-ddl-command-end-functions"><function>pg_event_trigger_ddl_commands</></>
set-returning function, which returns <acronym>DDL</> activity
associated with event triggers (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Allow event triggers on table rewrites caused by <link
linkend="SQL-ALTERTABLE"><command>ALTER TABLE</></> (Dimitri
Fontaine)
</para>
</listitem>
<listitem>
<para>
Add event trigger support for database-level <link
linkend="SQL-COMMENT"><command>COMMENT</></>, <link
linkend="SQL-SECURITY-LABEL"><command>SECURITY LABEL</></>,
and <link linkend="SQL-GRANT"><command>GRANT</></>/<link
linkend="SQL-REVOKE"><command>REVOKE</></> (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Add columns to the output of <link
linkend="pg-event-trigger-sql-drop-functions"><function>pg_event_trigger_dropped_objects</></>
(Álvaro Herrera)
</para>
<para>
This allows simpler processing of delete operations.
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Data Types</title>
<itemizedlist>
<listitem>
<para>
Allow the <link linkend="datatype-xml"><type>XML</></> data type
to accept empty or all-whitespace values (Peter Eisentraut)
</para>
<para>
This is required by the <acronym>SQL</>/<acronym>XML</>
specification.
</para>
</listitem>
<listitem>
<para>
Fix <type>XML</> <link
linkend="functions-xml-processing"><function>xpath()</></> handling
to return namespace declarations even if the namespace is in a
parent element (Ali Akbar)
</para>
<para>
Previously the namespace was not returned, leading to invalid
<type>XML</>.
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="datatype-macaddr"><type>MACADDR</></> input
using the format <literal>xxxx-xxxx-xxxx</> (Herwin Weststrate)
</para>
</listitem>
<listitem>
<para>
Tighten specification of <link
linkend="datatype-interval-input"><type>INTERVAL</></> precision
specifications (Bruce Momjian)
</para>
<para>
Only allow interval precision to be specified after the
<literal>INTERVAL</> keyword if no units are specified.
</para>
</listitem>
<listitem>
<para>
Add selectivity estimators for <link
linkend="datatype-inet"><type>INET</></>/<link
linkend="datatype-cidr"><type>CIDR</></> operators and improve
estimators for text search functions (Emre Hasegeli, Tom Lane)
</para>
</listitem>
</itemizedlist>
<sect4>
<title><link linkend="datatype-json"><acronym>JSON</></link></title>
<itemizedlist>
<listitem>
<para>
Add <type>JSONB</> functions <link
linkend="functions-json-processing-table"><function>jsonb_set()</></>
and <link
linkend="functions-json-processing-table"><function>jsonb_pretty</></>
(Dmitry Dolgov, Andrew Dunstan, Petr Jelínek)
</para>
</listitem>
<listitem>
<para>
Add several generator functions for <type>JSONB</> that exist
for <type>JSON</> (Andrew Dunstan)
</para>
<para>
The functions are <link
linkend="functions-json-creation-table"><function>to_jsonb()</></>,
<link
linkend="functions-json-creation-table"><function>jsonb_object()</></>,
<link
linkend="functions-json-creation-table"><function>jsonb_build_object()</></>,
<link
linkend="functions-json-creation-table"><function>jsonb_build_array()</></>,
<link
linkend="functions-aggregate-table"><function>jsonb_agg()</></>,
and <link
linkend="functions-aggregate-table"><function>jsonb_object_agg()</></>.
</para>
</listitem>
<listitem>
<para>
Reduce casting requirements to/from <link
linkend="datatype-json"><type>JSON</></> and <link
linkend="datatype-json"><type>JSONB</></> (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Allow <type>TEXT</>, <type>TEXT</> array, and <type>INTEGER</>
values to be <link linkend="functions-jsonb-op-table">subtracted</>
from <type>JSONB</> documents (Dmitry Dolgov, Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Add <type>JSONB</> <link
linkend="functions-jsonb-op-table">operator</> <literal>||</>
(Dmitry Dolgov, Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Add <link
linkend="functions-json-processing-table"><function>json_strip_nulls()</></>
and <link
linkend="functions-json-processing-table"><function>jsonb_strip_nulls()</></>
functions to remove <type>JSON</> null values from documents
(Andrew Dunstan)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Functions</title>
<itemizedlist>
<listitem>
<para>
Add <link linkend="functions-srf"><function>generate_series()</></>
for <type>NUMERIC</> values (Plato Malugin)
</para>
</listitem>
<listitem>
<para>
Allow <link
linkend="functions-aggregate-table"><function>array_agg()</></> and
<function>ARRAY()</> to take arrays as inputs (Ali Akbar, Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add functions <link
linkend="array-functions-table"><function>array_position()</></>
and <link
linkend="array-functions-table"><function>array_positions()</></>
to return subscripts of array values (Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Add <link
linkend="gist-builtin-opclasses-table"><type>point</>-to-<type>polygon</></>
distance operator (<->) (Alexander Korotkov)
</para>
</listitem>
<listitem>
<para>
Allow multi-byte characters as escape in <link
linkend="functions-similarto-regexp"><literal>SIMILAR TO</></>
and <link linkend="functions-string-sql"><literal>SUBSTRING</></>
(Jeff Davis)
</para>
<para>
Previously, only a single-byte character was allowed as an escape.
</para>
</listitem>
<listitem>
<para>
Add <link
linkend="functions-math-func-table"><function>width_bucket()</></>
which supports any sortable data type and non-uniform bucket widths
(Petr Jelínek)
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="sql-syntax-calling-funcs"><literal>=></></>
to specify named parameters in function calls (Pavel Stehule)
</para>
<para>
User-defined <literal>=></> operators have been issuing
warnings since Postgres 9.0, and were removed in hstore in 9.2.
Previously only <literal>:=</> could be used.
</para>
</listitem>
<listitem>
<para>
Add <acronym>POSIX</>-compliant rounding for platforms that use
Postgres-supplied rounding functions (Pedro Gimeno Fortea)
</para>
</listitem>
</itemizedlist>
<sect4>
<title>System Information Functions and Views</title>
<itemizedlist>
<listitem>
<para>
Add function <link
linkend="functions-info-object-table"><function>pg_get_object_address()</></>
to return <type>OID</>s that uniquely identify an object
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Add function <link
linkend="functions-info-object-table"><function>pg_identify_object_as_address()</></>
to return object information based on <type>OID</>s (Álvaro
Herrera)
</para>
</listitem>
<listitem>
<para>
Loosen security checks for viewing <link
linkend="pg-stat-activity-view"><structname>pg_stat_activity</></>,
<link
linkend="functions-admin-signal-table"><function>pg_cancel_backend()</></>,
and <link
linkend="functions-admin-signal-table"><function>pg_terminate_backend</></>
(Stephen Frost)
</para>
<para>
Now, role membership is sufficient; previously only the same
role could perform such operations.
</para>
</listitem>
<listitem>
<para>
Add <link
linkend="monitoring-stats-funcs-table"><function>pg_stat_get_snapshot_timestamp()</></>
to output the timestamp of the statistics snapshot (Matt Kelly)
</para>
<para>
This represents the last time the snapshot files was written to
the file system.
</para>
</listitem>
<listitem>
<para>
Add <link
linkend="vacuum-for-multixact-wraparound"><function>mxid_age()</></>
to compute multi-xid age (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Add data type <link
linkend="datatype-oid-table"><type>regrole</></> that returns
the <type>OID</> of a role (Kyotaro Horiguchi)
</para>
</listitem>
<listitem>
<para>
Add data type <link
linkend="datatype-oid-table"><type>regnamespace</></> that returns
the <type>OID</> of a schema (Kyotaro Horiguchi)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Aggregates</title>
<itemizedlist>
<listitem>
<para>
Add <function>MIN()</>/<function>MAX()</> aggregates
for <link linkend="datatype-inet"><type>INET</></>/<link
linkend="datatype-cidr"><type>CIDR</></> data types (Haribabu
Kommi)
</para>
</listitem>
<listitem>
<para>
Use 128-bit integers, where supported, as aggregate accumulators
(Andreas Karlsson)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Server-Side Languages</title>
<itemizedlist>
<listitem>
<para>
Improve support for composite types in <link
linkend="plpython"><application>PL/Python</></> (Ed Behn, Ronan
Dunklau)
</para>
<para>
This allows <application>PL/Python</> functions to return arrays
of composite types.
</para>
</listitem>
<listitem>
<para>
Reduce lossiness of <link
linkend="plpython"><application>PL/Python</></> floating value
conversions (Marko Kreen)
</para>
</listitem>
<listitem>
<para>
Add specification of conversion routines to/from <acronym>SQL</>
data types to procedural languages data types (Peter Eisentraut)
</para>
<para>
This adds new commands <link
linkend="SQL-CREATETRANSFORM"><command>CREATE</></>/<link
linkend="SQL-DROPTRANSFORM"><command>DROP TRANSFORM</></>.
This also adds transformations between <link
linkend="hstore"><application>hstore</></> and <link
linkend="ltree"><application>ltree</></> to/from <link
linkend="plperl"><application>PL/Perl</></> and <link
linkend="plpython"><application>PL/Python</></>.
</para>
</listitem>
</itemizedlist>
<sect4>
<title><link linkend="plpgsql">PL/pgSQL</link> Server-Side Language</title>
<itemizedlist>
<listitem>
<para>
Improve <link linkend="plpgsql"><application>PL/pgSQL</></> array
performance (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add <link linkend="plpgsql-statements-assert"><command>ASSERT</></>
statement in <application>PL/pgSQL</> (Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Allow more <link linkend="plpgsql"><application>PL/pgSQL</></>
keywords to be used as identifiers (Tom Lane)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Client Applications</title>
<itemizedlist>
<listitem>
<para>
Move <link
linkend="pgarchivecleanup"><application>pg_archivecleanup</></>,
<link linkend="pgtestfsync"><application>pg_test_fsync</></>,
<link linkend="pgtesttiming"><application>pg_test_timing</></>,
and <link linkend="pgxlogdump"><application>pg_xlogdump</></>
from <filename>contrib</> to <filename>src/bin</> (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Allow <link
linkend="app-pgreceivexlog"><application>pg_receivexlog</></>
to manage physical replication slots (Michael Paquier)
</para>
<para>
This is controlled via new <option>--create-slot</> and
<option>--drop-slot</> options.
</para>
</listitem>
<listitem>
<para>
Allow the <link
linkend="app-pgreceivexlog"><application>pg_receivexlog</></>
to synchronously flush <acronym>WAL</> to storage using
<option>--synchronous</> (Furuya Osamu, Fujii Masao)
</para>
<para>
Without this, <acronym>WAL</> files are fsynced only on close.
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="APP-VACUUMDB"><command>vacuumdb</></> to
vacuum in parallel using <option>--jobs</> (Dilip Kumar)
</para>
</listitem>
<listitem>
<para>
Add <option>--verbose</> option to <link
linkend="APP-REINDEXDB"><application>reindexdb</></> (Sawada
Masahiko)
</para>
</listitem>
<listitem>
<para>
Have <link
linkend="app-pgbasebackup"><application>pg_basebackup</></> use
a tablespace mapping file with the <application>tar</> format,
to handle file paths of 100+ characters in length and sybolic
links on <systemitem class="osname">MS Windows</> (Amit Kapila)
</para>
</listitem>
</itemizedlist>
<sect4>
<title><xref linkend="APP-PSQL"></title>
<itemizedlist>
<listitem>
<para>
Allow <application>psql</> to produce AsciiDoc output (Szymon Guz)
</para>
</listitem>
<listitem>
<para>
Add <literal>errors</> mode to <application>psql</>'s
<varname>ECHO</> variable to display only failed commands
(Pavel Stehule)
</para>
<para>
This can also be enabled with the <application>psql</>
<option>-b</> option.
</para>
</listitem>
<listitem>
<para>
Allow column, header, and border control to <application>psql</>'s
Unicode style (Pavel Stehule)
</para>
<para>
Single or double output is supported; the default is
<literal>single</>.
</para>
</listitem>
<listitem>
<para>
Add <application>psql</> <link
linkend="APP-PSQL-variables"><envar>PROMPT</></> variables option
(<literal>%l</>) to display the multi-line statement line number
(Sawada Masahiko)
</para>
</listitem>
<listitem>
<para>
Add <application>psql</> setting <link
linkend="APP-PSQL-meta-commands"><varname>pager_min_lines</></>
setting to control pager invocation (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Improve <application>psql</> line counting used when deciding
to invoke the pager (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Add <application>psql</> tab completion when setting the
<varname>search_path</> variable (Jeff Janes)
</para>
<para>
Currently only the first schema can be tab-completed.
</para>
</listitem>
<listitem>
<para>
Improve <application>psql</> tab-completion for triggers and rules
(Andreas Karlsson)
</para>
</listitem>
</itemizedlist>
<sect5>
<title><link linkend="APP-PSQL-meta-commands">Backslash Commands</link></title>
<itemizedlist>
<listitem>
<para>
Add <application>psql</> <command>\?</> help sections
<literal>variables</> and <literal>options</> (Pavel Stehule)
</para>
<para>
<literal>variables</> outputs <application>psql</> variables
and <literal>options</> shows command-line options.
<command>\? commands</> is the default output. This help
information can also be output via <literal>--help=section</>.
</para>
</listitem>
<listitem>
<para>
Show tablespace size in <application>psql</>'s <literal>\db+</>
(Fabrízio de Royes Mello)
</para>
</listitem>
<listitem>
<para>
Show data type owners in <application>psql</>'s <literal>\dT+</>
(Magnus Hagander)
</para>
</listitem>
<listitem>
<para>
Allow <application>psql</> <command>\watch</> to output
<command>\timing</> information (Fujii Masao)
</para>
<para>
Also prevent <option>--echo-hidden</> from echoing
<command>\watch</> queries.
</para>
</listitem>
<listitem>
<para>
Allow <application>psql</>'s <literal>\sf</> and <literal>\ef</>
to honor <envar>ECHO_HIDDEN</> (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Improve <application>psql</> tab completion for <command>\set</>,
<command>\unset</>, and <literal>:variable</> names (Pavel
Stehule)
</para>
</listitem>
<listitem>
<para>
Allow tab completion of <application>psql</> <literal>\c</>
role names (Ian Barwick)
</para>
</listitem>
</itemizedlist>
</sect5>
</sect4>
<sect4>
<title><xref linkend="APP-PGDUMP"></title>
<itemizedlist>
<listitem>
<para>
Allow <application>pg_dump</> to share a snapshot taken by another
session using <option>--snapshot</> (Simon Riggs, Michael Paquier)
</para>
<para>
The remote snapshot must have been exported by
<function>pg_export_snapshot()</> or been defined when creating
a logical replication slot. This can be used by parallel
<application>pg_dump</> to use a consistent snapshot across
<application>pg_dump</> processes.
</para>
</listitem>
<listitem>
<para>
Always have <application>pg_dump</> print server and
<application>pg_dump</> versions (Jing Wang)
</para>
<para>
Previously, version information was only printed in
<option>--verbose</> mode.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><xref linkend="app-pg-ctl"></title>
<itemizedlist>
<listitem>
<para>
Change <application>pg_ctl</> default shutdown mode from
<literal>smart</> to <literal>fast</> (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Allow multiple <application>pg_ctl</> <option>-o</> options to
be appended (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Allow control of <application>pg_ctl</>'s event source logging
on <systemitem class="osname">MS Windows</> (MauMau)
</para>
<para>
This only controls <application>pg_ctl</>, not the server, which
has separate settings in <filename>postgresql.conf</>.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><xref linkend="pgupgrade"></title>
<itemizedlist>
<listitem>
<para>
Move <application>pg_upgrade</> from <filename>contrib</> to
<filename>src/bin</> (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Allow multiple <application>pg_upgrade</>
<option>-o</>/<option>-O</> options to be appended (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Improve database collation comparisons in
<application>pg_upgrade</> (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Document the use of <application>rsync</> for standby server
upgrades using <application>pg_upgrade</> (Stephen Frost,
Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Remove support for upgrading from 8.3 clusters (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Move <application>pg_upgrade_support</> code into backend and
remove the module (Peter Eisentraut)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Source Code</title>
<itemizedlist>
<listitem>
<para>
Simplify <link linkend="wal"><acronym>WAL</></> record format
(Heikki Linnakangas)
</para>
<para>
This allows external tools to more easily track what blocks
are modified.
</para>
</listitem>
<listitem>
<para>
Add basic atomics <acronym>API</> support (Andres Freund, Oskari
Saarenmaa)
</para>
</listitem>
<listitem>
<para>
Add native compiler and memory barriers for <productname>Solaris
Studio</> (Oskari Saarenmaa)
</para>
<para>
IS THIS PART OF ATOMICS?
</para>
</listitem>
<listitem>
<para>
Allow custom path and scan methods (KaiGai Kohei, Tom Lane)
</para>
<para>
This allows extensions greater control over the optimizer and
executor.
</para>
</listitem>
<listitem>
<para>
Allow foreign data wrappers to do post-filter locking (Etsuro
Fujita)
</para>
</listitem>
<listitem>
<para>
Improve dynahash capabilities (Teodor Sigaev, Tom Lane)
</para>
</listitem>
<listitem>
<para>
Improve parallel execution infrastructure (Robert Haas, Amit
Kapila, Noah Misch, Rushabh Lathia, Jeevan Chalke)
</para>
</listitem>
<listitem>
<para>
Remove <productname>Alpha</> (<acronym>CPU</>) and <systemitem
class="osname">Tru64</> (OS) ports (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Remove swap-byte-based spinlock implementation for
<acronym>ARM</>v5 and earlier <acronym>CPU</>s (Robert Haas)
</para>
<para>
<acronym>ARM</>v5's weak memory ordering made this locking
implementation unsafe. Spinlock support is still possible on
newer gcc implementations with atomics support.
</para>
</listitem>
<listitem>
<para>
Generate an error when excessively long (100+ character) file
paths are written to tar files (Peter Eisentraut)
</para>
<para>
Tar does not support such overly-long paths.
</para>
</listitem>
<listitem>
<para>
Change columns <link
linkend="catalog-pg-seclabel"><structname>pg_seclabel</></>.<structname>provider</>
and <link
linkend="catalog-pg-seclabel"><structname>pg_shseclabel</></>.<structname>provider</>
to <type>TEXT</> (Tom Lane)
</para>
<para>
This allows these columns to store 64+ characters.
</para>
</listitem>
</itemizedlist>
<sect4>
<title>MS Windows</title>
<itemizedlist>
<listitem>
<para>
Allow higher-precision timestamp resolution on <systemitem
class="osname">Windows 8</> or <systemitem class="osname">Windows
Server 2012</> and later Windows systems (Craig Ringer)
</para>
</listitem>
<listitem>
<para>
Install shared libraries to <filename>bin</> in <systemitem
class="osname">MS Windows</> (Peter Eisentraut, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Install <filename>src/test/modules</> together with
<filename>contrib</> on <productname>MSVC</> builds (Michael
Paquier)
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="install-procedure">configure's
<option>--with-extra-version</></> to be honored by the
<productname>MSVC</> build (Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Pass <envar>PGFILEDESC</> into <productname>MSVC</> contrib builds
(Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Add icons to all <productname>MSVC</>-built binaries and version
information to all <systemitem class="osname">MS Windows</>
binaries (Noah Misch)
</para>
<para>
MinGW already had such icons.
</para>
</listitem>
<listitem>
<para>
Add optional-argument support to the internal
<function>getopt_long()</> implementation (Michael Paquier,
Andres Freund)
</para>
<para>
This is used by the <productname>MSVC</> build.
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Additional Modules</title>
<itemizedlist>
<listitem>
<para>
Add <link linkend="app-pgrewind"><application>pg_rewind</></>,
which allows re-synchronizing a master server after failback
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Add statistics for minimum, maximum,
mean, and standard deviation times to <link
linkend="pgstatstatements-columns"><application>pg_stat_statements</></>
(Mitsumasa Kondo, Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Add <link linkend="pgcrypto"><application>pgcrypto</></> function
<function>pgp_armor_headers()</> to extract <productname>PGP</>
armor headers (Marko Tiikkaja, Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Allow empty replacement strings in <link
linkend="unaccent"><application>unaccent</></> (Mohammad Alhashash)
</para>
<para>
This is useful in languages where diacritic signs are represented
as separate characters.
</para>
</listitem>
<listitem>
<para>
Allow multi-character source strings in <link
linkend="unaccent"><application>unaccent</></> (Tom Lane)
</para>
<para>
This could be useful in languages where diacritic signs are
represented as separate characters. It also allows more complex
unaccent dictionaries.
</para>
</listitem>
<listitem>
<para>
Add <filename>contrib</> modules <link
linkend="tsm-system-rows"><application>tsm_system_rows</></> and
<link linkend="tsm-system-time"><application>tsm_system_time</></>
to allow additional table sampling methods (Petr Jelínek)
</para>
</listitem>
<listitem>
<para>
Add <link linkend="pgxlogdump"><application>pg_xlogdump</></> option
<option>--stats</> to display summary statistics (Abhijit Menon-Sen)
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="GIN"><acronym>GIN</></>
index inspection functions to <link
linkend="pageinspect"><application>pageinspect</></> (Heikki
Linnakangas, Peter Geoghegan, Michael Paquier)
</para>
</listitem>
<listitem>
<para>
Add information about buffer pins to <link
linkend="pgbuffercache"><application>pg_buffercache</></> display
(Andres Freund)
</para>
</listitem>
<listitem>
<para>
Allow <link linkend="pgstattuple"><application>pgstattuple</></>
to report approximate answers with less overhead using
<function>pgstattuple_approx()</> (Abhijit Menon-Sen)
</para>
</listitem>
<listitem>
<para>
Move <application>dummy_seclabel</>, <application>test_shm_mq</>,
<application>test_parser</>, and <application>worker_spi</>
from <filename>contrib</> to <filename>src/test/modules</>
(Álvaro Herrera)
</para>
</listitem>
</itemizedlist>
<sect4>
<title><xref linkend="pgbench"></title>
<itemizedlist>
<listitem>
<para>
Move pgbench from <filename>contrib</> to <filename>src/bin</>
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Allow counting of pgbench transactions that take over a specified
amount of time (Fabien Coelho)
</para>
<para>
This is controlled by new <option>--latency-limit</> option.
</para>
</listitem>
<listitem>
<para>
Allow pgbench to generate Gaussian/exponential distributions
using <command>\setrandom</> (Kondo Mitsumasa, Fabien Coelho)
</para>
</listitem>
<listitem>
<para>
Allow <application>pgbench</>'s <command>\set</> command to handle
multi-operator expressions (Robert Haas, Fabien Coelho)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
</sect2>
</sect1>
|