Appendix E. Release Notes

Table of Contents
E.1. Release 8.1.4
E.2. Release 8.1.3
E.3. Release 8.1.2
E.4. Release 8.1.1
E.5. Release 8.1
E.6. Release 8.0.8
E.7. Release 8.0.7
E.8. Release 8.0.6
E.9. Release 8.0.5
E.10. Release 8.0.4
E.11. Release 8.0.3
E.12. Release 8.0.2
E.13. Release 8.0.1
E.14. Release 8.0
E.15. Release 7.4.13
E.16. Release 7.4.12
E.17. Release 7.4.11
E.18. Release 7.4.10
E.19. Release 7.4.9
E.20. Release 7.4.8
E.21. Release 7.4.7
E.22. Release 7.4.6
E.23. Release 7.4.5
E.24. Release 7.4.4
E.25. Release 7.4.3
E.26. Release 7.4.2
E.27. Release 7.4.1
E.28. Release 7.4
E.29. Release 7.3.15
E.30. Release 7.3.14
E.31. Release 7.3.13
E.32. Release 7.3.12
E.33. Release 7.3.11
E.34. Release 7.3.10
E.35. Release 7.3.9
E.36. Release 7.3.8
E.37. Release 7.3.7
E.38. Release 7.3.6
E.39. Release 7.3.5
E.40. Release 7.3.4
E.41. Release 7.3.3
E.42. Release 7.3.2
E.43. Release 7.3.1
E.44. Release 7.3
E.45. Release 7.2.8
E.46. Release 7.2.7
E.47. Release 7.2.6
E.48. Release 7.2.5
E.49. Release 7.2.4
E.50. Release 7.2.3
E.51. Release 7.2.2
E.52. Release 7.2.1
E.53. Release 7.2
E.54. Release 7.1.3
E.55. Release 7.1.2
E.56. Release 7.1.1
E.57. Release 7.1
E.58. Release 7.0.3
E.59. Release 7.0.2
E.60. Release 7.0.1
E.61. Release 7.0
E.62. Release 6.5.3
E.63. Release 6.5.2
E.64. Release 6.5.1
E.65. Release 6.5
E.66. Release 6.4.2
E.67. Release 6.4.1
E.68. Release 6.4
E.69. Release 6.3.2
E.70. Release 6.3.1
E.71. Release 6.3
E.72. Release 6.2.1
E.73. Release 6.2
E.74. Release 6.1.1
E.75. Release 6.1
E.76. Release 6.0
E.77. Release 1.09
E.78. Release 1.02
E.79. Release 1.01
E.80. Release 1.0
E.81. Postgres95 Release 0.03
E.82. Postgres95 Release 0.02
E.83. Postgres95 Release 0.01

E.1. Release 8.1.4

Release date: 2006-05-23

This release contains a variety of fixes from 8.1.3, including patches for extremely serious security issues.

E.1.1. Migration to version 8.1.4

A dump/restore is not required for those running 8.1.X. However, if you are upgrading from a version earlier than 8.1.2, see the release notes for 8.1.2.

Full security against the SQL-injection attacks described in CVE-2006-2313 and CVE-2006-2314 may require changes in application code. If you have applications that embed untrustworthy strings into SQL commands, you should examine them as soon as possible to ensure that they are using recommended escaping techniques. In most cases, applications should be using subroutines provided by libraries or drivers (such as libpq's PQescapeStringConn()) to perform string escaping, rather than relying on ad hoc code to do it.

E.1.2. Changes

  • Change the server to reject invalidly-encoded multibyte characters in all cases (Tatsuo, Tom)

    While PostgreSQL has been moving in this direction for some time, the checks are now applied uniformly to all encodings and all textual input, and are now always errors not merely warnings. This change defends against SQL-injection attacks of the type described in CVE-2006-2313.

  • Reject unsafe uses of \' in string literals

    As a server-side defense against SQL-injection attacks of the type described in CVE-2006-2314, the server now only accepts '' and not \' as a representation of ASCII single quote in SQL string literals. By default, \' is rejected only when client_encoding is set to a client-only encoding (SJIS, BIG5, GBK, GB18030, or UHC), which is the scenario in which SQL injection is possible. A new configuration parameter backslash_quote is available to adjust this behavior when needed. Note that full security against CVE-2006-2314 may require client-side changes; the purpose of backslash_quote is in part to make it obvious that insecure clients are insecure.

  • Modify libpq's string-escaping routines to be aware of encoding considerations and standard_conforming_strings

    This fixes libpq-using applications for the security issues described in CVE-2006-2313 and CVE-2006-2314, and also future-proofs them against the planned changeover to SQL-standard string literal syntax. Applications that use multiple PostgreSQL connections concurrently should migrate to PQescapeStringConn() and PQescapeByteaConn() to ensure that escaping is done correctly for the settings in use in each database connection. Applications that do string escaping "by hand" should be modified to rely on library routines instead.

  • Fix weak key selection in pgcrypto (Marko Kreen)

    Errors in fortuna PRNG reseeding logic could cause a predictable session key to be selected by pgp_sym_encrypt() in some cases. This only affects non-OpenSSL-using builds.

  • Fix some incorrect encoding conversion functions

    win1251_to_iso, win866_to_iso, euc_tw_to_big5, euc_tw_to_mic, mic_to_euc_tw were all broken to varying extents.

  • Clean up stray remaining uses of \' in strings (Bruce, Jan)

  • Make autovacuum visible in pg_stat_activity (Alvaro)

  • Disable full_page_writes (Tom)

    In certain cases, having full_page_writes off would cause crash recovery to fail. A proper fix will appear in 8.2; for now it's just disabled.

  • Various planner fixes, particularly for bitmap index scans and MIN/MAX optimization (Tom)

  • Fix incorrect optimization in merge join (Tom)

    Outer joins could sometimes emit multiple copies of unmatched rows.

  • Fix crash from using and modifying a plpgsql function in the same transaction

  • Fix WAL replay for case where a btree index has been truncated

  • Fix SIMILAR TO for patterns involving | (Tom)

  • Fix SELECT INTO and CREATE TABLE AS to create tables in the default tablespace, not the base directory (Kris Jurka)

  • Fix server to use custom DH SSL parameters correctly (Michael Fuhr)

  • Improve qsort performance (Dann Corbit)

    Currently this code is only used on Solaris.

  • Fix for Bonjour on Intel Macs (Ashley Clark)

  • Fix various minor memory leaks

  • Fix problem with password prompting on some Win32 systems (Robert Kinberg)

  • Improve pg_dump's handling of default values for domains

  • Fix pg_dumpall to handle identically-named users and groups reasonably (only possible when dumping from a pre-8.1 server) (Tom)

    The user and group will be merged into a single role with LOGIN permission. Formerly the merged role wouldn't have LOGIN permission, making it unusable as a user.

  • Fix pg_restore -n to work as documented (Tom)