2 <!-- See header comment in release.sgml about typical markup -->
4 <sect1 id=
"release-7-4-25">
5 <title>Release
7.4.25</title>
8 <title>Release date
</title>
9 <simpara>2009-
03-
16</simpara>
13 This release contains a variety of fixes from
7.4.24.
14 For information about new features in the
7.4 major release, see
15 <xref linkend=
"release-7-4">.
19 <title>Migration to Version
7.4.25</title>
22 A dump/restore is not required for those running
7.4.X.
23 However, if you are upgrading from a version earlier than
7.4.11,
24 see the release notes for
7.4.11.
30 <title>Changes
</title>
36 Prevent error recursion crashes when encoding conversion fails (Tom)
40 This change extends fixes made in the last two minor releases for
41 related failure scenarios. The previous fixes were narrowly tailored
42 for the original problem reports, but we have now recognized that
43 <emphasis>any<
/> error thrown by an encoding conversion function could
44 potentially lead to infinite recursion while trying to report the
45 error. The solution therefore is to disable translation and encoding
46 conversion and report the plain-ASCII form of any error message,
47 if we find we have gotten into a recursive error reporting situation.
54 Disallow
<command>CREATE CONVERSION<
/> with the wrong encodings
55 for the specified conversion function (Heikki)
59 This prevents one possible scenario for encoding conversion failure.
60 The previous change is a backstop to guard against other kinds of
61 failures in the same area.
67 Fix core dump when
<function>to_char()<
/> is given format codes that
68 are inappropriate for the type of the data argument (Tom)
74 Add
<literal>MUST<
/> (Mauritius Island Summer Time) to the default list
75 of known timezone abbreviations (Xavier Bugaud)
84 <sect1 id=
"release-7-4-24">
85 <title>Release
7.4.24</title>
88 <title>Release date
</title>
89 <simpara>2009-
02-
02</simpara>
93 This release contains a variety of fixes from
7.4.23.
94 For information about new features in the
7.4 major release, see
95 <xref linkend=
"release-7-4">.
99 <title>Migration to Version
7.4.24</title>
102 A dump/restore is not required for those running
7.4.X.
103 However, if you are upgrading from a version earlier than
7.4.11,
104 see the release notes for
7.4.11.
110 <title>Changes
</title>
116 Improve handling of URLs in
<function>headline()<
/> function (Teodor)
122 Improve handling of overlength headlines in
<function>headline()<
/>
129 Prevent possible Assert failure or misconversion if an encoding
130 conversion is created with the wrong conversion function for the
131 specified pair of encodings (Tom, Heikki)
137 Avoid unnecessary locking of small tables in
<command>VACUUM<
/>
144 Fix uninitialized variables in
<filename>contrib/tsearch2<
/>'s
145 <function>get_covers()<
/> function (Teodor)
151 Fix bug in
<function>to_char()<
/>'s handling of
<literal>TH<
/>
152 format codes (Andreas Scherbaum)
158 Make all documentation reference
<literal>pgsql-bugs<
/> and/or
159 <literal>pgsql-hackers<
/> as appropriate, instead of the
160 now-decommissioned
<literal>pgsql-ports<
/> and
<literal>pgsql-patches<
/>
170 <sect1 id=
"release-7-4-23">
171 <title>Release
7.4.23</title>
174 <title>Release date
</title>
175 <simpara>2008-
11-
03</simpara>
179 This release contains a variety of fixes from
7.4.22.
180 For information about new features in the
7.4 major release, see
181 <xref linkend=
"release-7-4">.
185 <title>Migration to Version
7.4.23</title>
188 A dump/restore is not required for those running
7.4.X.
189 However, if you are upgrading from a version earlier than
7.4.11,
190 see the release notes for
7.4.11.
196 <title>Changes
</title>
202 Fix backend crash when the client encoding cannot represent a localized
207 We have addressed similar issues before, but it would still fail if
208 the
<quote>character has no equivalent<
/> message itself couldn't
209 be converted. The fix is to disable localization and send the plain
210 ASCII error message when we detect such a situation.
216 Fix incorrect tsearch2 headline generation when single query
217 item matches first word of text (Sushant Sinha)
223 Fix improper display of fractional seconds in interval values when
224 using a non-ISO datestyle in an
<option>--enable-integer-datetimes<
/>
231 Ensure
<function>SPI_getvalue<
/> and
<function>SPI_getbinval<
/>
232 behave correctly when the passed tuple and tuple descriptor have
233 different numbers of columns (Tom)
237 This situation is normal when a table has had columns added or removed,
238 but these two functions didn't handle it properly.
239 The only likely consequence is an incorrect error indication.
245 Fix
<application>ecpg<
/>'s parsing of
<command>CREATE USER<
/> (Michael)
254 <sect1 id=
"release-7-4-22">
255 <title>Release
7.4.22</title>
258 <title>Release date
</title>
259 <simpara>2008-
09-
22</simpara>
263 This release contains a variety of fixes from
7.4.21.
264 For information about new features in the
7.4 major release, see
265 <xref linkend=
"release-7-4">.
269 <title>Migration to Version
7.4.22</title>
272 A dump/restore is not required for those running
7.4.X.
273 However, if you are upgrading from a version earlier than
7.4.11,
274 see the release notes for
7.4.11.
280 <title>Changes
</title>
286 Fix datetime input functions to correctly detect integer overflow when
287 running on a
64-bit platform (Tom)
293 Improve performance of writing very long log messages to syslog (Tom)
299 Fix bug in backwards scanning of a cursor on a
<literal>SELECT DISTINCT
306 Fix planner to estimate that
<literal>GROUP BY<
/> expressions yielding
307 boolean results always result in two groups, regardless of the
308 expressions' contents (Tom)
312 This is very substantially more accurate than the regular
<literal>GROUP
313 BY<
/> estimate for certain boolean tests like
<replaceable>col<
/>
320 Improve
<application>pg_dump<
/> and
<application>pg_restore<
/>'s
321 error reporting after failure to send a SQL command (Tom)
330 <sect1 id=
"release-7-4-21">
331 <title>Release
7.4.21</title>
334 <title>Release date
</title>
335 <simpara>2008-
06-
12</simpara>
339 This release contains one serious bug fix over
7.4.20.
340 For information about new features in the
7.4 major release, see
341 <xref linkend=
"release-7-4">.
345 <title>Migration to Version
7.4.21</title>
348 A dump/restore is not required for those running
7.4.X.
349 However, if you are upgrading from a version earlier than
7.4.11,
350 see the release notes for
7.4.11.
356 <title>Changes
</title>
362 Make
<function>pg_get_ruledef()<
/> parenthesize negative constants (Tom)
366 Before this fix, a negative constant in a view or rule might be dumped
367 as, say,
<literal>-
42::integer<
/>, which is subtly incorrect: it should
368 be
<literal>(-
42)::integer<
/> due to operator precedence rules.
369 Usually this would make little difference, but it could interact with
370 another recent patch to cause
371 <productname>PostgreSQL<
/> to reject what had been a valid
372 <command>SELECT DISTINCT<
/> view query. Since this could result in
373 <application>pg_dump<
/> output failing to reload, it is being treated
374 as a high-priority fix. The only released versions in which dump
375 output is actually incorrect are
8.3.1 and
8.2.7.
384 <sect1 id=
"release-7-4-20">
385 <title>Release
7.4.20</title>
388 <title>Release date
</title>
389 <simpara>never released
</simpara>
393 This release contains a variety of fixes from
7.4.19.
394 For information about new features in the
7.4 major release, see
395 <xref linkend=
"release-7-4">.
399 <title>Migration to Version
7.4.20</title>
402 A dump/restore is not required for those running
7.4.X.
403 However, if you are upgrading from a version earlier than
7.4.11,
404 see the release notes for
7.4.11.
410 <title>Changes
</title>
416 Fix conversions between ISO-
8859-
5 and other encodings to handle
417 Cyrillic
<quote>Yo<
/> characters (
<literal>e<
/> and
<literal>E<
/> with
418 two dots) (Sergey Burladyan)
424 Fix a few datatype input functions
425 that were allowing unused bytes in their results to contain
426 uninitialized, unpredictable values (Tom)
430 This could lead to failures in which two apparently identical literal
431 values were not seen as equal, resulting in the parser complaining
432 about unmatched
<literal>ORDER BY<
/> and
<literal>DISTINCT<
/>
439 Fix a corner case in regular-expression substring matching
440 (
<literal>substring(
<replaceable>string<
/> from
441 <replaceable>pattern<
/>)
</literal>) (Tom)
445 The problem occurs when there is a match to the pattern overall but
446 the user has specified a parenthesized subexpression and that
447 subexpression hasn't got a match. An example is
448 <literal>substring('foo' from 'foo(bar)?')<
/>.
449 This should return NULL, since
<literal>(bar)<
/> isn't matched, but
450 it was mistakenly returning the whole-pattern match instead (ie,
457 Fix incorrect result from
<application>ecpg<
/>'s
458 <function>PGTYPEStimestamp_sub()<
/> function (Michael)
464 Fix
<literal>DatumGetBool<
/> macro to not fail with
<application>gcc<
/>
469 This problem affects
<quote>old style<
/> (V0) C functions that
470 return boolean. The fix is already in
8.3, but the need to
471 back-patch it was not realized at the time.
477 Fix longstanding
<command>LISTEN<
/>/
<command>NOTIFY<
/>
482 In rare cases a session that had just executed a
483 <command>LISTEN<
/> might not get a notification, even though
484 one would be expected because the concurrent transaction executing
485 <command>NOTIFY<
/> was observed to commit later.
489 A side effect of the fix is that a transaction that has executed
490 a not-yet-committed
<command>LISTEN<
/> command will not see any
491 row in
<structname>pg_listener<
/> for the
<command>LISTEN<
/>,
492 should it choose to look; formerly it would have. This behavior
493 was never documented one way or the other, but it is possible that
494 some applications depend on the old behavior.
500 Fix display of constant expressions in
<literal>ORDER BY<
/>
501 and
<literal>GROUP BY<
/> (Tom)
505 An explictly casted constant would be shown incorrectly. This could
506 for example lead to corruption of a view definition during
513 Fix
<application>libpq<
/> to handle NOTICE messages correctly
514 during COPY OUT (Tom)
518 This failure has only been observed to occur when a user-defined
519 datatype's output routine issues a NOTICE, but there is no
520 guarantee it couldn't happen due to other causes.
529 <sect1 id=
"release-7-4-19">
530 <title>Release
7.4.19</title>
533 <title>Release date
</title>
534 <simpara>2008-
01-
07</simpara>
538 This release contains a variety of fixes from
7.4.18,
539 including fixes for significant security issues.
540 For information about new features in the
7.4 major release, see
541 <xref linkend=
"release-7-4">.
545 <title>Migration to Version
7.4.19</title>
548 A dump/restore is not required for those running
7.4.X. However,
549 if you are upgrading from a version earlier than
7.4.11, see the release
556 <title>Changes
</title>
562 Prevent functions in indexes from executing with the privileges of
563 the user running
<command>VACUUM<
/>,
<command>ANALYZE<
/>, etc (Tom)
567 Functions used in index expressions and partial-index
568 predicates are evaluated whenever a new table entry is made. It has
569 long been understood that this poses a risk of trojan-horse code
570 execution if one modifies a table owned by an untrustworthy user.
571 (Note that triggers, defaults, check constraints, etc. pose the
572 same type of risk.) But functions in indexes pose extra danger
573 because they will be executed by routine maintenance operations
574 such as
<command>VACUUM FULL<
/>, which are commonly performed
575 automatically under a superuser account. For example, a nefarious user
576 can execute code with superuser privileges by setting up a
577 trojan-horse index definition and waiting for the next routine vacuum.
578 The fix arranges for standard maintenance operations
579 (including
<command>VACUUM<
/>,
<command>ANALYZE<
/>,
<command>REINDEX<
/>,
580 and
<command>CLUSTER<
/>) to execute as the table owner rather than
581 the calling user, using the same privilege-switching mechanism already
582 used for
<literal>SECURITY DEFINER<
/> functions. To prevent bypassing
583 this security measure, execution of
<command>SET SESSION
584 AUTHORIZATION<
/> and
<command>SET ROLE<
/> is now forbidden within a
585 <literal>SECURITY DEFINER<
/> context. (CVE-
2007-
6600)
591 Repair assorted bugs in the regular-expression package (Tom, Will Drewry)
595 Suitably crafted regular-expression patterns could cause crashes,
596 infinite or near-infinite looping, and/or massive memory consumption,
597 all of which pose denial-of-service hazards for applications that
598 accept regex search patterns from untrustworthy sources.
599 (CVE-
2007-
4769, CVE-
2007-
4772, CVE-
2007-
6067)
605 Require non-superusers who use
<filename>/contrib/dblink<
/> to use only
606 password authentication, as a security measure (Joe)
610 The fix that appeared for this in
7.4.18 was incomplete, as it plugged
611 the hole for only some
<filename>dblink<
/> functions. (CVE-
2007-
6601,
618 Fix planner failure in some cases of
<literal>WHERE false AND var IN
619 (SELECT ...)<
/> (Tom)
625 Fix potential crash in
<function>translate()<
/> when using a multibyte
626 database encoding (Tom)
632 Fix PL/Python to not crash on long exception messages (Alvaro)
638 <application>ecpg<
/> parser fixes (Michael)
644 Make
<filename>contrib/tablefunc<
/>'s
<function>crosstab()<
/> handle
645 NULL rowid as a category in its own right, rather than crashing (Joe)
651 Fix
<type>tsvector<
/> and
<type>tsquery<
/> output routines to
652 escape backslashes correctly (Teodor, Bruce)
658 Fix crash of
<function>to_tsvector()<
/> on huge input strings (Teodor)
664 Require a specific version of
<productname>Autoconf<
/> to be used
665 when re-generating the
<command>configure<
/> script (Peter)
669 This affects developers and packagers only. The change was made
670 to prevent accidental use of untested combinations of
671 <productname>Autoconf<
/> and
<productname>PostgreSQL<
/> versions.
672 You can remove the version check if you really want to use a
673 different
<productname>Autoconf<
/> version, but it's
674 your responsibility whether the result works or not.
683 <sect1 id=
"release-7-4-18">
684 <title>Release
7.4.18</title>
687 <title>Release date
</title>
688 <simpara>2007-
09-
17</simpara>
692 This release contains fixes from
7.4.17.
693 For information about new features in the
7.4 major release, see
694 <xref linkend=
"release-7-4">.
698 <title>Migration to Version
7.4.18</title>
701 A dump/restore is not required for those running
7.4.X. However,
702 if you are upgrading from a version earlier than
7.4.11, see the release
709 <title>Changes
</title>
715 Prevent index corruption when a transaction inserts rows and
716 then aborts close to the end of a concurrent
<command>VACUUM<
/>
717 on the same table (Tom)
723 Make
<command>CREATE DOMAIN ... DEFAULT NULL<
/> work properly (Tom)
729 Fix excessive logging of
<acronym>SSL<
/> error messages (Tom)
735 Fix crash when
<varname>log_min_error_statement<
/> logging runs out
742 Prevent
<command>CLUSTER<
/> from failing
743 due to attempting to process temporary tables of other sessions (Alvaro)
749 Require non-superusers who use
<filename>/contrib/dblink<
/> to use only
750 password authentication, as a security measure (Joe)
759 <sect1 id=
"release-7-4-17">
760 <title>Release
7.4.17</title>
763 <title>Release date
</title>
764 <simpara>2007-
04-
23</simpara>
768 This release contains fixes from
7.4.16,
769 including a security fix.
770 For information about new features in the
7.4 major release, see
771 <xref linkend=
"release-7-4">.
775 <title>Migration to Version
7.4.17</title>
778 A dump/restore is not required for those running
7.4.X. However,
779 if you are upgrading from a version earlier than
7.4.11, see the release
786 <title>Changes
</title>
792 Support explicit placement of the temporary-table schema within
793 <varname>search_path<
/>, and disable searching it for functions
797 This is needed to allow a security-definer function to set a
798 truly secure value of
<varname>search_path<
/>. Without it,
799 an unprivileged SQL user can use temporary objects to execute code
800 with the privileges of the security-definer function (CVE-
2007-
2138).
801 See
<command>CREATE FUNCTION<
/> for more information.
807 <filename>/contrib/tsearch2<
/> crash fixes (Teodor)
813 Fix potential-data-corruption bug in how
<command>VACUUM FULL<
/> handles
814 <command>UPDATE<
/> chains (Tom, Pavan Deolasee)
820 Fix PANIC during enlargement of a hash index (bug introduced in
7.4.15)
830 <sect1 id=
"release-7-4-16">
831 <title>Release
7.4.16</title>
834 <title>Release date
</title>
835 <simpara>2007-
02-
05</simpara>
839 This release contains a variety of fixes from
7.4.15, including
841 For information about new features in the
7.4 major release, see
842 <xref linkend=
"release-7-4">.
846 <title>Migration to Version
7.4.16</title>
849 A dump/restore is not required for those running
7.4.X. However,
850 if you are upgrading from a version earlier than
7.4.11, see the release
857 <title>Changes
</title>
863 Remove security vulnerability that allowed connected users
864 to read backend memory (Tom)
867 The vulnerability involves suppressing the normal check that a SQL
868 function returns the data type it's declared to, or changing the
869 data type of a table column used in a SQL function (CVE-
2007-
0555).
870 This error can easily be exploited to cause a backend crash, and in
871 principle might be used to read database content that the user
872 should not be able to access.
878 Fix rare bug wherein btree index page splits could fail
879 due to choosing an infeasible split point (Heikki Linnakangas)
885 Fix for rare Assert() crash triggered by
<literal>UNION<
/> (Tom)
891 Tighten security of multi-byte character processing for UTF8 sequences
892 over three bytes long (Tom)
901 <sect1 id=
"release-7-4-15">
902 <title>Release
7.4.15</title>
905 <title>Release date
</title>
906 <simpara>2007-
01-
08</simpara>
910 This release contains a variety of fixes from
7.4.14.
911 For information about new features in the
7.4 major release, see
912 <xref linkend=
"release-7-4">.
916 <title>Migration to Version
7.4.15</title>
919 A dump/restore is not required for those running
7.4.X. However,
920 if you are upgrading from a version earlier than
7.4.11, see the release
927 <title>Changes
</title>
933 Improve handling of
<function>getaddrinfo()<
/> on AIX (Tom)
937 This fixes a problem with starting the statistics collector,
944 Fix
<quote>failed to re-find parent key<
/> errors in
945 <command>VACUUM<
/> (Tom)
951 Fix bugs affecting multi-gigabyte hash indexes (Tom)
957 Fix error when constructing an
<literal>ARRAY[]<
/> made up of multiple
964 <function>to_number()<
/> and
<function>to_char(numeric)<
/>
965 are now
<literal>STABLE<
/>, not
<literal>IMMUTABLE<
/>, for
966 new
<application>initdb<
/> installs (Tom)
970 This is because
<varname>lc_numeric<
/> can potentially
971 change the output of these functions.
977 Improve index usage of regular expressions that use parentheses (Tom)
981 This improves
<application>psql<
/> <literal>\d<
/> performance also.
990 <sect1 id=
"release-7-4-14">
991 <title>Release
7.4.14</title>
994 <title>Release date
</title>
995 <simpara>2006-
10-
16</simpara>
999 This release contains a variety of fixes from
7.4.13.
1000 For information about new features in the
7.4 major release, see
1001 <xref linkend=
"release-7-4">.
1005 <title>Migration to Version
7.4.14</title>
1008 A dump/restore is not required for those running
7.4.X. However,
1009 if you are upgrading from a version earlier than
7.4.11, see the release
1016 <title>Changes
</title>
1019 <listitem><para>Fix core dump when an untyped literal is taken as
1020 ANYARRAY
</para></listitem>
1021 <listitem><para>Fix
<function>string_to_array()<
/> to handle overlapping
1022 matches for the separator string
</para>
1023 <para>For example,
<literal>string_to_array('
123xx456xxx789', 'xx')<
/>.
1025 <listitem><para>Fix corner cases in pattern matching for
1026 <application>psql<
/>'s
<literal>\d<
/> commands
</para></listitem>
1027 <listitem><para>Fix index-corrupting bugs in /contrib/ltree
1028 (Teodor)
</para></listitem>
1029 <listitem><para>Fix backslash escaping in /contrib/dbmirror
</para></listitem>
1030 <listitem><para>Adjust regression tests for recent changes in US DST laws
1037 <sect1 id=
"release-7-4-13">
1038 <title>Release
7.4.13</title>
1041 <title>Release date
</title>
1042 <simpara>2006-
05-
23</simpara>
1046 This release contains a variety of fixes from
7.4.12,
1047 including patches for extremely serious security issues.
1048 For information about new features in the
7.4 major release, see
1049 <xref linkend=
"release-7-4">.
1053 <title>Migration to Version
7.4.13</title>
1056 A dump/restore is not required for those running
7.4.X. However,
1057 if you are upgrading from a version earlier than
7.4.11, see the release
1062 Full security against the SQL-injection attacks described in
1063 CVE-
2006-
2313 and CVE-
2006-
2314 might require changes in application
1064 code. If you have applications that embed untrustworthy strings
1065 into SQL commands, you should examine them as soon as possible to
1066 ensure that they are using recommended escaping techniques. In
1067 most cases, applications should be using subroutines provided by
1068 libraries or drivers (such as
<application>libpq<
/>'s
1069 <function>PQescapeStringConn()<
/>) to perform string escaping,
1070 rather than relying on
<foreignphrase>ad hoc<
/> code to do it.
1075 <title>Changes
</title>
1078 <listitem><para>Change the server to reject invalidly-encoded multibyte
1079 characters in all cases (Tatsuo, Tom)
</para>
1080 <para>While
<productname>PostgreSQL<
/> has been moving in this direction for
1081 some time, the checks are now applied uniformly to all encodings and all
1082 textual input, and are now always errors not merely warnings. This change
1083 defends against SQL-injection attacks of the type described in CVE-
2006-
2313.
1086 <listitem><para>Reject unsafe uses of
<literal>\'<
/> in string literals
</para>
1087 <para>As a server-side defense against SQL-injection attacks of the type
1088 described in CVE-
2006-
2314, the server now only accepts
<literal>''<
/> and not
1089 <literal>\'<
/> as a representation of ASCII single quote in SQL string
1090 literals. By default,
<literal>\'<
/> is rejected only when
1091 <varname>client_encoding<
/> is set to a client-only encoding (SJIS, BIG5, GBK,
1092 GB18030, or UHC), which is the scenario in which SQL injection is possible.
1093 A new configuration parameter
<varname>backslash_quote<
/> is available to
1094 adjust this behavior when needed. Note that full security against
1095 CVE-
2006-
2314 might require client-side changes; the purpose of
1096 <varname>backslash_quote<
/> is in part to make it obvious that insecure
1097 clients are insecure.
1100 <listitem><para>Modify
<application>libpq<
/>'s string-escaping routines to be
1101 aware of encoding considerations and
1102 <varname>standard_conforming_strings<
/></para>
1103 <para>This fixes
<application>libpq<
/>-using applications for the security
1104 issues described in CVE-
2006-
2313 and CVE-
2006-
2314, and also future-proofs
1105 them against the planned changeover to SQL-standard string literal syntax.
1106 Applications that use multiple
<productname>PostgreSQL<
/> connections
1107 concurrently should migrate to
<function>PQescapeStringConn()<
/> and
1108 <function>PQescapeByteaConn()<
/> to ensure that escaping is done correctly
1109 for the settings in use in each database connection. Applications that
1110 do string escaping
<quote>by hand<
/> should be modified to rely on library
1114 <listitem><para>Fix some incorrect encoding conversion functions
</para>
1115 <para><function>win1251_to_iso<
/>,
<function>alt_to_iso<
/>,
1116 <function>euc_tw_to_big5<
/>,
<function>euc_tw_to_mic<
/>,
1117 <function>mic_to_euc_tw<
/> were all broken to varying
1121 <listitem><para>Clean up stray remaining uses of
<literal>\'<
/> in strings
1122 (Bruce, Jan)
</para></listitem>
1124 <listitem><para>Fix bug that sometimes caused OR'd index scans to
1125 miss rows they should have returned
</para></listitem>
1127 <listitem><para>Fix WAL replay for case where a btree index has been
1128 truncated
</para></listitem>
1130 <listitem><para>Fix
<literal>SIMILAR TO<
/> for patterns involving
1131 <literal>|<
/> (Tom)
</para></listitem>
1133 <listitem><para>Fix server to use custom DH SSL parameters correctly (Michael
1134 Fuhr)
</para></listitem>
1136 <listitem><para>Fix for Bonjour on Intel Macs (Ashley Clark)
</para></listitem>
1138 <listitem><para>Fix various minor memory leaks
</para></listitem>
1144 <sect1 id=
"release-7-4-12">
1145 <title>Release
7.4.12</title>
1148 <title>Release date
</title>
1149 <simpara>2006-
02-
14</simpara>
1153 This release contains a variety of fixes from
7.4.11.
1154 For information about new features in the
7.4 major release, see
1155 <xref linkend=
"release-7-4">.
1159 <title>Migration to Version
7.4.12</title>
1162 A dump/restore is not required for those running
7.4.X. However,
1163 if you are upgrading from a version earlier than
7.4.11, see the release
1169 <title>Changes
</title>
1173 <listitem><para>Fix potential crash in
<command>SET
1174 SESSION AUTHORIZATION<
/> (CVE-
2006-
0553)
</para>
1175 <para>An unprivileged user could crash the server process, resulting in
1176 momentary denial of service to other users, if the server has been compiled
1177 with Asserts enabled (which is not the default).
1178 Thanks to Akio Ishida for reporting this problem.
1181 <listitem><para>Fix bug with row visibility logic in self-inserted
1183 <para>Under rare circumstances a row inserted by the current command
1184 could be seen as already valid, when it should not be. Repairs bug
1185 created in
7.4.9 and
7.3.11 releases.
1188 <listitem><para>Fix race condition that could lead to
<quote>file already
1189 exists<
/> errors during pg_clog file creation
1190 (Tom)
</para></listitem>
1192 <listitem><para>Properly check
<literal>DOMAIN<
/> constraints for
1193 <literal>UNKNOWN<
/> parameters in prepared statements
1194 (Neil)
</para></listitem>
1196 <listitem><para>Fix to allow restoring dumps that have cross-schema
1197 references to custom operators (Tom)
</para></listitem>
1199 <listitem><para>Portability fix for testing presence of
<function>finite<
/>
1200 and
<function>isinf<
/> during configure (Tom)
</para></listitem>
1207 <sect1 id=
"release-7-4-11">
1208 <title>Release
7.4.11</title>
1211 <title>Release date
</title>
1212 <simpara>2006-
01-
09</simpara>
1216 This release contains a variety of fixes from
7.4.10.
1217 For information about new features in the
7.4 major release, see
1218 <xref linkend=
"release-7-4">.
1222 <title>Migration to Version
7.4.11</title>
1225 A dump/restore is not required for those running
7.4.X. However,
1226 if you are upgrading from a version earlier than
7.4.8, see the release
1228 Also, you might need to
<command>REINDEX<
/> indexes on textual
1229 columns after updating, if you are affected by the locale or
1230 <application>plperl<
/> issues described below.
1235 <title>Changes
</title>
1239 <listitem><para>Fix for protocol-level Describe messages issued
1240 outside a transaction or in a failed transaction (Tom)
</para></listitem>
1242 <listitem><para>Fix character string comparison for locales that consider
1243 different character combinations as equal, such as Hungarian (Tom)
</para>
1244 <para>This might require
<command>REINDEX<
/> to fix existing indexes on
1245 textual columns.
</para></listitem>
1247 <listitem><para>Set locale environment variables during postmaster startup
1248 to ensure that
<application>plperl<
/> won't change the locale later
</para>
1249 <para>This fixes a problem that occurred if the
<application>postmaster<
/> was
1250 started with environment variables specifying a different locale than what
1251 <application>initdb<
/> had been told. Under these conditions, any use of
1252 <application>plperl<
/> was likely to lead to corrupt indexes. You might need
1253 <command>REINDEX<
/> to fix existing indexes on
1254 textual columns if this has happened to you.
</para></listitem>
1256 <listitem><para>Fix longstanding bug in strpos() and regular expression
1257 handling in certain rarely used Asian multi-byte character sets (Tatsuo)
1260 <listitem><para>Fix bug in
<filename>/contrib/pgcrypto<
/> gen_salt,
1261 which caused it not to use all available salt space for MD5 and
1262 XDES algorithms (Marko Kreen, Solar Designer)
</para>
1263 <para>Salts for Blowfish and standard DES are unaffected.
</para></listitem>
1265 <listitem><para>Fix
<filename>/contrib/dblink<
/> to throw an error,
1266 rather than crashing, when the number of columns specified is different from
1267 what's actually returned by the query (Joe)
</para></listitem>
1274 <sect1 id=
"release-7-4-10">
1275 <title>Release
7.4.10</title>
1278 <title>Release date
</title>
1279 <simpara>2005-
12-
12</simpara>
1283 This release contains a variety of fixes from
7.4.9.
1284 For information about new features in the
7.4 major release, see
1285 <xref linkend=
"release-7-4">.
1289 <title>Migration to Version
7.4.10</title>
1292 A dump/restore is not required for those running
7.4.X. However,
1293 if you are upgrading from a version earlier than
7.4.8, see the release
1299 <title>Changes
</title>
1303 <listitem><para>Fix race condition in transaction log management
</para>
1304 <para>There was a narrow window in which an I/O operation could be initiated
1305 for the wrong page, leading to an Assert failure or data
1309 <listitem><para>Prevent failure if client sends Bind protocol message
1310 when current transaction is already aborted
</para></listitem>
1312 <listitem><para><filename>/contrib/ltree<
/> fixes (Teodor)
</para></listitem>
1314 <listitem><para>AIX and HPUX compile fixes (Tom)
</para></listitem>
1316 <listitem><para>Fix longstanding planning error for outer joins
</para>
1317 <para>This bug sometimes caused a bogus error
<quote>RIGHT JOIN is
1318 only supported with merge-joinable join conditions<
/>.
</para></listitem>
1320 <listitem><para>Prevent core dump in
<application>pg_autovacuum<
/> when a
1321 table has been dropped
</para></listitem>
1327 <sect1 id=
"release-7-4-9">
1328 <title>Release
7.4.9</title>
1331 <title>Release date
</title>
1332 <simpara>2005-
10-
04</simpara>
1336 This release contains a variety of fixes from
7.4.8.
1337 For information about new features in the
7.4 major release, see
1338 <xref linkend=
"release-7-4">.
1342 <title>Migration to Version
7.4.9</title>
1345 A dump/restore is not required for those running
7.4.X. However,
1346 if you are upgrading from a version earlier than
7.4.8, see the release
1352 <title>Changes
</title>
1355 <listitem><para>Fix error that allowed
<command>VACUUM<
/> to remove
1356 <literal>ctid<
/> chains too soon, and add more checking in code that follows
1357 <literal>ctid<
/> links
</para>
1358 <para>This fixes a long-standing problem that could cause crashes in very rare
1359 circumstances.
</para></listitem>
1360 <listitem><para>Fix
<type>CHAR()<
/> to properly pad spaces to the specified
1361 length when using a multiple-byte character set (Yoshiyuki Asaba)
</para>
1362 <para>In prior releases, the padding of
<type>CHAR()<
/> was incorrect
1363 because it only padded to the specified number of bytes without
1364 considering how many characters were stored.
</para></listitem>
1365 <listitem><para>Fix the sense of the test for read-only transaction
1366 in
<command>COPY<
/></para>
1367 <para>The code formerly prohibited
<command>COPY TO<
/>, where it should
1368 prohibit
<command>COPY FROM<
/>.
1370 <listitem><para>Fix planning problem with outer-join ON clauses that reference
1371 only the inner-side relation
</para></listitem>
1372 <listitem><para>Further fixes for
<literal>x FULL JOIN y ON true<
/> corner
1373 cases
</para></listitem>
1374 <listitem><para>Make
<function>array_in<
/> and
<function>array_recv<
/> more
1375 paranoid about validating their OID parameter
</para></listitem>
1376 <listitem><para>Fix missing rows in queries like
<literal>UPDATE a=... WHERE
1377 a...<
/> with GiST index on column
<literal>a<
/></para></listitem>
1378 <listitem><para>Improve robustness of datetime parsing
</para></listitem>
1379 <listitem><para>Improve checking for partially-written WAL
1380 pages
</para></listitem>
1381 <listitem><para>Improve robustness of signal handling when SSL is
1382 enabled
</para></listitem>
1383 <listitem><para>Don't try to open more than
<literal>max_files_per_process<
/>
1384 files during postmaster startup
</para></listitem>
1385 <listitem><para>Various memory leakage fixes
</para></listitem>
1386 <listitem><para>Various portability improvements
</para></listitem>
1387 <listitem><para>Fix PL/PgSQL to handle
<literal>var := var<
/> correctly when
1388 the variable is of pass-by-reference type
</para></listitem>
1389 <listitem><para>Update
<filename>contrib/tsearch2<
/> to use current Snowball
1390 code
</para></listitem>
1396 <sect1 id=
"release-7-4-8">
1397 <title>Release
7.4.8</title>
1400 <title>Release date
</title>
1401 <simpara>2005-
05-
09</simpara>
1405 This release contains a variety of fixes from
7.4.7, including several
1406 security-related issues.
1407 For information about new features in the
7.4 major release, see
1408 <xref linkend=
"release-7-4">.
1412 <title>Migration to Version
7.4.8</title>
1415 A dump/restore is not required for those running
7.4.X. However,
1416 it is one possible way of handling two significant security problems
1417 that have been found in the initial contents of
7.4.X system
1418 catalogs. A dump/initdb/reload sequence using
7.4.8's initdb will
1419 automatically correct these problems.
1423 The larger security problem is that the built-in character set encoding
1424 conversion functions can be invoked from SQL commands by unprivileged
1425 users, but the functions were not designed for such use and are not
1426 secure against malicious choices of arguments. The fix involves changing
1427 the declared parameter list of these functions so that they can no longer
1428 be invoked from SQL commands. (This does not affect their normal use
1429 by the encoding conversion machinery.)
1433 The lesser problem is that the
<filename>contrib/tsearch2<
/> module
1434 creates several functions that are misdeclared to return
1435 <type>internal<
/> when they do not accept
<type>internal<
/> arguments.
1436 This breaks type safety for all functions using
<type>internal<
/>
1441 It is strongly recommended that all installations repair these errors,
1442 either by initdb or by following the manual repair procedures given
1443 below. The errors at least allow unprivileged database users to crash
1444 their server process, and might allow unprivileged users to gain the
1445 privileges of a database superuser.
1449 If you wish not to do an initdb, perform the following procedures instead.
1450 As the database superuser, do:
1454 UPDATE pg_proc SET proargtypes[
3] = 'internal'::regtype
1455 WHERE pronamespace =
11 AND pronargs =
5
1456 AND proargtypes[
2] = 'cstring'::regtype;
1457 -- The command should report having updated
90 rows;
1458 -- if not, rollback and investigate instead of committing!
1462 Next, if you have installed
<filename>contrib/tsearch2<
/>, do:
1466 UPDATE pg_proc SET proargtypes[
0] = 'internal'::regtype
1468 'dex_init(text)'::regprocedure,
1469 'snb_en_init(text)'::regprocedure,
1470 'snb_ru_init(text)'::regprocedure,
1471 'spell_init(text)'::regprocedure,
1472 'syn_init(text)'::regprocedure
1474 -- The command should report having updated
5 rows;
1475 -- if not, rollback and investigate instead of committing!
1479 If this command fails with a message like
<quote>function
1480 "dex_init(text)" does not exist<
/>, then either
<filename>tsearch2<
/>
1481 is not installed in this database, or you already did the update.
1485 The above procedures must be carried out in
<emphasis>each<
/> database
1486 of an installation, including
<literal>template1<
/>, and ideally
1487 including
<literal>template0<
/> as well. If you do not fix the
1488 template databases then any subsequently created databases will contain
1489 the same errors.
<literal>template1<
/> can be fixed in the same way
1490 as any other database, but fixing
<literal>template0<
/> requires
1491 additional steps. First, from any database issue:
1493 UPDATE pg_database SET datallowconn = true WHERE datname = 'template0';
1495 Next connect to
<literal>template0<
/> and perform the above repair
1496 procedures. Finally, do:
1498 -- re-freeze template0:
1500 -- and protect it against future alterations:
1501 UPDATE pg_database SET datallowconn = false WHERE datname = 'template0';
1507 <title>Changes
</title>
1510 <listitem><para>Change encoding function signature to prevent
1511 misuse
</para></listitem>
1512 <listitem><para>Change
<filename>contrib/tsearch2<
/> to avoid unsafe use of
1513 <type>INTERNAL<
/> function results
</para></listitem>
1514 <listitem><para>Repair ancient race condition that allowed a transaction to be
1515 seen as committed for some purposes (eg SELECT FOR UPDATE) slightly sooner
1516 than for other purposes
</para>
1517 <para>This is an extremely serious bug since it could lead to apparent
1518 data inconsistencies being briefly visible to applications.
</para></listitem>
1519 <listitem><para>Repair race condition between relation extension and
1521 <para>This could theoretically have caused loss of a page's worth of
1522 freshly-inserted data, although the scenario seems of very low probability.
1523 There are no known cases of it having caused more than an Assert failure.
1525 <listitem><para>Fix comparisons of
<type>TIME WITH TIME ZONE<
/> values
</para>
1527 The comparison code was wrong in the case where the
1528 <literal>--enable-integer-datetimes<
/> configuration switch had been used.
1529 NOTE: if you have an index on a
<type>TIME WITH TIME ZONE<
/> column,
1530 it will need to be
<command>REINDEX<
/>ed after installing this update, because
1531 the fix corrects the sort order of column values.
1533 <listitem><para>Fix
<function>EXTRACT(EPOCH)<
/> for
1534 <type>TIME WITH TIME ZONE<
/> values
</para></listitem>
1535 <listitem><para>Fix mis-display of negative fractional seconds in
1536 <type>INTERVAL<
/> values
</para>
1538 This error only occurred when the
1539 <literal>--enable-integer-datetimes<
/> configuration switch had been used.
1541 <listitem><para>Ensure operations done during backend shutdown are counted by
1542 statistics collector
</para>
1544 This is expected to resolve reports of
<application>pg_autovacuum<
/>
1545 not vacuuming the system catalogs often enough
— it was not being
1546 told about catalog deletions caused by temporary table removal during
1549 <listitem><para>Additional buffer overrun checks in plpgsql
1550 (Neil)
</para></listitem>
1551 <listitem><para>Fix pg_dump to dump trigger names containing
<literal>%<
/>
1552 correctly (Neil)
</para></listitem>
1553 <listitem><para>Fix
<filename>contrib/pgcrypto<
/> for newer OpenSSL builds
1554 (Marko Kreen)
</para></listitem>
1555 <listitem><para>Still more
64-bit fixes for
1556 <filename>contrib/intagg<
/></para></listitem>
1557 <listitem><para>Prevent incorrect optimization of functions returning
1558 <type>RECORD<
/></para></listitem>
1559 <listitem><para>Prevent
<function>to_char(interval)<
/> from dumping core for
1560 month-related formats
</para></listitem>
1561 <listitem><para>Prevent crash on
<literal>COALESCE(NULL,NULL)<
/></para></listitem>
1562 <listitem><para>Fix
<function>array_map<
/> to call PL functions correctly
</para></listitem>
1563 <listitem><para>Fix permission checking in
<command>ALTER DATABASE RENAME<
/></para></listitem>
1564 <listitem><para>Fix
<command>ALTER LANGUAGE RENAME<
/></para></listitem>
1565 <listitem><para>Make
<function>RemoveFromWaitQueue<
/> clean up after itself
</para>
1567 This fixes a lock management error that would only be visible if a transaction
1568 was kicked out of a wait for a lock (typically by query cancel) and then the
1569 holder of the lock released it within a very narrow window.
1571 <listitem><para>Fix problem with untyped parameter appearing in
1572 <command>INSERT ... SELECT<
/></para></listitem>
1573 <listitem><para>Fix
<command>CLUSTER<
/> failure after
1574 <command>ALTER TABLE SET WITHOUT OIDS<
/></para></listitem>
1580 <sect1 id=
"release-7-4-7">
1581 <title>Release
7.4.7</title>
1584 <title>Release date
</title>
1585 <simpara>2005-
01-
31</simpara>
1589 This release contains a variety of fixes from
7.4.6, including several
1590 security-related issues.
1591 For information about new features in the
7.4 major release, see
1592 <xref linkend=
"release-7-4">.
1596 <title>Migration to Version
7.4.7</title>
1599 A dump/restore is not required for those running
7.4.X.
1604 <title>Changes
</title>
1607 <listitem><para>Disallow
<command>LOAD<
/> to non-superusers
</para>
1609 On platforms that will automatically execute initialization functions of a
1610 shared library (this includes at least Windows and ELF-based Unixen),
1611 <command>LOAD<
/> can be used to make the server execute arbitrary code.
1612 Thanks to NGS Software for reporting this.
</para></listitem>
1613 <listitem><para>Check that creator of an aggregate function has the right to
1614 execute the specified transition functions
</para>
1616 This oversight made it possible to bypass denial of EXECUTE
1617 permission on a function.
</para></listitem>
1618 <listitem><para>Fix security and
64-bit issues in
1619 contrib/intagg
</para></listitem>
1620 <listitem><para>Add needed STRICT marking to some contrib functions (Kris
1621 Jurka)
</para></listitem>
1622 <listitem><para>Avoid buffer overrun when plpgsql cursor declaration has too
1623 many parameters (Neil)
</para></listitem>
1624 <listitem><para>Fix planning error for FULL and RIGHT outer joins
</para>
1626 The result of the join was mistakenly supposed to be sorted the same as the
1627 left input. This could not only deliver mis-sorted output to the user, but
1628 in case of nested merge joins could give outright wrong answers.
1630 <listitem><para>Fix plperl for quote marks in tuple fields
</para></listitem>
1631 <listitem><para>Fix display of negative intervals in SQL and GERMAN
1632 datestyles
</para></listitem>
1633 <listitem><para>Make age(timestamptz) do calculation in local timezone not
1634 GMT
</para></listitem>
1640 <sect1 id=
"release-7-4-6">
1641 <title>Release
7.4.6</title>
1644 <title>Release date
</title>
1645 <simpara>2004-
10-
22</simpara>
1649 This release contains a variety of fixes from
7.4.5.
1650 For information about new features in the
7.4 major release, see
1651 <xref linkend=
"release-7-4">.
1656 <title>Migration to Version
7.4.6</title>
1659 A dump/restore is not required for those running
7.4.X.
1664 <title>Changes
</title>
1667 <listitem><para>Repair possible failure to update hint bits on disk
</para>
1669 Under rare circumstances this oversight could lead to
1670 <quote>could not access transaction status<
/> failures, which qualifies
1671 it as a potential-data-loss bug.
1673 <listitem><para>Ensure that hashed outer join does not miss tuples
</para>
1675 Very large left joins using a hash join plan could fail to output unmatched
1676 left-side rows given just the right data distribution.
1678 <listitem><para>Disallow running
<application>pg_ctl<
/> as root
</para>
1680 This is to guard against any possible security issues.
1682 <listitem><para>Avoid using temp files in
<filename>/tmp<
/> in
<command>make_oidjoins_check
</command></para>
1684 This has been reported as a security issue, though it's hardly worthy of
1685 concern since there is no reason for non-developers to use this script anyway.
1687 <listitem><para>Prevent forced backend shutdown from re-emitting prior command
1690 In rare cases, a client might think that its last command had succeeded when
1691 it really had been aborted by forced database shutdown.
1693 <listitem><para>Repair bug in
<function>pg_stat_get_backend_idset
</function></para>
1695 This could lead to misbehavior in some of the system-statistics views.
1697 <listitem><para>Fix small memory leak in postmaster
</para></listitem>
1698 <listitem><para>Fix
<quote>expected both swapped tables to have TOAST
1699 tables<
/> bug
</para>
1701 This could arise in cases such as CLUSTER after ALTER TABLE DROP COLUMN.
1703 <listitem><para>Prevent
<literal>pg_ctl restart<
/> from adding
<literal>-D<
/> multiple times
</para></listitem>
1704 <listitem><para>Fix problem with NULL values in GiST indexes
</para></listitem>
1705 <listitem><para><literal>::<
/> is no longer interpreted as a variable in an
1706 ECPG prepare statement
</para></listitem>
1712 <sect1 id=
"release-7-4-5">
1713 <title>Release
7.4.5</title>
1716 <title>Release date
</title>
1717 <simpara>2004-
08-
18</simpara>
1721 This release contains one serious bug fix over
7.4.4.
1722 For information about new features in the
7.4 major release, see
1723 <xref linkend=
"release-7-4">.
1728 <title>Migration to Version
7.4.5</title>
1731 A dump/restore is not required for those running
7.4.X.
1736 <title>Changes
</title>
1739 <listitem><para>Repair possible crash during concurrent B-tree index insertions
</para>
1741 This patch fixes a rare case in which concurrent insertions into a B-tree index
1742 could result in a server panic. No permanent damage would result, but it's
1743 still worth a re-release. The bug does not exist in pre-
7.4 releases.
1750 <sect1 id=
"release-7-4-4">
1751 <title>Release
7.4.4</title>
1754 <title>Release date
</title>
1755 <simpara>2004-
08-
16</simpara>
1759 This release contains a variety of fixes from
7.4.3.
1760 For information about new features in the
7.4 major release, see
1761 <xref linkend=
"release-7-4">.
1766 <title>Migration to Version
7.4.4</title>
1769 A dump/restore is not required for those running
7.4.X.
1774 <title>Changes
</title>
1777 <listitem><para>Prevent possible loss of committed transactions during crash
</para>
1779 Due to insufficient interlocking between transaction commit and checkpointing,
1780 it was possible for transactions committed just before the most recent
1781 checkpoint to be lost, in whole or in part, following a database crash and
1782 restart. This is a serious bug that has existed
1783 since
<productname>PostgreSQL
</productname> 7.1.
1785 <listitem><para>Check HAVING restriction before evaluating result list of an
1786 aggregate plan
</para></listitem>
1787 <listitem><para>Avoid crash when session's current user ID is deleted
</para></listitem>
1788 <listitem><para>Fix hashed crosstab for zero-rows case (Joe)
</para></listitem>
1789 <listitem><para>Force cache update after renaming a column in a foreign key
</para></listitem>
1790 <listitem><para>Pretty-print UNION queries correctly
</para></listitem>
1791 <listitem><para>Make psql handle
<literal>\r\n<
/> newlines properly in COPY IN
</para></listitem>
1792 <listitem><para><application>pg_dump<
/> handled ACLs with grant options incorrectly
</para></listitem>
1793 <listitem><para>Fix thread support for OS X and Solaris
</para></listitem>
1794 <listitem><para>Updated JDBC driver (build
215) with various fixes
</para></listitem>
1795 <listitem><para>ECPG fixes
</para></listitem>
1796 <listitem><para>Translation updates (various contributors)
</para></listitem>
1802 <sect1 id=
"release-7-4-3">
1803 <title>Release
7.4.3</title>
1806 <title>Release date
</title>
1807 <simpara>2004-
06-
14</simpara>
1811 This release contains a variety of fixes from
7.4.2.
1812 For information about new features in the
7.4 major release, see
1813 <xref linkend=
"release-7-4">.
1818 <title>Migration to Version
7.4.3</title>
1821 A dump/restore is not required for those running
7.4.X.
1826 <title>Changes
</title>
1829 <listitem><para>Fix temporary memory leak when using non-hashed aggregates (Tom)
</para></listitem>
1830 <listitem><para>ECPG fixes, including some for Informix compatibility (Michael)
</para></listitem>
1831 <listitem><para>Fixes for compiling with thread-safety, particularly Solaris (Bruce)
</para></listitem>
1832 <listitem><para>Fix error in COPY IN termination when using the old network protocol (ljb)
</para></listitem>
1833 <listitem><para>Several important fixes in pg_autovacuum, including fixes for
1834 large tables, unsigned oids, stability, temp tables, and debug mode
1835 (Matthew T. O'Connor)
</para></listitem>
1836 <listitem><para>Fix problem with reading tar-format dumps on NetBSD and BSD/OS (Bruce)
</para></listitem>
1837 <listitem><para>Several JDBC fixes
</para></listitem>
1838 <listitem><para>Fix ALTER SEQUENCE RESTART where last_value equals the restart value (Tom)
</para></listitem>
1839 <listitem><para>Repair failure to recalculate nested sub-selects (Tom)
</para></listitem>
1840 <listitem><para>Fix problems with non-constant expressions in LIMIT/OFFSET
</para></listitem>
1841 <listitem><para>Support FULL JOIN with no join clause, such as X FULL JOIN Y ON TRUE (Tom)
</para></listitem>
1842 <listitem><para>Fix another zero-column table bug (Tom)
</para></listitem>
1843 <listitem><para>Improve handling of non-qualified identifiers in GROUP BY clauses in sub-selects (Tom)
</para>
1845 Select-list aliases within the sub-select will now take precedence over
1846 names from outer query levels.
1848 <listitem><para>Do not generate
<quote>NATURAL CROSS JOIN<
/> when decompiling rules (Tom)
</para></listitem>
1849 <listitem><para>Add checks for invalid field length in binary COPY (Tom)
</para>
1851 This fixes a difficult-to-exploit security hole.
1853 <listitem><para>Avoid locking conflict between
<command>ANALYZE
</command> and
<command>LISTEN
</command>/
<command>NOTIFY
</command></para></listitem>
1854 <listitem><para>Numerous translation updates (various contributors)
</para></listitem>
1860 <sect1 id=
"release-7-4-2">
1861 <title>Release
7.4.2</title>
1864 <title>Release date
</title>
1865 <simpara>2004-
03-
08</simpara>
1869 This release contains a variety of fixes from
7.4.1.
1870 For information about new features in the
7.4 major release, see
1871 <xref linkend=
"release-7-4">.
1876 <title>Migration to Version
7.4.2</title>
1879 A dump/restore is not required for those running
7.4.X. However,
1880 it might be advisable as the easiest method of incorporating fixes for
1881 two errors that have been found in the initial contents of
7.4.X system
1882 catalogs. A dump/initdb/reload sequence using
7.4.2's initdb will
1883 automatically correct these problems.
1887 The more severe of the two errors is that data type
<type>anyarray<
/>
1888 has the wrong alignment label; this is a problem because the
1889 <structname>pg_statistic<
/> system catalog uses
<type>anyarray<
/>
1890 columns. The mislabeling can cause planner misestimations and even
1891 crashes when planning queries that involve
<literal>WHERE<
/> clauses on
1892 double-aligned columns (such as
<type>float8<
/> and
<type>timestamp<
/>).
1893 It is strongly recommended that all installations repair this error,
1894 either by initdb or by following the manual repair procedure given
1899 The lesser error is that the system view
<structname>pg_settings<
/>
1900 ought to be marked as having public update access, to allow
1901 <literal>UPDATE pg_settings<
/> to be used as a substitute for
1902 <command>SET<
/>. This can also be fixed either by initdb or manually,
1903 but it is not necessary to fix unless you want to use
<literal>UPDATE
1908 If you wish not to do an initdb, the following procedure will work
1909 for fixing
<structname>pg_statistic<
/>. As the database superuser,
1913 -- clear out old data in pg_statistic:
1914 DELETE FROM pg_statistic;
1915 VACUUM pg_statistic;
1916 -- this should update
1 row:
1917 UPDATE pg_type SET typalign = 'd' WHERE oid =
2277;
1918 -- this should update
6 rows:
1919 UPDATE pg_attribute SET attalign = 'd' WHERE atttypid =
2277;
1921 -- At this point you MUST start a fresh backend to avoid a crash!
1923 -- repopulate pg_statistic:
1927 This can be done in a live database, but beware that all backends
1928 running in the altered database must be restarted before it is safe to
1929 repopulate
<structname>pg_statistic<
/>.
1933 To repair the
<structname>pg_settings<
/> error, simply do:
1935 GRANT SELECT, UPDATE ON pg_settings TO PUBLIC;
1940 The above procedures must be carried out in
<emphasis>each<
/> database
1941 of an installation, including
<literal>template1<
/>, and ideally
1942 including
<literal>template0<
/> as well. If you do not fix the
1943 template databases then any subsequently created databases will contain
1944 the same errors.
<literal>template1<
/> can be fixed in the same way
1945 as any other database, but fixing
<literal>template0<
/> requires
1946 additional steps. First, from any database issue:
1948 UPDATE pg_database SET datallowconn = true WHERE datname = 'template0';
1950 Next connect to
<literal>template0<
/> and perform the above repair
1951 procedures. Finally, do:
1953 -- re-freeze template0:
1955 -- and protect it against future alterations:
1956 UPDATE pg_database SET datallowconn = false WHERE datname = 'template0';
1962 <title>Changes
</title>
1965 Release
7.4.2 incorporates all the fixes included in release
7.3.6,
1966 plus the following fixes:
1970 <listitem><para>Fix
<structname>pg_statistics<
/> alignment bug that could crash optimizer
</para>
1971 <para>See above for details about this problem.
</para></listitem>
1972 <listitem><para>Allow non-super users to update
<structname>pg_settings<
/></para></listitem>
1973 <listitem><para>Fix several optimizer bugs, most of which led to
1974 <quote>variable not found in subplan target lists<
/> errors
</para></listitem>
1975 <listitem><para>Avoid out-of-memory failure during startup of large multiple
1976 index scan
</para></listitem>
1977 <listitem><para>Fix multibyte problem that could lead to
<quote>out of
1978 memory<
/> error during
<command>COPY IN<
/></para></listitem>
1979 <listitem><para>Fix problems with
<command>SELECT INTO<
/> /
<command>CREATE
1980 TABLE AS<
/> from tables without OIDs
</para></listitem>
1981 <listitem><para>Fix problems with
<filename>alter_table<
/> regression test
1982 during parallel testing
</para></listitem>
1983 <listitem><para>Fix problems with hitting open file limit, especially on OS X (Tom)
</para></listitem>
1984 <listitem><para>Partial fix for Turkish-locale issues
</para>
1985 <para>initdb will succeed now in Turkish locale, but there are still some
1986 inconveniences associated with the
<literal>i/I<
/> problem.
</para></listitem>
1987 <listitem><para>Make pg_dump set client encoding on restore
</para></listitem>
1988 <listitem><para>Other minor pg_dump fixes
</para></listitem>
1989 <listitem><para>Allow ecpg to again use C keywords as column names (Michael)
</para></listitem>
1990 <listitem><para>Added ecpg
<literal>WHENEVER NOT_FOUND<
/> to
1991 <literal>SELECT/INSERT/UPDATE/DELETE<
/> (Michael)
</para></listitem>
1992 <listitem><para>Fix ecpg crash for queries calling set-returning functions (Michael)
</para></listitem>
1993 <listitem><para>Various other ecpg fixes (Michael)
</para></listitem>
1994 <listitem><para>Fixes for Borland compiler
</para></listitem>
1995 <listitem><para>Thread build improvements (Bruce)
</para></listitem>
1996 <listitem><para>Various other build fixes
</para></listitem>
1997 <listitem><para>Various JDBC fixes
</para></listitem>
2003 <sect1 id=
"release-7-4-1">
2004 <title>Release
7.4.1</title>
2007 <title>Release date
</title>
2008 <simpara>2003-
12-
22</simpara>
2012 This release contains a variety of fixes from
7.4.
2013 For information about new features in the
7.4 major release, see
2014 <xref linkend=
"release-7-4">.
2019 <title>Migration to Version
7.4.1</title>
2022 A dump/restore is
<emphasis>not
</emphasis> required for those
2027 If you want to install the fixes in the information schema
2028 you need to reload it into the database.
2029 This is either accomplished by initializing a new cluster
2030 by running
<command>initdb
</command>, or by running the following
2031 sequence of SQL commands in each database (ideally including
2032 <literal>template1
</literal>) as a superuser in
2033 <application>psql
</application>, after installing the new release:
2035 DROP SCHEMA information_schema CASCADE;
2036 \i /usr/local/pgsql/share/information_schema.sql
2038 Substitute your installation path in the second command.
2044 <title>Changes
</title>
2047 <listitem><para>Fixed bug in
<command>CREATE SCHEMA
</command> parsing in ECPG (Michael)
</para></listitem>
2048 <listitem><para>Fix compile error when
<option>--enable-thread-safety
</option> and
<option>--with-perl
</option> are used together (Peter)
</para></listitem>
2049 <listitem><para>Fix for subqueries that used hash joins (Tom)
</para>
2051 Certain subqueries that used hash joins would crash because of
2052 improperly shared structures.
2054 <listitem><para>Fix free space map compaction bug (Tom)
</para>
2056 This fixes a bug where compaction of the free space map could lead
2057 to a database server shutdown.
2060 <listitem><para>Fix for Borland compiler build of libpq (Bruce)
</para></listitem>
2061 <listitem><para>Fix
<function>netmask()
</function> and
<function>hostmask()
</function> to return the maximum-length masklen (Tom)
</para>
2063 Fix these functions to return values consistent with pre-
7.4
2067 <listitem><para>Several
<filename>contrib/pg_autovacuum
</filename> fixes
</para>
2069 Fixes include improper variable initialization, missing vacuum after
2070 <command>TRUNCATE
</command>, and duration computation overflow for long vacuums.
2073 <listitem><para>Allow compile of
<filename>contrib/cube
</filename> under Cygwin (Jason Tishler)
</para></listitem>
2074 <listitem><para>Fix Solaris use of password file when no passwords are defined (Tom)
</para>
2076 Fix crash on Solaris caused by use of any type of password
2077 authentication when no passwords were defined.
2080 <listitem><para>JDBC fix for thread problems, other fixes
</para></listitem>
2081 <listitem><para>Fix for
<type>bytea
</type> index lookups (Joe)
</para></listitem>
2082 <listitem><para>Fix information schema for bit data types (Peter)
</para></listitem>
2083 <listitem><para>Force zero_damaged_pages to be on during recovery from WAL
</para></listitem>
2084 <listitem><para>Prevent some obscure cases of
<quote>variable not in subplan target lists
</quote></para></listitem>
2085 <listitem><para>Make
<function>PQescapeBytea
</function> and
<function>byteaout
</function> consistent with each other (Joe)
</para></listitem>
2086 <listitem><para>Escape
<type>bytea
</type> output for bytes
> 0x7e(Joe)
</para>
2088 If different client encodings are used for
<type>bytea
</type> output and input, it
2089 is possible for
<type>bytea
</type> values to be corrupted by the differing
2090 encodings. This fix escapes all bytes that might be affected.
2093 <listitem><para>Added missing
<function>SPI_finish()
</function> calls to dblink's
<function>get_tuple_of_interest()
</function> (Joe)
</para></listitem>
2094 <listitem><para>New Czech FAQ
</para></listitem>
2095 <listitem><para>Fix information schema view
<literal>constraint_column_usage
</literal> for foreign keys (Peter)
</para></listitem>
2096 <listitem><para>ECPG fixes (Michael)
</para></listitem>
2097 <listitem><para>Fix bug with multiple
<literal>IN
</literal> subqueries and joins in the subqueries (Tom)
</para></listitem>
2098 <listitem><para>Allow
<literal>COUNT('x')
</literal> to work (Tom)
</para></listitem>
2099 <listitem><para>Install ECPG include files for Informix compatibility into separate directory (Peter)
</para>
2101 Some names of ECPG include files for Informix compatibility conflicted with operating system include files.
2102 By installing them in their own directory, name conflicts have been reduced.
2105 <listitem><para>Fix SSL memory leak (Neil)
</para>
2107 This release fixes a bug in
7.4 where SSL didn't free all memory it allocated.
2110 <listitem><para>Prevent
<filename>pg_service.conf
</filename> from using service name as default dbname (Bruce)
</para></listitem>
2111 <listitem><para>Fix local ident authentication on FreeBSD (Tom)
</para></listitem>
2117 <sect1 id=
"release-7-4">
2118 <title>Release
7.4</title>
2121 <title>Release date
</title>
2122 <simpara>2003-
11-
17</simpara>
2126 <title>Overview
</title>
2129 Major changes in this release:
2135 <literal>IN
</literal> /
<literal>NOT IN
</literal> subqueries are
2136 now much more efficient
2141 In previous releases,
<literal>IN
</literal>/
<literal>NOT
2142 IN
</literal> subqueries were joined to the upper query by
2143 sequentially scanning the subquery looking for a match. The
2144 7.4 code uses the same sophisticated techniques used by
2145 ordinary joins and so is much faster. An
2146 <literal>IN
</literal> will now usually be as fast as or faster
2147 than an equivalent
<literal>EXISTS
</literal> subquery; this
2148 reverses the conventional wisdom that applied to previous
2156 Improved
<literal>GROUP BY
</literal> processing by using hash buckets
2161 In previous releases, rows to be grouped had to be sorted
2162 first. The
7.4 code can do
<literal>GROUP BY
</literal>
2163 without sorting, by accumulating results into a hash table
2164 with one entry per group. It will still use the sort
2165 technique, however, if the hash table is estimated to be too
2166 large to fit in
<varname>sort_mem<
/>.
2173 New multikey hash join capability
2178 In previous releases, hash joins could only occur on single
2179 keys. This release allows multicolumn hash joins.
2186 Queries using the explicit
<literal>JOIN
</literal> syntax are
2187 now better optimized
2192 Prior releases evaluated queries using the explicit
2193 <literal>JOIN
</literal> syntax only in the order implied by
2194 the syntax.
7.4 allows full optimization of these queries,
2195 meaning the optimizer considers all possible join orderings
2196 and chooses the most efficient. Outer joins, however, must
2197 still follow the declared ordering.
2204 Faster and more powerful regular expression code
2209 The entire regular expression module has been replaced with a
2210 new version by Henry Spencer, originally written for Tcl. The
2211 code greatly improves performance and supports several flavors
2212 of regular expressions.
2219 Function-inlining for simple SQL functions
2224 Simple SQL functions can now be inlined by including their SQL
2225 in the main query. This improves performance by eliminating
2226 per-call overhead. That means simple SQL functions now
2234 Full support for IPv6 connections and IPv6 address data types
2239 Previous releases allowed only IPv4 connections, and the IP
2240 data types only supported IPv4 addresses. This release adds
2241 full IPv6 support in both of these areas.
2248 Major improvements in SSL performance and reliability
2253 Several people very familiar with the SSL API have overhauled
2254 our SSL code to improve SSL key negotiation and error
2262 Make free space map efficiently reuse empty index pages,
2263 and other free space management improvements
2268 In previous releases, B-tree index pages that were left empty
2269 because of deleted rows could only be reused by rows with
2270 index values similar to the rows originally indexed on that
2271 page. In
7.4,
<command>VACUUM
</command> records empty index
2272 pages and allows them to be reused for any future index rows.
2279 SQL-standard information schema
2284 The information schema provides a standardized and stable way
2285 to access information about the schema objects defined in a
2293 Cursors conform more closely to the SQL standard
2298 The commands
<command>FETCH
</command> and
2299 <command>MOVE
</command> have been overhauled to conform more
2300 closely to the SQL standard.
2307 Cursors can exist outside transactions
2312 These cursors are also called holdable cursors.
2319 New client-to-server protocol
2324 The new protocol adds error codes, more status information,
2325 faster startup, better support for binary data transmission,
2326 parameter values separated from SQL commands, prepared
2327 statements available at the protocol level, and cleaner
2328 recovery from
<command>COPY
</command> failures. The older
2329 protocol is still supported by both server and clients.
2336 <application>libpq
</application> and
2337 <application>ECPG
</application> applications are now fully
2343 While previous
<application>libpq
</application> releases
2344 already supported threads, this release improves thread safety
2345 by fixing some non-thread-safe code that was used during
2346 database connection startup. The
<command>configure
</command>
2347 option
<option>--enable-thread-safety
</option> must be used to
2348 enable this feature.
2355 New version of full-text indexing
2360 A new full-text indexing suite is available in
2361 <filename>contrib/tsearch2
</filename>.
2373 The new autovacuum tool in
2374 <filename>contrib/autovacuum
</filename> monitors the database
2375 statistics tables for
2376 <command>INSERT
</command>/
<command>UPDATE
</command>/
<command>DELETE
</command>
2377 activity and automatically vacuums tables when needed.
2384 Array handling has been improved and moved into the server core
2389 Many array limitations have been removed, and arrays behave
2390 more like fully-supported data types.
2399 <title>Migration to Version
7.4</title>
2402 A dump/restore using
<application>pg_dump
</application> is
2403 required for those wishing to migrate data from any previous
2408 Observe the following incompatibilities:
2414 The server-side autocommit setting was removed and
2415 reimplemented in client applications and languages.
2416 Server-side autocommit was causing too many problems with
2417 languages and applications that wanted to control their own
2418 autocommit behavior, so autocommit was removed from the server
2419 and added to individual client APIs as appropriate.
2425 Error message wording has changed substantially in this
2426 release. Significant effort was invested to make the messages
2427 more consistent and user-oriented. If your applications try to
2428 detect different error conditions by parsing the error message,
2429 you are strongly encouraged to use the new error code facility instead.
2435 Inner joins using the explicit
<literal>JOIN
</literal> syntax
2436 might behave differently because they are now better
2443 A number of server configuration parameters have been renamed
2444 for clarity, primarily those related to
2451 <literal>FETCH
0</literal> or
<literal>MOVE
0</literal> now
2452 does nothing. In prior releases,
<literal>FETCH
0</literal>
2453 would fetch all remaining rows, and
<literal>MOVE
0</literal>
2454 would move to the end of the cursor.
2460 <command>FETCH
</command> and
<command>MOVE
</command> now return
2461 the actual number of rows fetched/moved, or zero if at the
2462 beginning/end of the cursor. Prior releases would return the
2463 row count passed to the command, not the number of rows
2464 actually fetched or moved.
2470 <command>COPY
</command> now can process files that use
2471 carriage-return or carriage-return/line-feed end-of-line
2472 sequences. Literal carriage-returns and line-feeds are no
2473 longer accepted in data values; use
<literal>\r
</literal> and
2474 <literal>\n
</literal> instead.
2480 Trailing spaces are now trimmed when converting from type
2481 <type>char(
<replaceable>n<
/>)
</type> to
2482 <type>varchar(
<replaceable>n<
/>)
</type> or
<type>text
</type>.
2483 This is what most people always expected to happen anyway.
2489 The data type
<type>float(
<replaceable>p<
/>)
</type> now
2490 measures
<replaceable>p<
/> in binary digits, not decimal
2491 digits. The new behavior follows the SQL standard.
2497 Ambiguous date values now must match the ordering specified by
2498 the
<varname>datestyle
</varname> setting. In prior releases, a
2499 date specification of
<literal>10/
20/
03<
/> was interpreted as a
2500 date in October even if
<varname>datestyle<
/> specified that
2501 the day should be first.
7.4 will throw an error if a date
2502 specification is invalid for the current setting of
2503 <varname>datestyle<
/>.
2509 The functions
<function>oidrand
</function>,
2510 <function>oidsrand
</function>, and
2511 <function>userfntest
</function> have been removed. These
2512 functions were determined to be no longer useful.
2518 String literals specifying time-varying date/time values, such
2519 as
<literal>'now'
</literal> or
<literal>'today'
</literal> will
2520 no longer work as expected in column default expressions; they
2521 now cause the time of the table creation to be the default, not
2522 the time of the insertion. Functions such as
2523 <function>now()<
/>,
<function>current_timestamp<
/>, or
2524 <function>current_date
</function> should be used instead.
2528 In previous releases, there was special code so that strings
2529 such as
<literal>'now'
</literal> were interpreted at
2530 <command>INSERT<
/> time and not at table creation time, but
2531 this work around didn't cover all cases. Release
7.4 now
2532 requires that defaults be defined properly using functions such
2533 as
<function>now()<
/> or
<function>current_timestamp<
/>. These
2534 will work in all situations.
2540 The dollar sign (
<literal>$<
/>) is no longer allowed in
2541 operator names. It can instead be a non-first character in
2542 identifiers. This was done to improve compatibility with other
2543 database systems, and to avoid syntax problems when parameter
2544 placeholders (
<literal>$
<replaceable>n<
/><
/>) are written
2545 adjacent to operators.
2553 <title>Changes
</title>
2556 Below you will find a detailed account of the changes between
2557 release
7.4 and the previous major release.
2561 <title>Server Operation Changes
</title>
2566 Allow IPv6 server connections (Nigel Kukard, Johan Jordaan,
2567 Bruce, Tom, Kurt Roeckx, Andrew Dunstan)
2573 Fix SSL to handle errors cleanly (Nathan Mueller)
2576 In prior releases, certain SSL API error reports were not
2577 handled correctly. This release fixes those problems.
2583 SSL protocol security and performance improvements (Sean Chittenden)
2586 SSL key renegotiation was happening too frequently, causing poor
2587 SSL performance. Also, initial key handling was improved.
2593 Print lock information when a deadlock is detected (Tom)
2596 This allows easier debugging of deadlock situations.
2602 Update
<filename>/tmp
</filename> socket modification times
2603 regularly to avoid their removal (Tom)
2606 This should help prevent
<filename>/tmp
</filename> directory
2607 cleaner administration scripts from removing server socket
2612 <listitem><para>Enable PAM for Mac OS X (Aaron Hillegass)
</para></listitem>
2615 <para>Make B-tree indexes fully WAL-safe (Tom)
</para>
2617 In prior releases, under certain rare cases, a server crash
2618 could cause B-tree indexes to become corrupt. This release
2619 removes those last few rare cases.
2623 <listitem><para>Allow B-tree index compaction and empty page reuse (Tom)
</para></listitem>
2627 Fix inconsistent index lookups during split of first root page (Tom)
2630 In prior releases, when a single-page index split into two
2631 pages, there was a brief period when another database session
2632 could miss seeing an index entry. This release fixes that rare
2637 <listitem><para>Improve free space map allocation logic (Tom)
</para></listitem>
2640 <para>Preserve free space information between server restarts (Tom)
</para>
2642 In prior releases, the free space map was not saved when the
2643 postmaster was stopped, so newly started servers had no free
2644 space information. This release saves the free space map, and
2645 reloads it when the server is restarted.
2649 <listitem><para>Add start time to
<literal>pg_stat_activity
</literal> (Neil)
</para></listitem>
2650 <listitem><para>New code to detect corrupt disk pages; erase with
<varname>zero_damaged_pages
</varname> (Tom)
</para></listitem>
2651 <listitem><para>New client/server protocol: faster, no username length limit, allow clean exit from
<command>COPY
</command> (Tom)
</para></listitem>
2652 <listitem><para>Add transaction status, table ID, column ID to client/server protocol (Tom)
</para></listitem>
2653 <listitem><para>Add binary I/O to client/server protocol (Tom)
</para></listitem>
2654 <listitem><para>Remove autocommit server setting; move to client applications (Tom)
</para></listitem>
2655 <listitem><para>New error message wording, error codes, and three levels of error detail (Tom, Joe, Peter)
</para></listitem>
2660 <title>Performance Improvements
</title>
2663 <listitem><para>Add hashing for
<literal>GROUP BY
</literal> aggregates (Tom)
</para></listitem>
2664 <listitem><para>Make nested-loop joins be smarter about multicolumn indexes (Tom)
</para></listitem>
2665 <listitem><para>Allow multikey hash joins (Tom)
</para></listitem>
2666 <listitem><para>Improve constant folding (Tom)
</para></listitem>
2667 <listitem><para>Add ability to inline simple SQL functions (Tom)
</para></listitem>
2670 <para>Reduce memory usage for queries using complex functions (Tom)
</para>
2672 In prior releases, functions returning allocated memory would
2673 not free it until the query completed. This release allows the
2674 freeing of function-allocated memory when the function call
2675 completes, reducing the total memory used by functions.
2680 <para>Improve GEQO optimizer performance (Tom)
</para>
2682 This release fixes several inefficiencies in the way the GEQO optimizer
2683 manages potential query paths.
2689 Allow
<literal>IN<
/>/
<literal>NOT IN<
/> to be handled via hash
2696 Improve
<literal>NOT IN (
<replaceable>subquery<
/>)
</literal>
2703 Allow most
<literal>IN
</literal> subqueries to be processed as
2710 Pattern matching operations can use indexes regardless of
2714 There is no way for non-ASCII locales to use the standard
2715 indexes for
<literal>LIKE
</literal> comparisons. This release
2716 adds a way to create a special index for
2717 <literal>LIKE
</literal>.
2722 <para>Allow the postmaster to preload libraries using
<varname>preload_libraries
</varname> (Joe)
</para>
2724 For shared libraries that require a long time to load, this
2725 option is available so the library can be preloaded in the
2726 postmaster and inherited by all database sessions.
2732 Improve optimizer cost computations, particularly for subqueries (Tom)
2738 Avoid sort when subquery
<literal>ORDER BY
</literal> matches upper query (Tom)
2744 Deduce that
<literal>WHERE a.x = b.y AND b.y =
42</literal> also
2745 means
<literal>a.x =
42</literal> (Tom)
2751 Allow hash/merge joins on complex joins (Tom)
2757 Allow hash joins for more data types (Tom)
2763 Allow join optimization of explicit inner joins, disable with
2764 <varname>join_collapse_limit
</varname> (Tom)
2770 Add parameter
<varname>from_collapse_limit
</varname> to control
2771 conversion of subqueries to joins (Tom)
2777 Use faster and more powerful regular expression code from Tcl
2778 (Henry Spencer, Tom)
2784 Use bit-mapped relation sets in the optimizer (Tom)
2789 <para>Improve connection startup time (Tom)
</para>
2791 The new client/server protocol requires fewer network packets to
2792 start a database session.
2798 Improve trigger/constraint performance (Stephan)
2804 Improve speed of
<literal>col IN (const, const, const, ...)
</literal> (Tom)
2810 Fix hash indexes which were broken in rare cases (Tom)
2814 <listitem><para>Improve hash index concurrency and speed (Tom)
</para>
2816 Prior releases suffered from poor hash index performance,
2817 particularly for high concurrency situations. This release fixes
2818 that, and the development group is interested in reports
2819 comparing B-tree and hash index performance.
2824 <para>Align shared buffers on
32-byte boundary for copy speed improvement (Manfred Spraul)
</para>
2826 Certain CPU's perform faster data copies when addresses are
2832 <para>Data type
<type>numeric
</type> reimplemented for better performance (Tom)
</para>
2834 <type>numeric
</type> used to be stored in base
100. The new code
2835 uses base
10000, for significantly better performance.
2842 <title>Server Configuration Changes
</title>
2846 <para>Rename server parameter
<varname>server_min_messages<
/> to
<varname>log_min_messages<
/> (Bruce)
</para>
2848 This was done so most parameters that control the server logs
2849 begin with
<literal>log_<
/>.
2853 <listitem><para>Rename
<varname>show_*_stats<
/> to
<varname>log_*_stats<
/> (Bruce)
</para></listitem>
2854 <listitem><para>Rename
<varname>show_source_port<
/> to
<varname>log_source_port<
/> (Bruce)
</para></listitem>
2855 <listitem><para>Rename
<varname>hostname_lookup<
/> to
<varname>log_hostname<
/> (Bruce)
</para></listitem>
2858 <para>Add
<varname>checkpoint_warning<
/> to warn of excessive checkpointing (Bruce)
</para>
2860 In prior releases, it was difficult to determine if checkpoint
2861 was happening too frequently. This feature adds a warning to the
2862 server logs when excessive checkpointing happens.
2866 <listitem><para>New read-only server parameters for localization (Tom)
</para></listitem>
2870 Change debug server log messages to output as
<literal>DEBUG<
/>
2871 rather than
<literal>LOG<
/> (Bruce)
2876 <para>Prevent server log variables from being turned off by non-superusers (Bruce)
</para>
2878 This is a security feature so non-superusers cannot disable
2879 logging that was enabled by the administrator.
2885 <varname>log_min_messages<
/>/
<varname>client_min_messages<
/> now
2886 controls
<varname>debug_*<
/> output (Bruce)
2889 This centralizes client debug information so all debug output
2890 can be sent to either the client or server logs.
2895 <para>Add Mac OS X Rendezvous server support (Chris Campbell)
</para>
2897 This allows Mac OS X hosts to query the network for available
2898 <productname>PostgreSQL
</productname> servers.
2904 Add ability to print only slow statements using
2905 <varname>log_min_duration_statement
</varname>
2909 This is an often requested debugging feature that allows
2910 administrators to see only slow queries in their server logs.
2915 <para>Allow
<filename>pg_hba.conf
</filename> to accept netmasks in CIDR format (Andrew Dunstan)
</para>
2917 This allows administrators to merge the host IP address and
2918 netmask fields into a single CIDR field in
<filename>pg_hba.conf
</filename>.
2922 <listitem><para>New read-only parameter
<varname>is_superuser
</varname> (Tom)
</para></listitem>
2925 <para>New parameter
<varname>log_error_verbosity
</varname> to control error detail (Tom)
</para>
2927 This works with the new error reporting feature to supply
2928 additional error information like hints, file names and line
2934 <para><literal>postgres --describe-config
</literal> now dumps server config variables (Aizaz Ahmed, Peter)
</para>
2936 This option is useful for administration tools that need to know
2937 the configuration variable names and their minimums, maximums,
2938 defaults, and descriptions.
2944 Add new columns in
<literal>pg_settings
</literal>:
2945 <literal>context<
/>,
<literal>type<
/>,
<literal>source<
/>,
2946 <literal>min_val<
/>,
<literal>max_val<
/> (Joe)
2952 Make default
<varname>shared_buffers<
/> 1000 and
2953 <varname>max_connections<
/> 100, if possible (Tom)
2956 Prior versions defaulted to
64 shared buffers so
<productname>PostgreSQL
</productname>
2957 would start on even very old systems. This release tests the
2958 amount of shared memory allowed by the platform and selects more
2959 reasonable default values if possible. Of course, users are
2960 still encouraged to evaluate their resource load and size
2961 <varname>shared_buffers
</varname> accordingly.
2967 New
<filename>pg_hba.conf
</filename> record type
2968 <literal>hostnossl<
/> to prevent SSL connections (Jon
2972 In prior releases, there was no way to prevent SSL connections
2973 if both the client and server supported SSL. This option allows
2980 Remove parameter
<varname>geqo_random_seed
</varname>
2987 Add server parameter
<varname>regex_flavor
</varname> to control regular expression processing (Tom)
2993 Make
<command>pg_ctl
</command> better handle nonstandard ports (Greg)
3000 <title>Query Changes
</title>
3003 <listitem><para>New SQL-standard information schema (Peter)
</para></listitem>
3004 <listitem><para>Add read-only transactions (Peter)
</para></listitem>
3005 <listitem><para>Print key name and value in foreign-key violation messages (Dmitry Tkach)
</para></listitem>
3008 <para>Allow users to see their own queries in
<literal>pg_stat_activity
</literal> (Kevin Brown)
</para>
3010 In prior releases, only the superuser could see query strings
3011 using
<literal>pg_stat_activity
</literal>. Now ordinary users
3012 can see their own query strings.
3017 <para>Fix aggregates in subqueries to match SQL standard (Tom)
</para>
3019 The SQL standard says that an aggregate function appearing
3020 within a nested subquery belongs to the outer query if its
3021 argument contains only outer-query variables. Prior
3022 <productname>PostgreSQL
</productname> releases did not handle
3023 this fine point correctly.
3028 <para>Add option to prevent auto-addition of tables referenced in query (Nigel J. Andrews)
</para>
3030 By default, tables mentioned in the query are automatically
3031 added to the
<literal>FROM<
/> clause if they are not already
3032 there. This is compatible with historic
3033 <productname>POSTGRES
</productname> behavior but is contrary to
3034 the SQL standard. This option allows selecting
3035 standard-compatible behavior.
3040 <para>Allow
<literal>UPDATE ... SET col = DEFAULT
</literal> (Rod)
</para>
3042 This allows
<command>UPDATE
</command> to set a column to its
3043 declared default value.
3048 <para>Allow expressions to be used in
<literal>LIMIT<
/>/
<literal>OFFSET<
/> (Tom)
</para>
3050 In prior releases,
<literal>LIMIT<
/>/
<literal>OFFSET<
/> could
3051 only use constants, not expressions.
3056 <para>Implement
<literal>CREATE TABLE AS EXECUTE
</literal> (Neil, Peter)
</para>
3062 <title>Object Manipulation Changes
</title>
3066 <para>Make
<command>CREATE SEQUENCE
</command> grammar more conforming to SQL:
2003 (Neil)
</para>
3070 <para>Add statement-level triggers (Neil)
</para>
3072 While this allows a trigger to fire at the end of a statement,
3073 it does not allow the trigger to access all rows modified by the
3074 statement. This capability is planned for a future release.
3079 <para>Add check constraints for domains (Rod)
</para>
3081 This greatly increases the usefulness of domains by allowing
3082 them to use check constraints.
3087 <para>Add
<command>ALTER DOMAIN
</command> (Rod)
</para>
3089 This allows manipulation of existing domains.
3094 <para>Fix several zero-column table bugs (Tom)
</para>
3096 <productname>PostgreSQL
</productname> supports zero-column tables. This fixes various bugs
3097 that occur when using such tables.
3102 <para>Have
<literal>ALTER TABLE ... ADD PRIMARY KEY
</literal> add not-null constraint (Rod)
</para>
3104 In prior releases,
<literal>ALTER TABLE ... ADD
3105 PRIMARY
</literal> would add a unique index, but not a not-null
3106 constraint. That is fixed in this release.
3110 <listitem><para>Add
<literal>ALTER TABLE ... WITHOUT OIDS
</literal> (Rod)
</para>
3112 This allows control over whether new and updated rows will have
3113 an OID column. This is most useful for saving storage space.
3119 Add
<literal>ALTER SEQUENCE
</literal> to modify minimum, maximum,
3120 increment, cache, cycle values (Rod)
3125 <para>Add
<literal>ALTER TABLE ... CLUSTER ON
</literal> (Alvaro Herrera)
</para>
3127 This command is used by
<command>pg_dump
</command> to record the
3128 cluster column for each table previously clustered. This
3129 information is used by database-wide cluster to cluster all
3130 previously clustered tables.
3134 <listitem><para>Improve automatic type casting for domains (Rod, Tom)
</para></listitem>
3135 <listitem><para>Allow dollar signs in identifiers, except as first character (Tom)
</para></listitem>
3136 <listitem><para>Disallow dollar signs in operator names, so
<literal>x=$
1<
/> works (Tom)
</para></listitem>
3140 Allow copying table schema using
<literal>LIKE
3141 <replaceable>subtable
</replaceable></literal>, also SQL:
2003
3142 feature
<literal>INCLUDING DEFAULTS
</literal> (Rod)
3148 Add
<literal>WITH GRANT OPTION
</literal> clause to
3149 <command>GRANT
</command> (Peter)
3152 This enabled
<command>GRANT
</command> to give other users the
3153 ability to grant privileges on a object.
3160 <title>Utility Command Changes
</title>
3164 <para>Add
<literal>ON COMMIT
</literal> clause to
<command>CREATE TABLE
</command> for temporary tables (Gavin)
</para>
3166 This adds the ability for a table to be dropped or all rows
3167 deleted on transaction commit.
3172 <para>Allow cursors outside transactions using
<literal>WITH HOLD
</literal> (Neil)
</para>
3174 In previous releases, cursors were removed at the end of the
3175 transaction that created them. Cursors can now be created with
3176 the
<literal>WITH HOLD
</literal> option, which allows them to
3177 continue to be accessed after the creating transaction has
3183 <para><literal>FETCH
0</literal> and
<literal>MOVE
0 </literal> now do nothing (Bruce)
</para>
3185 In previous releases,
<literal>FETCH
0</literal> fetched all
3186 remaining rows, and
<literal>MOVE
0</literal> moved to the end
3193 Cause
<command>FETCH
</command> and
<command>MOVE
</command> to
3194 return the number of rows fetched/moved, or zero if at the
3195 beginning/end of cursor, per SQL standard (Bruce)
3198 In prior releases, the row count returned by
3199 <command>FETCH
</command> and
<command>MOVE
</command> did not
3200 accurately reflect the number of rows processed.
3205 <para>Properly handle
<literal>SCROLL
</literal> with cursors, or
3206 report an error (Neil)
</para>
3208 Allowing random access (both forward and backward scrolling) to
3209 some kinds of queries cannot be done without some additional
3210 work. If
<literal>SCROLL
</literal> is specified when the cursor
3211 is created, this additional work will be performed. Furthermore,
3212 if the cursor has been created with
<literal>NO SCROLL
</literal>,
3213 no random access is allowed.
3219 Implement SQL-compatible options
<literal>FIRST<
/>,
3220 <literal>LAST<
/>,
<literal>ABSOLUTE
<replaceable>n<
/><
/>,
3221 <literal>RELATIVE
<replaceable>n<
/><
/> for
3222 <command>FETCH
</command> and
<command>MOVE
</command> (Tom)
3227 <para>Allow
<command>EXPLAIN
</command> on
<command>DECLARE CURSOR
</command> (Tom)
</para>
3231 <para>Allow
<command>CLUSTER
</command> to use index marked as pre-clustered by default (Alvaro Herrera)
</para>
3235 <para>Allow
<command>CLUSTER
</command> to cluster all tables (Alvaro Herrera)
</para>
3237 This allows all previously clustered tables in a database to be
3238 reclustered with a single command.
3242 <listitem><para>Prevent
<command>CLUSTER
</command> on partial indexes (Tom)
</para></listitem>
3244 <listitem><para>Allow DOS and Mac line-endings in
<command>COPY<
/> files (Bruce)
</para></listitem>
3248 Disallow literal carriage return as a data value,
3249 backslash-carriage-return and
<literal>\r<
/> are still allowed
3255 <para><command>COPY<
/> changes (binary,
<literal>\.<
/>) (Tom)
</para>
3259 <para>Recover from
<command>COPY
</command> failure cleanly (Tom)
</para>
3263 <para>Prevent possible memory leaks in
<command>COPY
</command> (Tom)
</para>
3267 <para>Make
<command>TRUNCATE
</command> transaction-safe (Rod)
</para>
3269 <command>TRUNCATE
</command> can now be used inside a
3270 transaction. If the transaction aborts, the changes made by the
3271 <command>TRUNCATE
</command> are automatically rolled back.
3277 Allow prepare/bind of utility commands like
3278 <command>FETCH
</command> and
<command>EXPLAIN
</command> (Tom)
3283 <para>Add
<command>EXPLAIN EXECUTE
</command> (Neil)
</para>
3287 <para>Improve
<command>VACUUM
</command> performance on indexes by reducing WAL traffic (Tom)
</para>
3291 <para>Functional indexes have been generalized into indexes on expressions (Tom)
</para>
3293 In prior releases, functional indexes only supported a simple
3294 function applied to one or more column names. This release
3295 allows any type of scalar expression.
3301 Have
<command>SHOW TRANSACTION ISOLATION
</command> match input
3302 to
<command>SET TRANSACTION ISOLATION
</command>
3309 Have
<command>COMMENT ON DATABASE
</command> on nonlocal
3310 database generate a warning, rather than an error (Rod)
3314 Database comments are stored in database-local tables so
3315 comments on a database have to be stored in each database.
3321 Improve reliability of
<command>LISTEN<
/>/
<command>NOTIFY<
/> (Tom)
3326 <para>Allow
<command>REINDEX
</command> to reliably reindex nonshared system catalog indexes (Tom)
</para>
3328 This allows system tables to be reindexed without the
3329 requirement of a standalone session, which was necessary in
3330 previous releases. The only tables that now require a standalone
3331 session for reindexing are the global system tables
3332 <literal>pg_database<
/>,
<literal>pg_shadow<
/>, and
3333 <literal>pg_group<
/>.
3340 <title>Data Type and Function Changes
</title>
3345 New server parameter
<varname>extra_float_digits
</varname> to
3346 control precision display of floating-point numbers (Pedro
3350 This controls output precision which was causing regression
3355 <listitem><para>Allow
<literal>+
1300</literal> as a numeric time-zone specifier, for FJST (Tom)
</para></listitem>
3359 Remove rarely used functions
<function>oidrand<
/>,
3360 <function>oidsrand<
/>, and
<function>userfntest<
/> functions
3366 <para>Add
<function>md5()<
/> function to main server, already in
<filename>contrib/pgcrypto
</filename> (Joe)
</para>
3368 An MD5 function was frequently requested. For more complex
3369 encryption capabilities, use
3370 <filename>contrib/pgcrypto
</filename>.
3374 <listitem><para>Increase date range of
<type>timestamp
</type> (John Cochran)
</para></listitem>
3378 Change
<literal>EXTRACT(EPOCH FROM timestamp)
</literal> so
3379 <type>timestamp without time zone
</type> is assumed to be in
3380 local time, not GMT (Tom)
3384 <listitem><para>Trap division by zero in case the operating system doesn't prevent it (Tom)
</para></listitem>
3385 <listitem><para>Change the
<type>numeric
</type> data type internally to base
10000 (Tom)
</para></listitem>
3386 <listitem><para>New
<function>hostmask()
</function> function (Greg Wickham)
</para></listitem>
3387 <listitem><para>Fixes for
<function>to_char()
</function> and
<function>to_timestamp()
</function> (Karel)
</para></listitem>
3391 Allow functions that can take any argument data type and return
3392 any data type, using
<type>anyelement
</type> and
3393 <type>anyarray
</type> (Joe)
3396 This allows the creation of functions that can work with any
3403 Arrays can now be specified as
<literal>ARRAY[
1,
2,
3]
</literal>,
3404 <literal>ARRAY[['a','b'],['c','d']]
</literal>, or
3405 <literal>ARRAY[ARRAY[ARRAY[
2]]]
</literal> (Joe)
3411 Allow proper comparisons for arrays, including
<literal>ORDER
3412 BY
</literal> and
<literal>DISTINCT
</literal> support
3417 <listitem><para>Allow indexes on array columns (Joe)
</para></listitem>
3418 <listitem><para>Allow array concatenation with
<literal>||
</literal> (Joe)
</para></listitem>
3422 Allow
<literal>WHERE
</literal> qualification
3423 <literal><replaceable>expr<
/> <replaceable>op<
/> ANY/SOME/ALL
3424 (
<replaceable>array_expr<
/>)
</literal> (Joe)
3427 This allows arrays to behave like a list of values, for purposes
3428 like
<literal>SELECT * FROM tab WHERE col IN
3429 (array_val)
</literal>.
3435 New array functions
<function>array_append<
/>,
3436 <function>array_cat<
/>,
<function>array_lower<
/>,
3437 <function>array_prepend<
/>,
<function>array_to_string<
/>,
3438 <function>array_upper<
/>,
<function>string_to_array<
/> (Joe)
3442 <listitem><para>Allow user defined aggregates to use polymorphic functions (Joe)
</para></listitem>
3443 <listitem><para>Allow assignments to empty arrays (Joe)
</para></listitem>
3447 Allow
60 in seconds fields of
<type>time
</type>,
3448 <type>timestamp
</type>, and
<type>interval
</type> input values
3452 Sixty-second values are needed for leap seconds.
3456 <listitem><para>Allow
<type>cidr
</type> data type to be cast to
<type>text
</type> (Tom)
</para></listitem>
3458 <listitem><para>Disallow invalid time zone names in SET TIMEZONE
</para></listitem>
3462 Trim trailing spaces when
<type>char
</type> is cast to
3463 <type>varchar<
/> or
<type>text<
/> (Tom)
3469 Make
<type>float(
<replaceable>p<
/>)<
/> measure the precision
3470 <replaceable>p<
/> in binary digits, not decimal digits
3476 <para>Add IPv6 support to the
<type>inet
</type> and
<type>cidr
</type> data types (Michael Graff)
</para>
3480 <para>Add
<function>family()
</function> function to report whether address is IPv4 or IPv6 (Michael Graff)
</para>
3485 Have
<literal>SHOW datestyle
</literal> generate output similar
3486 to that used by
<literal>SET datestyle
</literal> (Tom)
3492 Make
<literal>EXTRACT(TIMEZONE)
</literal> and
<literal>SET/SHOW
3493 TIME ZONE
</literal> follow the SQL convention for the sign of
3494 time zone offsets, i.e., positive is east from UTC (Tom)
3499 <para>Fix
<literal>date_trunc('quarter', ...)
</literal> (Böjthe Zoltán)
</para>
3501 Prior releases returned an incorrect value for this function call.
3506 <para>Make
<function>initcap()
</function> more compatible with Oracle (Mike Nolan)
</para>
3508 <function>initcap()
</function> now uppercases a letter appearing
3509 after any non-alphanumeric character, rather than only after
3515 <para>Allow only
<varname>datestyle
</varname> field order for date values not in ISO-
8601 format (Greg)
</para>
3520 Add new
<varname>datestyle
</varname> values
<literal>MDY<
/>,
3521 <literal>DMY<
/>, and
<literal>YMD<
/> to set input field order;
3522 honor
<literal>US<
/> and
<literal>European<
/> for backward
3529 String literals like
<literal>'now'
</literal> or
3530 <literal>'today'
</literal> will no longer work as a column
3531 default. Use functions such as
<function>now()
</function>,
3532 <function>current_timestamp
</function> instead. (change
3533 required for prepared statements) (Tom)
3538 <para>Treat NaN as larger than any other value in
<function>min()<
/>/
<function>max()<
/> (Tom)
</para>
3540 NaN was already sorted after ordinary numeric values for most
3541 purposes, but
<function>min()<
/> and
<function>max()<
/> didn't
3547 <para>Prevent interval from suppressing
<literal>:
00</literal>
3548 seconds display
</para>
3553 New functions
<function>pg_get_triggerdef(prettyprint)
</function>
3554 and
<function>pg_conversion_is_visible()
</function> (Christopher)
3559 <para>Allow time to be specified as
<literal>040506<
/> or
<literal>0405<
/> (Tom)
</para>
3564 Input date order must now be
<literal>YYYY-MM-DD
</literal> (with
4-digit year) or
3565 match
<varname>datestyle
</varname>
3571 Make
<function>pg_get_constraintdef
</function> support
3572 unique, primary-key, and check constraints (Christopher)
3579 <title>Server-Side Language Changes
</title>
3584 Prevent PL/pgSQL crash when
<literal>RETURN NEXT
</literal> is
3585 used on a zero-row record variable (Tom)
3591 Make PL/Python's
<function>spi_execute
</function> interface
3592 handle null values properly (Andrew Bosma)
3597 <para>Allow PL/pgSQL to declare variables of composite types without
<literal>%ROWTYPE
</literal> (Tom)
</para>
3601 <para>Fix PL/Python's
<function>_quote()
</function> function to handle big integers
</para>
3605 <para>Make PL/Python an untrusted language, now called
<literal>plpythonu
</literal> (Kevin Jacobs, Tom)
</para>
3607 The Python language no longer supports a restricted execution
3608 environment, so the trusted version of PL/Python was removed. If
3609 this situation changes, a version of PL/Python that can be used
3610 by non-superusers will be readded.
3615 <para>Allow polymorphic PL/pgSQL functions (Joe, Tom)
</para>
3619 <para>Allow polymorphic SQL functions (Joe)
</para>
3624 Improved compiled function caching mechanism in PL/pgSQL with
3625 full support for polymorphism (Joe)
3631 Add new parameter
<literal>$
0<
/> in PL/pgSQL representing the
3632 function's actual return type (Joe)
3638 Allow PL/Tcl and PL/Python to use the same trigger on multiple tables (Tom)
3644 Fixed PL/Tcl's
<function>spi_prepare
</function> to accept fully
3645 qualified type names in the parameter type list
3653 <title>psql Changes
</title>
3657 <para>Add
<literal>\pset pager always
</literal> to always use pager (Greg)
</para>
3659 This forces the pager to be used even if the number of rows is
3660 less than the screen height. This is valuable for rows that
3661 wrap across several screen rows.
3665 <listitem><para>Improve tab completion (Rod, Ross Reedstrom, Ian Barwick)
</para></listitem>
3666 <listitem><para>Reorder
<literal>\?<
/> help into groupings (Harald Armin Massa, Bruce)
</para></listitem>
3667 <listitem><para>Add backslash commands for listing schemas, casts, and conversions (Christopher)
</para></listitem>
3671 <command>\encoding<
/> now changes based on the server parameter
3672 <varname>client_encoding
</varname> (Tom)
3675 In previous versions,
<command>\encoding
</command> was not aware
3676 of encoding changes made using
<literal>SET
3677 client_encoding
</literal>.
3682 <para>Save editor buffer into readline history (Ross)
</para>
3684 When
<command>\e<
/> is used to edit a query, the result is saved
3685 in the readline history for retrieval using the up arrow.
3689 <listitem><para>Improve
<command>\d
</command> display (Christopher)
</para></listitem>
3690 <listitem><para>Enhance HTML mode to be more standards-conforming (Greg)
</para></listitem>
3693 <para>New
<command>\set AUTOCOMMIT off
</command> capability (Tom)
</para>
3695 This takes the place of the removed server parameter
<varname>autocommit
</varname>.
3700 <para>New
<command>\set VERBOSITY
</command> to control error detail (Tom)
</para>
3702 This controls the new error reporting details.
3706 <listitem><para>New prompt escape sequence
<literal>%x
</literal> to show transaction status (Tom)
</para></listitem>
3707 <listitem><para>Long options for
<application>psql
</application> are now available on all platforms
</para></listitem>
3712 <title>pg_dump Changes
</title>
3715 <listitem><para>Multiple pg_dump fixes, including tar format and large objects
</para></listitem>
3716 <listitem><para>Allow pg_dump to dump specific schemas (Neil)
</para></listitem>
3719 <para>Make pg_dump preserve column storage characteristics (Christopher)
</para>
3721 This preserves
<literal>ALTER TABLE ... SET STORAGE
</literal> information.
3725 <listitem><para>Make pg_dump preserve
<command>CLUSTER
</command> characteristics (Christopher)
</para></listitem>
3729 Have pg_dumpall use
<command>GRANT<
/>/
<command>REVOKE<
/> to dump database-level privileges (Tom)
3735 Allow pg_dumpall to support the options
<option>-a<
/>,
3736 <option>-s<
/>,
<option>-x<
/> of pg_dump (Tom)
3740 <listitem><para>Prevent pg_dump from lowercasing identifiers specified on the command line (Tom)
</para></listitem>
3744 pg_dump options
<option>--use-set-session-authorization
</option>
3745 and
<option>--no-reconnect
</option> now do nothing, all dumps
3746 use
<command>SET SESSION AUTHORIZATION
</command>
3749 pg_dump no longer reconnects to switch users, but instead always
3750 uses
<command>SET SESSION AUTHORIZATION
</command>. This will
3751 reduce password prompting during restores.
3756 <para>Long options for
<application>pg_dump
</application> are now available on all platforms
</para>
3758 <productname>PostgreSQL
</productname> now includes its own
3759 long-option processing routines.
3766 <title>libpq Changes
</title>
3771 Add function
<function>PQfreemem
</function> for freeing memory on
3772 Windows, suggested for
<command>NOTIFY
</command> (Bruce)
3775 Windows requires that memory allocated in a library be freed by
3776 a function in the same library, hence
3777 <function>free()
</function> doesn't work for freeing memory
3778 allocated by libpq.
<function>PQfreemem
</function> is the proper
3779 way to free libpq memory, especially on Windows, and is
3780 recommended for other platforms as well.
3785 <para>Document service capability, and add sample file (Bruce)
</para>
3787 This allows clients to look up connection information in a
3788 central file on the client machine.
3794 Make
<function>PQsetdbLogin
</function> have the same defaults as
3795 <function>PQconnectdb
</function> (Tom)
3799 <listitem><para>Allow libpq to cleanly fail when result sets are too large (Tom)
</para></listitem>
3803 Improve performance of function
<function>PQunescapeBytea
</function> (Ben Lamb)
3809 Allow thread-safe libpq with
<filename>configure
</filename>
3810 option
<option>--enable-thread-safety
</option> (Lee Kindness,
3817 Allow function
<function>pqInternalNotice
</function> to accept a
3818 format string and arguments instead of just a preformatted
3819 message (Tom, Sean Chittenden)
3825 Control SSL negotiation with
<literal>sslmode
</literal> values
3826 <literal>disable
</literal>,
<literal>allow
</literal>,
3827 <literal>prefer
</literal>, and
<literal>require
</literal> (Jon
3833 <para>Allow new error codes and levels of text (Tom)
</para>
3837 <para>Allow access to the underlying table and column of a query result (Tom)
</para>
3839 This is helpful for query-builder applications that want to know
3840 the underlying table and column names associated with a specific
3845 <listitem><para>Allow access to the current transaction status (Tom)
</para></listitem>
3846 <listitem><para>Add ability to pass binary data directly to the server (Tom)
</para></listitem>
3850 Add function
<function>PQexecPrepared
</function> and
3851 <function>PQsendQueryPrepared
</function> functions which perform
3852 bind/execute of previously prepared statements (Tom)
3859 <title>JDBC Changes
</title>
3862 <listitem><para>Allow
<function>setNull
</function> on updateable result sets
</para></listitem>
3863 <listitem><para>Allow
<function>executeBatch
</function> on a prepared statement (Barry)
</para></listitem>
3864 <listitem><para>Support SSL connections (Barry)
</para></listitem>
3865 <listitem><para>Handle schema names in result sets (Paul Sorenson)
</para></listitem>
3866 <listitem><para>Add refcursor support (Nic Ferrier)
</para></listitem>
3871 <title>Miscellaneous Interface Changes
</title>
3875 <para>Prevent possible memory leak or core dump during libpgtcl shutdown (Tom)
</para>
3878 <para>Add Informix compatibility to ECPG (Michael)
</para>
3880 This allows ECPG to process embedded C programs that were
3881 written using certain Informix extensions.
3886 <para>Add type
<type>decimal
</type> to ECPG that is fixed length, for Informix (Michael)
</para>
3891 Allow thread-safe embedded SQL programs with
3892 <filename>configure
</filename> option
3893 <option>--enable-thread-safety
</option> (Lee Kindness, Bruce)
3896 This allows multiple threads to access the database at the same
3902 <para>Moved Python client PyGreSQL to
<ulink url=
"http://www.pygresql.org"></ulink> (Marc)
</para>
3908 <title>Source Code Changes
</title>
3911 <listitem><para>Prevent need for separate platform geometry regression result files (Tom)
</para></listitem>
3912 <listitem><para>Improved PPC locking primitive (Reinhard Max)
</para></listitem>
3913 <listitem><para>New function
<function>palloc0
</function> to allocate and clear memory (Bruce)
</para></listitem>
3914 <listitem><para>Fix locking code for s390x CPU (
64-bit) (Tom)
</para></listitem>
3915 <listitem><para>Allow OpenBSD to use local ident credentials (William Ahern)
</para></listitem>
3916 <listitem><para>Make query plan trees read-only to executor (Tom)
</para></listitem>
3917 <listitem><para>Add Darwin startup scripts (David Wheeler)
</para></listitem>
3918 <listitem><para>Allow libpq to compile with Borland C++ compiler (Lester Godwin, Karl Waclawek)
</para></listitem>
3919 <listitem><para>Use our own version of
<function>getopt_long()
</function> if needed (Peter)
</para></listitem>
3920 <listitem><para>Convert administration scripts to C (Peter)
</para></listitem>
3921 <listitem><para> Bison
>=
1.85 is now required to build the
<productname>PostgreSQL<
/> grammar, if building from CVS
</para></listitem>
3922 <listitem><para>Merge documentation into one book (Peter)
</para></listitem>
3923 <listitem><para>Add Windows compatibility functions (Bruce)
</para></listitem>
3924 <listitem><para>Allow client interfaces to compile under MinGW (Bruce)
</para></listitem>
3925 <listitem><para>New
<function>ereport()
</function> function for error reporting (Tom)
</para></listitem>
3926 <listitem><para>Support Intel compiler on Linux (Peter)
</para></listitem>
3927 <listitem><para>Improve Linux startup scripts (Slawomir Sudnik, Darko Prenosil)
</para></listitem>
3928 <listitem><para>Add support for AMD Opteron and Itanium (Jeffrey W. Baker, Bruce)
</para></listitem>
3930 <para>Remove
<option>--enable-recode
</option> option from
<command>configure
</command></para>
3932 This was no longer needed now that we have
<command>CREATE CONVERSION
</command>.
3936 <para>Generate a compile error if spinlock code is not found (Bruce)
</para>
3938 Platforms without spinlock code will now fail to compile, rather
3939 than silently using semaphores. This failure can be disabled
3940 with a new
<command>configure
</command> option.
3947 <title>Contrib Changes
</title>
3950 <listitem><para>Change dbmirror license to BSD
</para></listitem>
3951 <listitem><para>Improve earthdistance (Bruno Wolff III)
</para></listitem>
3952 <listitem><para>Portability improvements to pgcrypto (Marko Kreen)
</para></listitem>
3953 <listitem><para>Prevent crash in xml (John Gray, Michael Richards)
</para></listitem>
3954 <listitem><para>Update oracle
</para></listitem>
3955 <listitem><para>Update mysql
</para></listitem>
3956 <listitem><para>Update cube (Bruno Wolff III)
</para></listitem>
3957 <listitem><para>Update earthdistance to use cube (Bruno Wolff III)
</para></listitem>
3958 <listitem><para>Update btree_gist (Oleg)
</para></listitem>
3959 <listitem><para>New tsearch2 full-text search module (Oleg, Teodor)
</para></listitem>
3960 <listitem><para>Add hash-based crosstab function to tablefuncs (Joe)
</para></listitem>
3961 <listitem><para>Add serial column to order
<function>connectby()<
/> siblings in tablefuncs (Nabil Sayegh,Joe)
</para></listitem>
3962 <listitem><para>Add named persistent connections to dblink (Shridhar Daithanka)
</para></listitem>
3963 <listitem><para>New pg_autovacuum allows automatic
<command>VACUUM
</command> (Matthew T. O'Connor)
</para></listitem>
3964 <listitem><para>Make pgbench honor environment variables
<envar>PGHOST<
/>,
<envar>PGPORT<
/>,
<envar>PGUSER<
/> (Tatsuo)
</para></listitem>
3965 <listitem><para>Improve intarray (Teodor Sigaev)
</para></listitem>
3966 <listitem><para>Improve pgstattuple (Rod)
</para></listitem>
3967 <listitem><para>Fix bug in
<function>metaphone()
</function> in fuzzystrmatch
</para></listitem>
3968 <listitem><para>Improve adddepend (Rod)
</para></listitem>
3969 <listitem><para>Update spi/timetravel (Böjthe Zoltán)
</para></listitem>
3970 <listitem><para>Fix dbase
<option>-s<
/> option and improve non-ASCII handling (Thomas Behr, Márcio Smiderle)
</para></listitem>
3971 <listitem><para>Remove array module because features now included by default (Joe)
</para></listitem>