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
|
<!-- doc/src/sgml/release-9.3.sgml -->
<!-- See header comment in release.sgml about typical markup -->
<sect1 id="release-9-3">
<title>Release 9.3</title>
<note>
<title>Release Date</title>
<simpara>2013-XX-XX, CURRENT AS OF 2013-04-20</simpara>
</note>
<sect2>
<title>Overview</title>
<para>
ADD HERE Major enhancements include:
</para>
<!-- This list duplicates items below, but without authors or details-->
<para>
The above items are explained in more detail in the sections below.
</para>
</sect2>
<sect2>
<title>Migration to Version 9.3</title>
<para>
A dump/restore using <link
linkend="APP-PG-DUMPALL"><application>pg_dumpall</></link>, or use
of <link linkend="pgupgrade"><application>pg_upgrade</></link>, is
required for those wishing to migrate data from any previous release.
</para>
<para>
Version 9.3 contains a number of changes that may affect compatibility
with previous releases. Observe the following incompatibilities:
</para>
<sect3>
<title>ADD HERE</title>
<para>here</para>
</sect3>
</sect2>
<sect2>
<title>Changes</title>
<para>
Below you will find a detailed account of the changes between
<productname>PostgreSQL</productname> 9.3 and the previous major
release.
</para>
<sect3>
<title>Server</title>
<sect4>
<title>Locking</title>
<itemizedlist>
<listitem>
<para>
Prevent non-key-field row updates from locking foreign key rows
(Álvaro Herrera, Marti Raudsepp, Alexander Shulgin,
Noah Misch and Andres Freund)
</para>
<para>
This improves concurrency and reduces the probability of deadlocks.
UPDATEs on non-key columns use the new SELECT FOR NO KEY UPDATE lock
type, and foreign key checks use the new SELECT FOR KEY SHARE lock mode.
</para>
</listitem>
<listitem>
<para>
Add cache of local locks (Jeff Janes)
</para>
<para>
This speeds lock release at statement completion in transactions
that hold many locks; it is particularly useful for pg_dump.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Indexes</title>
<itemizedlist>
<listitem>
<para>
Add SP-GiST support for range data types (Alexander Korotkov)
</para>
</listitem>
<listitem>
<para>
Allow unlogged GiST indexes (Jeevan Chalke)
</para>
</listitem>
<listitem>
<para>
Improve concurrency of hash indexes (Robert Haas)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Optimizer</title>
<itemizedlist>
<listitem>
<para>
Improve the ability to detect indexable prefixes in regular
expressions (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Collect and use histograms for range types (Alexander Korotkov)
</para>
</listitem>
<listitem>
<para>
Reduce optimizer overhead by discarding plans with unneeded cheaper
startup costs (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Improve optimizer cost estimation for index access (Tom Lane)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>General Performance</title>
<itemizedlist>
<listitem>
<para>
Add COPY FREEZE option to avoid the overhead of later marking
tuples as committed (Simon Riggs, Jeff Davis)
</para>
</listitem>
<listitem>
<para>
Improve performance of NUMERIC calculations (Kyotaro Horiguchi)
</para>
</listitem>
<listitem>
<para>
Improve grouping of sessions waiting for commit_delay (Peter
Geoghegan)
</para>
<para>
This improves the usefulness and behavior of commit_delay.
BACKWARD COMPATIBILITY
</para>
</listitem>
<listitem>
<para>
Implement a generic binary heap and use it for Merge-Append
operations (Abhijit Menon-Sen)
</para>
</listitem>
<listitem>
<para>
"Allow in-memory sorts to use their full memory allocation (Jeff Janes)
</para>
<para>
Users who have set work_mem based on the previous behavior should
revisit that setting.
</para>
</listitem>
<listitem>
<para>
Improve performance for transactions creating, rebuilding, or
dropping many relations (Jeff Janes, Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
Improve performance of the CREATE TABLE ... ON COMMIT DELETE ROWS
clause by only issuing delete if the temporary table was accessed
(Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Allow heap-only tuple updates on system tables (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Have vacuum recheck visibility after it has removed expired tuples
(Pavan Deolasee)
</para>
<para>
This increases the chance of a page being marked as all-visible.
</para>
</listitem>
<listitem>
<para>
Split pgstat file in per-database and global files (Tomas Vondra)
</para>
<para>
This reduces the statistics management read and write overhead.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Monitoring</title>
<itemizedlist>
<listitem>
<para>
Add optional ability to checksum data pages and report corruption
(Simon Riggs, Jeff Davis, Greg Smith)
</para>
<para>
The checksum option can be set during initdb.
</para>
</listitem>
<listitem>
<para>
Allow pg_terminate_backend() to terminate other backends with
the same role (Dan Farina)
</para>
<para>
Previously, only superusers could terminate other sessions.
</para>
</listitem>
<listitem>
<para>
Allow the statistics collector to operate properly in cases where
the system clock goes backwards (Tom Lane)
</para>
<para>
Previously statistics collection would stop until the time again
reached the previously-stored latest time.
</para>
</listitem>
<listitem>
<para>
Add function to report the size of the GIN pending index insertion
list (Fujii Masao)
</para>
<para>
The function is pgstatginindex() in pgstattuple.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Authentication</title>
<itemizedlist>
<listitem>
<para>
Improve LDAP error reporting and documentation (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Add support for LDAP authentication to be specified in URL format
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Change the ssl_ciphers parameter to start with DEFAULT, rather
than ALL, then remove insecure ciphers (Magnus Hagander)
</para>
<para>
It is assumed DEFAULT is more appropriate cipher set.
</para>
</listitem>
<listitem>
<para>
Parse/load pg_ident.conf once, not during each connection (Amit
Kapila)
</para>
<para>
This is similar to how pg_hba.conf is processed.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Server Settings</title>
<itemizedlist>
<listitem>
<para>
Dramatically reduce System V shared memory usage (Robert Haas)
</para>
<para>
Instead, on Unix-like systems, mmap() is used for shared memory.
This eliminates the requirement of increasing System V shared
memory kernel parameters.
</para>
</listitem>
<listitem>
<para>
Allow the postmaster to listen on multiple Unix-domain sockets
(Honza Horak)
</para>
<para>
This renames configuration parameter unix_socket_directory to
unix_socket_directories, which accepts a list of directories.
</para>
</listitem>
<listitem>
<para>
Add configuration variable lock_timeout to limit lock wait duration
(Zoltán Böszörményi)
</para>
</listitem>
<listitem>
<para>
Allow a directory of configuration files to be processed (Magnus
Hagander, Greg Smith, Selena Deckelmann)
</para>
<para>
The directory is specified as include_dir in server configuration file.
</para>
</listitem>
<listitem>
<para>
Increase the maximum initdb-configured value for shared_buffers
to 128MB (Robert Haas)
</para>
<para>
This is the maximum value initdb attempts to set in
postgresql.conf; the previous value was 32MB.
</para>
</listitem>
<listitem>
<para>
Require superuser privileges to set commit_delay because it
can now potentially delay other sessions (Simon Riggs)
BACKWARD COMPATIBILITY
</para>
</listitem>
<listitem>
<para>
Remove the external PID file on postmaster exit (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Have "session id" in log_line_prefix (%c) always output four hex
digits after the period (Bruce Momjian) COMPATIBILITY
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Replication and Recovery</title>
<itemizedlist>
<listitem>
<para>
Allow a streaming replication standbys to follow a timeline switch (Heikki Linnakangas)
</para>
<para>
This allows streaming standbys to feed from newly-promoted slaves.
Previously slaves required access to a WAL archive directory to
accomplish this.
</para>
</listitem>
<listitem>
<para>
Add SQL functions pg_backup_in_progress() and pg_backup_start_time() (Gilles Darold)
</para>
<para>
These functions report the status of base backups.
</para>
</listitem>
<listitem>
<para>
Improve performance of non-synchronous streaming log shipping (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Allow much faster fail-over to a standby server (Simon Riggs)
</para>
</listitem>
<listitem>
<para>
Add the last checkpoint's redo location to pg_controldata's output
(Fujii Masao)
</para>
<para>
This information is useful for determining the WAL files needed for
restore.
</para>
</listitem>
<listitem>
<para>
Allow tooling like pg_receivexlog to run on computers with different
architectures (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Have pg_basebackup --write-recovery-conf output a minimal
recovery.conf (Zoltán Böszörményi, Magnus Hagander)
</para>
<para>
This simplifies setting up a standby server.
</para>
</listitem>
<listitem>
<para>
Allow pg_receivexlog and pg_basebackup -X to handle streaming
timeline switches (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Add wal_receiver_timeout parameter to control the WAL receiver
timeout (Amit Kapila)
</para>
<para>
This allows more rapid detection of connection failure. No longer set
wal_receiver_status_interval?
</para>
</listitem>
<listitem>
<para>
Rename replication_timeout to wal_sender_timeout (Amit Kapila)
</para>
<para>
BACKWARD COMPATIBILITY
This setting controls the WAL sender timeout.
</para>
</listitem>
</itemizedlist>
<sect4>
<title>Write-Ahead Log (WAL)</title>
<itemizedlist>
<listitem>
<para>
Store WAL in a continuous stream, rather than skipping the last
16MB segment every 4GB (Heikki Linnakangas) BACKWARD COMPATIBLE BREAK
</para>
</listitem>
<listitem>
<para>
Restructure WAL files to better handle timeline changes during
recovery (Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Restructure WAL files to use a more compact storage format (Heikki Linnakangas)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Queries</title>
<itemizedlist>
<listitem>
<para>
Implement SQL-standard LATERAL for FROM-clause subqueries and
function calls (Tom Lane)
</para>
<para>
This is useful in allowing FROM subqueries and functions to reference
output from tables in the FROM clause. The LATERAL keyword is optional
for functions.
</para>
</listitem>
<listitem>
<para>
Add support for piping COPY and psql \copy to/from an external program (Etsuro
Fujita)
</para>
</listitem>
<listitem>
<para>
Improve query string error location reporting (Tom Lane)
</para>
<para>
Only CREATE SCHEMA ... IF NOT EXISTS? If so, remove it.
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3>
<title>Object Manipulation</title>
<itemizedlist>
<listitem>
<para>
Add support to event triggers (Dimitri Fontaine, Tom Lane)
</para>
<para>
This allows C functions to be called when specific commands are run.
</para>
</listitem>
<listitem>
<para>
Allow a multi-row VALUES clause in rules to reference OLD/NEW (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add CREATE SCHEMA ... IF NOT EXIST clause (Fabrízio de
Royes Mello)
</para>
</listitem>
<listitem>
<para>
Throw an error if expiring tuple is again updated or deleted (Kevin Grittner)
KEEP?
</para>
</listitem>
<listitem>
<para>
Have DROP OWNED only remove user-matching GRANTs on shared objects,
e.g. databases, tablespaces (Álvaro Herrera)
</para>
<para>
Previously it tried to remove such objects, leading to an error.
</para>
</listitem>
<listitem>
<para>
Have REASSIGN OWNED also change ownership of shared objects (Álvaro
Herrera)
</para>
</listitem>
</itemizedlist>
<sect4>
<title><link linkend="SQL-CREATETABLE"><command>CREATE TABLE</></link></title>
<itemizedlist>
<listitem>
<para>
No longer output messages about implicit index and sequence creation (Robert Haas)
</para>
<para>
These messages now appear with DEBUG1-level output.
</para>
</listitem>
<listitem>
<para>
Allow CREATE TABLE IF NOT EXIST to succeed for a non-existent schema
(Bruce Momjian)
</para>
<para>
Previously, it threw an error if the schema did not exist.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title>Constraints</title>
<itemizedlist>
<listitem>
<para>
Change ON UPDATE SET NULL/SET DEFAULT foreign key actions to affect
all referenced columns, not just those referenced in the UPDATE
(Tom Lane)
</para>
<para>
Previously only columns referenced in the UPDATE were set to null or DEFAULT.
BACKWARD COMPATIBILITY CHANGE
</para>
</listitem>
<listitem>
<para>
Provide clients with constraint violation details as separate fields
(Pavel Stehule)
</para>
<para>
This allows clients to retrieve table, column, data type, or constraint
name error details. Previously such information had to be extracted from
error strings. Client language support is required to access these
fields.
</para>
</listitem>
<listitem>
<para>
Internally store default foreign key matches (non-FULL, non-PARTIAL) as "simple" (Tom Lane)
</para>
<para>
These were previously stored as "&unspecified&".
This changes the value stored in system column
pg_constraint.confmatchtype. BACKWARD COMPATIBILITY CHANGE
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><command>ALTER</></title>
<itemizedlist>
<listitem>
<para>
Add the ALTER TYPE ... IF NOT EXISTS clause when adding enumerated type labels (Andrew
Dunstan)
</para>
<para>
This is useful for conditional label creation in transaction blocks.
</para>
</listitem>
<listitem>
<para>
Add ALTER ROLE ALL SET to add settings to all users (Peter Eisentraut)
</para>
<para>
This allows settings to apply to all users in all databases. ALTER
DATABASE SET already allowed addition of settings for all users in a
single database. postgresql.conf has a similar effect.
</para>
</listitem>
<listitem>
<para>
Add support for ALTER RULE ... RENAME (Ali Dar)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><link linkend="rules-views"><command>VIEWs</></link></title>
<itemizedlist>
<listitem>
<para>
Add a materialized view relations (Kevin Grittner)
</para>
<para>
Unlike ordinary views, where the base tables are read on every access,
materialized views create physical tables at creation or refresh time.
Access to the materialized view reads from these materialized physical
tables. There is no facility for incrementally refreshing materialized
views or auto-accessing them via base table access.
</para>
</listitem>
<listitem>
<para>
Make simple views auto-updatable (Dean Rasheed)
</para>
<para>
INSTEAD rules are still available for complex views.
</para>
</listitem>
<listitem>
<para>
Allow views and rules to handle cases where referenced tables are
renamed, or columns are renamed, added, or dropped (Tom Lane)
HOW DOES IT HANDLE A DROPPED REFERENCED COLUMN?
</para>
</listitem>
<listitem>
<para>
Add CREATE RECURSIVE VIEW syntax (Peter Eisentraut)
</para>
<para>
Internally this is translated into CREATE VIEW ... WITH RECURSIVE.
</para>
</listitem>
<listitem>
<para>
When converting a table to a view, remove its system columns (Tom Lane)
KEEP?
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Data Types</title>
<itemizedlist>
<listitem>
<para>
Increase the maximum length of large objects from 2GB to 4TB (Nozomi
Anzai, Yugo Nagata)
</para>
<para>
This change includes new libpq and server-side 64-bit-enabled functions.
</para>
</listitem>
<listitem>
<para>
Allow text timezone designations, e.g. "America/Chicago" when using the
ISO "T" timestamptz format (Bruce Momjian)
</para>
</listitem>
</itemizedlist>
<sect4>
<title>JSON</title>
<itemizedlist>
<listitem>
<para>
Add operators and functions to extract values from JSON data strings
(Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Allow JSON data strings to be converted into records (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Add functions to convert values, records, and hstore data to JSON (Andrew Dunstan)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Functions</title>
<itemizedlist>
<listitem>
<para>
Add array_remove() and array_replace() functions (Marco Nenciarini, Gabriele Bartolini)
</para>
</listitem>
<listitem>
<para>
Allow concat() and format() to properly expand VARIADIC-labeled
arguments (Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Improve format() to handle field width and left/right alignment
(Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Have to_char(), to_date(), and to_timestamp() properly handle
negative century designations (CC) (Bruce Momjian)
</para>
<para>
Previously the behavior was either wrong or inconsistent with
positive/AD handling, e.g. format mask 'IYYY-IW-DY'.
</para>
</listitem>
<listitem>
<para>
Have to_date() and to_timestamp() return proper results when mixing
ISO and Gregorian week/day designations (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Cause pg_get_viewdef() to default to wrapping after every SELECT
target list and FROM entry (Marko Tiikkaja)
</para>
<para>
This causes view output, like from pg_dump, to be more narrow.
</para>
</listitem>
<listitem>
<para>
Have map_sql_value_to_xml_value() properly expand domains (Pavel
Stehule)
</para>
</listitem>
<listitem>
<para>
Force cached functions to be replanned if the search_path changes (Tom Lane)
</para>
<para>
Previously functions already run in the current session ignored
search_path changes.
(Bruce Momjian)
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3>
<title>Server-Side Languages</title>
<itemizedlist>
<listitem>
<para>
Allow SPI functions to access the number of rows processed by COPY (Pavel
Stehule)
</para>
</listitem>
</itemizedlist>
<sect4>
<title><link linkend="plpgsql">PL/pgSQL</link> Server-Side Language</title>
<itemizedlist>
<listitem>
<para>
Allow PL/pgSQL to use RETURN with a composite-type expressions (Asif
Rehman)
</para>
<para>
Previously RETURN could only reference composite-type variables.
</para>
</listitem>
<listitem>
<para>
Allow PL/pgSQL to access the number of rows processed by COPY (Pavel
Stehule)
</para>
<para>
The command is GET DIAGNOSTICS x = ROW_COUNT.
</para>
</listitem>
<listitem>
<para>
Allow greater flexibility in where keywords can be used in PL/pgSQL (Tom Lane)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><link linkend="plpython">PL/Python</link> Server-Side Language</title>
<itemizedlist>
<listitem>
<para>
Add PL/Python result object string handler (Peter Eisentraut)
</para>
<para>
This allows plpy.debug(rv) to output something reasonable.
</para>
</listitem>
<listitem>
<para>
Have PL/Python convert oid values to a proper Python numeric type (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Handle SPIErrors raised explicitly with PL/Python's RAISE the same as
as internal SPI errors (Oskari Saarenmaa and Jan Urbanski)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Client Applications</title>
<itemizedlist>
<listitem>
<para>
Add command-line utility pg_isready to check if the server is ready
to accept connections (Phil Sorber)
</para>
</listitem>
<listitem>
<para>
Support multiple --table arguments for pg_restore, clusterdb,
reindexdb, and vacuumdb (Josh Kupershmidt)
</para>
<para>
This is similar to the pg_dump --table support.
</para>
</listitem>
<listitem>
<para>
Add -d option to pg_dumpall, pg_basebackup, pg_receivexlog to
specify the connection string (Amit Kapila)
</para>
</listitem>
<listitem>
<para>
Allow pg_ctl --idempotent to a 'success' return code if the requested
start/stop action fails, but the cluster is already in the requested
state (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Change pg_ctl to return an error code if start fails because the
server is already running (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Add libpq function PQconninfo() to return connection information
(Zoltan Boszormenyi, Magnus Hagander)
</para>
</listitem>
</itemizedlist>
<sect4>
<title><link linkend="APP-PSQL"><application>psql</></link></title>
<itemizedlist>
<listitem>
<para>
Adjust function cost settings so psql tab completion and pattern
searching is more efficient (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Improve psql tab completion (Jeff Janes, Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Allow the psql --single-transaction mode to work when reading from
standard input (Fabien Coelho, Robert Haas)
</para>
<para>
Previously this option only worked when reading from a file.
</para>
</listitem>
<listitem>
<para>
Remove psql warning when connecting to an older server (Peter Eisentraut)
</para>
<para>
The warning when connecting to a newer server was retained.
</para>
</listitem>
</itemizedlist>
<sect5>
<title>Backslash Commands</title>
<itemizedlist>
<listitem>
<para>
Add psql \watch command to repeatedly execute commands (Will
Leinweber)
</para>
</listitem>
<listitem>
<para>
Add psql command \gset to store query results in psql variables
(Pavel Stehule)
</para>
</listitem>
<listitem>
<para>
Add SSL information to psql's \conninfo command (Alastair Turner)
</para>
</listitem>
<listitem>
<para>
Add "Security" label to psql \df+ output (Jon Erdman)
</para>
</listitem>
<listitem>
<para>
Allow psql \l to accept a database name pattern (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
In psql, do not allow \connect to use defaults if there is no active
connection (Bruce Momjian)
</para>
<para>
This might be the case if the server had crashed.
</para>
</listitem>
<listitem>
<para>
Properly reset state if psql's "\g file" command failed (Tom Lane)
</para>
<para>
Previously failed commands discarded output from subsequent commands.
</para>
</listitem>
</itemizedlist>
</sect5>
<sect5>
<title>Output</title>
<itemizedlist>
<listitem>
<para>
Add a 'latex-longtable' output format to psql (Bruce Momjian)
</para>
<para>
Longtable allows tables to span multiple pages.
</para>
</listitem>
<listitem>
<para>
Add a border=3 output mode to the psql 'latex' format (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
In psql tuples-only and expanded modes, no longer output "(No rows)"
(Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
In psql, no longer print an empty line for unaligned, expanded
output for zero rows (Peter Eisentraut)
</para>
</listitem>
</itemizedlist>
</sect5>
</sect4>
<sect4>
<title><link linkend="APP-PGDUMP"><application>pg_dump</></link></title>
<itemizedlist>
<listitem>
<para>
Add pg_dump --jobs to dump in parallel when using directory
output format (Joachim Wieland)
</para>
</listitem>
<listitem>
<para>
Have pg_dump output functions in a predictable order (Joel Jacobson)
</para>
</listitem>
<listitem>
<para>
Fix tar files emitted by pg_dump and pg_basebackup to be POSIX
conformant (Brian Weaver, Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add -d/--dbname option to pg_dump, for consistency with other client
commands (Heikki Linnakangas)
</para>
<para>
The database name could already be supplied last without a flag.
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><link linkend="APP-INITDB"><application>initdb</></link></title>
<itemizedlist>
<listitem>
<para>
Have initdb fsync the newly created data directory (Jeff Davis)
</para>
<para>
This can be disabled by using --nosync.
</para>
</listitem>
<listitem>
<para>
Add initdb --sync-only option to sync the data directory to durable
storage (Bruce Momjian)
</para>
<para>
This is used by pg_upgrade.
</para>
</listitem>
<listitem>
<para>
Have initdb issue a warning about placing the data directory at the
top of file system mount points (Bruce Momjian)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Source Code</title>
<itemizedlist>
<listitem>
<para>
Add an embedded list interface (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Add infrastructure to better support plug-in background worker
processes (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Create a centralized timeout API (Zoltán Böszörményi)
</para>
</listitem>
<listitem>
<para>
Create libpgcommon and move pg_malloc() and other functions there
(Álvaro Herrera, Andres Freund)
</para>
<para>
This allows libpgport to be used solely for porting code.
</para>
</listitem>
<listitem>
<para>
Standardize on naming of client-side memory allocation functions (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add compiler designations to indicate some ereport() and elog()
calls do not return (Peter Eisentraut, Andres Freund, Tom Lane,
Heikki Linnakangas)
</para>
</listitem>
<listitem>
<para>
Allow options to be passed to the regression test output comparison
utility via PG_REGRESS_DIFF_OPTS (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Add isolation tests for CREATE INDEX CONCURRENTLY (Abhijit Menon-Sen)
</para>
</listitem>
<listitem>
<para>
Remove typedefs for int2/int4 as they are better represented as int16/int32 (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Fix install-strip on Mac OS X (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Remove configure flag --disable-shared, as it is no longer used (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Rewrite pgindent in Perl (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Add emacs macro to match Postgres perltidy formatting (Peter
Eisentraut)
</para>
</listitem>
<listitem>
<para>
Run tool to check the keyword list when the backend grammar is changed (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Centralize flex and bison 'make' rules (Peter Eisentraut)
</para>
<para>
This is useful for pgxs authors.
</para>
</listitem>
<listitem>
<para>
Add Assert() functionality to client-side code for frontend code (Andrew Dunstan)
</para>
</listitem>
<listitem>
<para>
Change many internal many backend functions to return OIDs rather
than void (Dimitri Fontaine)
</para>
<para>
This is useful for event triggers.
</para>
</listitem>
<listitem>
<para>
Invent pre-commit/pre-prepare/pre-subcommit events for transaction
callbacks (Tom Lane)
</para>
<para>
Loadable modules that use transaction callbacks might need modification
to handle these new event types.
</para>
</listitem>
<listitem>
<para>
Add function pg_identify_object() to dump an object in
machine-readable format (Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Add post-ALTER-object server hooks (KaiGai Kohei)
</para>
</listitem>
<listitem>
<para>
Improve ability to detect official timezone abbreviation changes
(Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add pkg-config support libpq and ecpg libraries (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Remove src/tool/backend, now that the content is on the Postgres
wiki (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Split out WAL reading as an independent facility (Heikki
Linnakangas, Andres Freund)
</para>
</listitem>
<listitem>
<para>
Allow PL/Python to support platform-specific include directories (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Allow PL/Python on OS X to build against custom versions of Python
(Peter Eisentraut)
</para>
</listitem>
</itemizedlist>
</sect3>
<sect3>
<title>Additional Modules</title>
<itemizedlist>
<listitem>
<para>
Add a Postgres foreign data wrapper contrib module (Shigeru
Hanada, KaiGai Kohei)
</para>
<para>
This foreign data wrapper allows writes; potentially other
foreign data wrappers can now support writes.
</para>
</listitem>
<listitem>
<para>
Add pg_xlogdump contrib program (Andres Freund)
</para>
</listitem>
<listitem>
<para>
Add support for indexing of regular-expression searches in
contrib/pg_trgm (Alexander Korotkov)
</para>
</listitem>
<listitem>
<para>
Improve pg_trgm handling of multibyte characters (Tom Lane)
</para>
</listitem>
<listitem>
<para>
Have oid2name, pgbench, and vacuumlo set fallback_application_name (Amit Kapila)
</para>
</listitem>
<listitem>
<para>
Improve output of pg_test_timing (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Improve output of pg_test_fsync (Peter Geoghegan)
</para>
</listitem>
<listitem>
<para>
Improve dblink option validator (Tom Lane)
</para>
<para>
Details?
</para>
</listitem>
</itemizedlist>
<sect4>
<title><link linkend="pgupgrade"><application>pg_upgrade</></link></title>
<itemizedlist>
<listitem>
<para>
Allow pg_upgrade --jobs to do parallelism (Bruce Momjian)
</para>
<para>
This allows parallel schema dump/restore of databases, as well as
parallel copy/link of data files per tablespace.
</para>
</listitem>
<listitem>
<para>
Have pg_upgrade create unix-domain sockets in the current directory
(Bruce Momjian, Tom Lane)
</para>
<para>
This reduces the possibility that someone will accidentally connect
during the upgrade.
</para>
</listitem>
<listitem>
<para>
Have pg_upgrade --check mode properly detect the location of
non-default socket directories (Bruce Momjian, Tom Lane)
</para>
</listitem>
<listitem>
<para>
Improve performance of pg_upgrade for databases with many tables (Bruce Momjian)
</para>
</listitem>
<listitem>
<para>
Increase pg_upgrade logging content by showing executed command
(Álvaro Herrera)
</para>
</listitem>
<listitem>
<para>
Improve pg_upgrade's status display during copy/link (Bruce Momjian)
</para>
</listitem>
</itemizedlist>
</sect4>
<sect4>
<title><link linkend="pgbench"><application>pgbench</></link></title>
<itemizedlist>
<listitem>
<para>
Add --foreign-keys option to pgbench (Jeff Janes)
</para>
<para>
This adds foreign key constraints to tables, for use in foreign
key performance testing.
</para>
</listitem>
<listitem>
<para>
Allow pgbench to aggregate performance statistics and produce output
every --aggregate-interval specified seconds (Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
Add pg_bench --sampling-rate option to control the percentage of
transactions logged (Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
Reduce and improve the status message output of pgbench's
initialization mode (Robert Haas, Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Add pgbench -q mode to print one output line every five seconds (Tomas Vondra)
</para>
<para>
Output pgbench elapsed and estimated remaining time during
initialization logging (Tomas Vondra)
</para>
</listitem>
<listitem>
<para>
Allow pgbench to use a larger scale factor (Greg Smith)
</para>
</listitem>
</itemizedlist>
</sect4>
</sect3>
<sect3>
<title>Documentation</title>
<itemizedlist>
<listitem>
<para>
Allow EPUB-format documentation to be created (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Update FreeBSD kernel configuration documentation (Brad Davis)
</para>
</listitem>
<listitem>
<para>
Improve WINDOW function documentation (Bruce Momjian, Tom Lane)
</para>
</listitem>
<listitem>
<para>
Add instructions for setting up the documentation tool chain on
Mac OS X (Peter Eisentraut)
</para>
</listitem>
<listitem>
<para>
Improve commit_delay documentation (Peter Geoghegan)
</para>
</listitem>
</itemizedlist>
</sect3>
</sect2>
</sect1>
|