From 7b10995b51b02ec9e5966a25049f48e9ca8f1092 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 3 Jan 2008 21:35:36 +0000 Subject: [PATCH] Update release notes for security releases. Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601 --- doc/src/sgml/release.sgml | 27002 +++++++++++++++++++----------------- 1 file changed, 14011 insertions(+), 12991 deletions(-) diff --git a/doc/src/sgml/release.sgml b/doc/src/sgml/release.sgml index d70c3acd44..33dd4f687e 100644 --- a/doc/src/sgml/release.sgml +++ b/doc/src/sgml/release.sgml @@ -26,7 +26,7 @@ non-ASCII characters convert to HTML4 entity (&) escapes wrap long lines For new features, add links to the documentation sections. Use -so that perl can remove it so HISTORY.html can be created with no +so that Perl can remove it so HISTORY.html can be created with no links to the main documentation. This was added only in 8.2, so don't do it for earlier branch release files. @@ -35,13504 +35,14524 @@ do it for earlier branch release files. Release Notes - - Release 8.2.5 + + Release 8.2.6 - - Release date - 2007-09-17 - - - - This release contains a variety of fixes from 8.2.4. - - - - Migration to version 8.2.5 - - - A dump/restore is not required for those running 8.2.X. - - - - - - Changes - - - - - - Prevent index corruption when a transaction inserts rows and - then aborts close to the end of a concurrent VACUUM - on the same table (Tom) - - - - - - Fix ALTER DOMAIN ADD CONSTRAINT for cases involving - domains over domains (Tom) - - - - - - Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) - - - - - - Fix some planner problems with outer joins, notably poor - size estimation for t1 LEFT JOIN t2 WHERE t2.col IS NULL - (Tom) - - - - - - Allow the interval data type to accept input consisting only of - milliseconds or microseconds (Neil) - - - - - - Allow timezone name to appear before the year in timestamp input (Tom) - - - - - - Fixes for GIN indexes used by /contrib/tsearch2 (Teodor) - - - - - - Speed up rtree index insertion (Teodor) - - - - - - Fix excessive logging of SSL error messages (Tom) - - - - - - Fix logging so that log messages are never interleaved when using - the syslogger process (Andrew) - - - - - - Fix crash when log_min_error_statement logging runs out - of memory (Tom) - - - - - - Fix incorrect handling of some foreign-key corner cases (Tom) - - - - - - Fix stddev_pop(numeric) and var_pop(numeric) (Tom) - - - - - - Prevent REINDEX and CLUSTER from failing - due to attempting to process temporary tables of other sessions (Alvaro) - - - - - - Update the time zone database rules, particularly New Zealand's upcoming changes (Tom) - - - - - - Windows socket and semaphore improvements (Magnus) - - - - - - Make pg_ctl -w work properly in Windows service mode (Dave Page) - - - - - - Fix memory allocation bug when using MIT Kerberos on Windows (Magnus) - - - - - - Suppress timezone name (%Z) in log timestamps on Windows - because of possible encoding mismatches (Tom) - - - - - - Require non-superusers who use /contrib/dblink to use only - password authentication, as a security measure (Joe) - - - - - - Restrict /contrib/pgstattuple functions to superusers, for security reasons (Tom) - - - - - - Do not let /contrib/intarray try to make its GIN opclass - the default (this caused problems at dump/restore) (Tom) - - - - - - - + + Release date + 2008-01-07 + - - Release 8.2.4 + + This release contains a variety of fixes from 8.2.5, + including fixes for significant security issues. + - - Release date - 2007-04-23 - + + Migration to Version 8.2.6 - This release contains a variety of fixes from 8.2.3, - including a security fix. + A dump/restore is not required for those running 8.2.X. - - Migration to version 8.2.4 - - - A dump/restore is not required for those running 8.2.X. - - - + - - Changes + + Changes - + - + - Support explicit placement of the temporary-table schema within - search_path, and disable searching it for functions - and operators (Tom) + Prevent functions in indexes from executing with the privileges of + the user running VACUUM, ANALYZE, etc (Tom) + + + + Functions used in index expressions and partial-index + predicates are evaluated whenever a new table entry is made. It has + long been understood that this poses a risk of trojan-horse code + execution if one modifies a table owned by an untrustworthy user. + (Note that triggers, defaults, check constraints, etc. pose the + same type of risk.) But functions in indexes pose extra danger + because they will be executed by routine maintenance operations + such as VACUUM FULL, which are commonly performed + automatically under a superuser account. For example, a nefarious user + can execute code with superuser privileges by setting up a + trojan-horse index definition and waiting for the next routine vacuum. + The fix arranges for standard maintenance operations + (including VACUUM, ANALYZE, REINDEX, + and CLUSTER) to execute as the table owner rather than + the calling user, using the same privilege-switching mechanism already + used for SECURITY DEFINER functions. To prevent bypassing + this security measure, execution of SET SESSION + AUTHORIZATION and SET ROLE is now forbidden within a + SECURITY DEFINER context. (CVE-2007-6600) + + + - This is needed to allow a security-definer function to set a - truly secure value of search_path. Without it, - an unprivileged SQL user can use temporary objects to execute code - with the privileges of the security-definer function (CVE-2007-2138). - See CREATE FUNCTION for more information. + Repair assorted bugs in the regular-expression package (Tom, Will Drewry) - - - Fix shared_preload_libraries for Windows - by forcing reload in each backend (Korry Douglas) + Suitably crafted regular-expression patterns could cause crashes, + infinite or near-infinite looping, and/or massive memory consumption, + all of which pose denial-of-service hazards for applications that + accept regex search patterns from untrustworthy sources. + (CVE-2007-4769, CVE-2007-4772, CVE-2007-6067) - + - + - Fix to_char() so it properly upper/lower cases localized day or month - names (Pavel Stehule) + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) - - - /contrib/tsearch2 crash fixes (Teodor) + The fix that appeared for this in 8.2.5 was incomplete, as it plugged + the hole for only some dblink functions. (CVE-2007-6601, + CVE-2007-3278) - + - + - Require COMMIT PREPARED to be executed in the same - database as the transaction was prepared in (Heikki) + Fix bugs in WAL replay for GIN indexes (Teodor) - + - + - Allow pg_dump to do binary backups larger than two gigabytes - on Windows (Magnus) + Fix GIN index build to work properly when + maintenance_work_mem is 4GB or more (Tom) - + - + - New traditional (Taiwan) Chinese FAQ (Zhou Daojing) + Update time zone data files to tzdata release 2007k + (in particular, recent Argentina changes) (Tom) - + - + - Prevent the statistics collector from writing to disk too frequently (Tom) + Improve planner's handling of LIKE/regex estimation in non-C locales + (Tom) - + - + - Fix potential-data-corruption bug in how VACUUM FULL handles - UPDATE chains (Tom, Pavan Deolasee) + Fix planning-speed problem for deep outer-join nests, as well as + possible poor choice of join order (Tom) - + - + - Fix bug in domains that use array types (Tom) + Fix planner failure in some cases of WHERE false AND var IN + (SELECT ...) (Tom) - + - + - Fix pg_dump so it can dump a serial column's sequence - using - + - + - Planner fixes, including improving outer join and bitmap scan - selection logic (Tom) + Preserve the tablespace and storage parameters of indexes that are + rebuilt by ALTER TABLE ... ALTER COLUMN TYPE (Tom) - + - + - Fix possible wrong answers or crash when a PL/pgSQL function tries - to RETURN from within an EXCEPTION block - (Tom) + Make archive recovery always start a new WAL timeline, rather than only + when a recovery stop time was used (Simon) - - - Fix PANIC during enlargement of a hash index (Tom) + This avoids a corner-case risk of trying to overwrite an existing + archived copy of the last WAL segment, and seems simpler and cleaner + than the original definition. - + - + - Fix POSIX-style timezone specs to follow new USA DST rules (Tom) + Make VACUUM not use all of maintenance_work_mem + when the table is too small for it to be useful (Alvaro) - + - + + + Fix potential crash in translate() when using a multibyte + database encoding (Tom) + + - - + + + Make corr() return the correct result for negative + correlation values (Neil) + + - - Release 8.2.3 + + + Fix overflow in extract(epoch from interval) for intervals + exceeding 68 years (Tom) + + - - Release date - 2007-02-07 - + + + Fix PL/Perl to not fail when a UTF-8 regular expression is used + in a trusted function (Andrew) + + - - This release contains two fixes from 8.2.2. - + + + Fix PL/Perl to cope when platform's Perl defines type bool + as int rather than char (Tom) + - - Migration to version 8.2.3 + + While this could theoretically happen anywhere, no standard build of + Perl did things this way ... until Mac OS X 10.5. + + - - A dump/restore is not required for those running 8.2.X. - + + + Fix PL/Python to work correctly with Python 2.5 on 64-bit machines + (Marko Kreen) + + - + + + Fix PL/Python to not crash on long exception messages (Alvaro) + + - - Changes + + + Fix pg_dump to correctly handle inheritance child tables + that have default expressions different from their parent's (Tom) + + - + + + Fix libpq crash when PGPASSFILE refers + to a file that is not a plain file (Martin Pitt) + + - + - Remove overly-restrictive check for type length in constraints and - functional indexes(Tom) + ecpg parser fixes (Michael) - + - + - Fix optimization so MIN/MAX in subqueries can again use indexes (Tom) + Make contrib/pgcrypto defend against + OpenSSL libraries that fail on keys longer than 128 + bits; which is the case at least on some Solaris versions (Marko Kreen) - + - + + + Make contrib/tablefunc's crosstab() handle + NULL rowid as a category in its own right, rather than crashing (Joe) + + - - + + + Fix tsvector and tsquery output routines to + escape backslashes correctly (Teodor, Bruce) + + - - Release 8.2.2 + + + Fix crash of to_tsvector() on huge input strings (Teodor) + + - - Release date - 2007-02-05 - + + + Require a specific version of Autoconf to be used + when re-generating the configure script (Peter) + + + + This affects developers and packagers only. The change was made + to prevent accidental use of untested combinations of + Autoconf and PostgreSQL versions. + You can remove the version check if you really want to use a + different Autoconf version, but it's + your responsibility whether the result works or not. + + + + + + Update gettimeofday configuration check so that + PostgreSQL can be built on newer versions of + MinGW (Magnus) + + + + + + + + + + Release 8.2.5 + + + Release date + 2007-09-17 + + + + This release contains a variety of fixes from 8.2.4. + + + + Migration to Version 8.2.5 - This release contains a variety of fixes from 8.2.1, including - a security fix. + A dump/restore is not required for those running 8.2.X. - - Migration to version 8.2.2 + - - A dump/restore is not required for those running 8.2.X. - + + Changes - + - - Changes + + + Prevent index corruption when a transaction inserts rows and + then aborts close to the end of a concurrent VACUUM + on the same table (Tom) + + - + + + Fix ALTER DOMAIN ADD CONSTRAINT for cases involving + domains over domains (Tom) + + - + - Remove security vulnerabilities that allowed connected users - to read backend memory (Tom) + Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) + + + - The vulnerabilities involve suppressing the normal check that a SQL - function returns the data type it's declared to, and changing the - data type of a table column (CVE-2007-0555, CVE-2007-0556). These - errors can easily be exploited to cause a backend crash, and in - principle might be used to read database content that the user - should not be able to access. + Fix some planner problems with outer joins, notably poor + size estimation for t1 LEFT JOIN t2 WHERE t2.col IS NULL + (Tom) - + - + - Fix not-so-rare-anymore bug wherein btree index page splits could fail - due to choosing an infeasible split point (Heikki Linnakangas) + Allow the interval data type to accept input consisting only of + milliseconds or microseconds (Neil) - + - + - Fix Borland C compile scripts (L Bayuk) + Allow timezone name to appear before the year in timestamp input (Tom) - + - + - Properly handle to_char('CC') for years ending in - 00 (Tom) + Fixes for GIN indexes used by /contrib/tsearch2 (Teodor) + + + - Year 2000 is in the twentieth century, not the twenty-first. + Speed up rtree index insertion (Teodor) - + - + - /contrib/tsearch2 localization improvements (Tatsuo, Teodor) + Fix excessive logging of SSL error messages (Tom) - + - + - Fix incorrect permission check in - information_schema.key_column_usage view (Tom) + Fix logging so that log messages are never interleaved when using + the syslogger process (Andrew) + + + - The symptom is relation with OID nnnnn does not exist errors. - To get this fix without using initdb, use CREATE OR - REPLACE VIEW to install the corrected definition found in - share/information_schema.sql. Note you will need to do - this in each database. + Fix crash when log_min_error_statement logging runs out + of memory (Tom) - + - + - Improve VACUUM performance for databases with many tables (Tom) + Fix incorrect handling of some foreign-key corner cases (Tom) - + - + - Fix for rare Assert() crash triggered by UNION (Tom) + Fix stddev_pop(numeric) and var_pop(numeric) (Tom) - + - + - Fix potentially incorrect results from index searches using - ROW inequality conditions (Tom) + Prevent REINDEX and CLUSTER from failing + due to attempting to process temporary tables of other sessions (Alvaro) - + - + - Tighten security of multi-byte character processing for UTF8 sequences - over three bytes long (Tom) + Update the time zone database rules, particularly New Zealand's upcoming changes (Tom) - + - + - Fix bogus permission denied failures occurring on Windows - due to attempts to fsync already-deleted files (Magnus, Tom) + Windows socket and semaphore improvements (Magnus) - + - + - Fix bug that could cause the statistics collector - to hang on Windows (Magnus) + Make pg_ctl -w work properly in Windows service mode (Dave Page) + + - This would in turn lead to autovacuum not working. + Fix memory allocation bug when using MIT Kerberos on Windows (Magnus) - + - + - Fix possible crashes when an already-in-use PL/pgSQL function is - updated (Tom) + Suppress timezone name (%Z) in log timestamps on Windows + because of possible encoding mismatches (Tom) - + - + - Improve PL/pgSQL handling of domain types (Sergiy Vyshnevetskiy, Tom) + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) - + - + - Fix possible errors in processing PL/pgSQL exception blocks (Tom) + Restrict /contrib/pgstattuple functions to superusers, for security reasons (Tom) - + - + + + Do not let /contrib/intarray try to make its GIN opclass + the default (this caused problems at dump/restore) (Tom) + + - - + - - Release 8.2.1 + + - - Release date - 2007-01-08 - + + Release 8.2.4 - - This release contains a variety of fixes from 8.2. - + + Release date + 2007-04-23 + - - Migration to version 8.2.1 + + This release contains a variety of fixes from 8.2.3, + including a security fix. + - - A dump/restore is not required for those running 8.2. - + + Migration to Version 8.2.4 - + + A dump/restore is not required for those running 8.2.X. + - - Changes + - + + Changes - - - Fix crash with SELECT ... LIMIT ALL (also - LIMIT NULL) (Tom) - - + - - - Several /contrib/tsearch2 fixes (Teodor) - - - - - - On Windows, make log messages coming from the operating system use - ASCII encoding (Hiroshi Saito) - + + + Support explicit placement of the temporary-table schema within + search_path, and disable searching it for functions + and operators (Tom) + - - This fixes a conversion problem when there is a mismatch between - the encoding of the operating system and database server. - - + + This is needed to allow a security-definer function to set a + truly secure value of search_path. Without it, + an unprivileged SQL user can use temporary objects to execute code + with the privileges of the security-definer function (CVE-2007-2138). + See CREATE FUNCTION for more information. + + - - - Fix Windows linking of pg_dump using - win32.mak - (Hiroshi Saito) - - + + + Fix shared_preload_libraries for Windows + by forcing reload in each backend (Korry Douglas) + + - - - Fix planner mistakes for outer join queries (Tom) - - + + + Fix to_char() so it properly upper/lower cases localized day or month + names (Pavel Stehule) + + - - - Fix several problems in queries involving sub-SELECTs (Tom) - - + + + /contrib/tsearch2 crash fixes (Teodor) + + - - - Fix potential crash in SPI during subtransaction abort (Tom) - + + + Require COMMIT PREPARED to be executed in the same + database as the transaction was prepared in (Heikki) + + - - This affects all PL functions since they all use SPI. - - + + + Allow pg_dump to do binary backups larger than two gigabytes + on Windows (Magnus) + + - - - Improve build speed of PDF documentation (Peter) - - + + + New traditional (Taiwan) Chinese FAQ (Zhou Daojing) + + - - - Re-add JST (Japan) timezone abbreviation (Tom) - - + + + Prevent the statistics collector from writing to disk too frequently (Tom) + + - - - Improve optimization decisions related to index scans (Tom) - - + + + Fix potential-data-corruption bug in how VACUUM FULL handles + UPDATE chains (Tom, Pavan Deolasee) + + - - - Have psql print multi-byte combining characters as - before, rather than output as \u (Tom) - - + + + Fix bug in domains that use array types (Tom) + + - - - Improve index usage of regular expressions that use parentheses (Tom) - + + + Fix pg_dump so it can dump a serial column's sequence + using + - - This improves psql \d performance also. - - + + + Planner fixes, including improving outer join and bitmap scan + selection logic (Tom) + + - - - Make pg_dumpall assume that databases have public - CONNECT privilege, when dumping from a pre-8.2 server (Tom) - + + + Fix possible wrong answers or crash when a PL/pgSQL function tries + to RETURN from within an EXCEPTION block + (Tom) + + - - This preserves the previous behavior that anyone can connect to a - database if allowed by pg_hba.conf. - - + + + Fix PANIC during enlargement of a hash index (Tom) + + - + + + Fix POSIX-style timezone specs to follow new USA DST rules (Tom) + + - - + - - Release 8.2 + + - - Release date - 2006-12-05 - + + Release 8.2.3 - - Overview + + Release date + 2007-02-07 + - - This release adds many functionality and performance improvements that - were requested by users, including: + + This release contains two fixes from 8.2.2. + - + + Migration to Version 8.2.3 - - - Query language enhancements including INSERT/UPDATE/DELETE - RETURNING, multirow VALUES lists, and - optional target-table alias in - UPDATE/DELETE - - + + A dump/restore is not required for those running 8.2.X. + - - - Index creation without blocking concurrent - INSERT/UPDATE/DELETE - operations - - + - - - Many query optimization improvements, including support for - reordering outer joins - - + + Changes - - - Improved sorting performance with lower memory usage - - + - - - More efficient locking with better concurrency - - + + + Remove overly-restrictive check for type length in constraints and + functional indexes(Tom) + + - - - More efficient vacuuming - - + + + Fix optimization so MIN/MAX in subqueries can again use indexes (Tom) + + - - - Easier administration of warm standby servers - - + - - - New FILLFACTOR support for tables and indexes - - + + - - - Monitoring, logging, and performance tuning additions - - + + Release 8.2.2 - - - More control over creating and dropping objects - - + + Release date + 2007-02-05 + - - - Table inheritance relationships can be defined - for and removed from pre-existing tables - - + + This release contains a variety of fixes from 8.2.1, including + a security fix. + - - - COPY TO can copy the output of an arbitrary - SELECT statement - - + + Migration to Version 8.2.2 - - - Array improvements, including nulls in arrays - - + + A dump/restore is not required for those running 8.2.X. + - - - Aggregate-function improvements, including multiple-input - aggregates and SQL:2003 statistical functions - - + - - - Many contrib/ improvements - - + + Changes - + - - - + + + Remove security vulnerabilities that allowed connected users + to read backend memory (Tom) + - - Migration to version 8.2 + + The vulnerabilities involve suppressing the normal check that a SQL + function returns the data type it's declared to, and changing the + data type of a table column (CVE-2007-0555, CVE-2007-0556). These + errors can easily be exploited to cause a backend crash, and in + principle might be used to read database content that the user + should not be able to access. + + - - A dump/restore using pg_dump is - required for those wishing to migrate data from any previous - release. - + + + Fix not-so-rare-anymore bug wherein btree index page splits could fail + due to choosing an infeasible split point (Heikki Linnakangas) + + - - Observe the following incompatibilities: - + + + Fix Borland C compile scripts (L Bayuk) + + - + + + Properly handle to_char('CC') for years ending in + 00 (Tom) + - - - Set escape_string_warning - to on by default (Bruce) - + + Year 2000 is in the twentieth century, not the twenty-first. + + - - This issues a warning if backslash escapes are used in - non-escape (non-E'') - strings. - - + + + /contrib/tsearch2 localization improvements (Tatsuo, Teodor) + + - - - Change the row - constructor syntax (ROW(...)) so that - list elements foo.* will be expanded to a list - of their member fields, rather than creating a nested - row type field as formerly (Tom) - + + + Fix incorrect permission check in + information_schema.key_column_usage view (Tom) + - - The new behavior is substantially more useful since it - allows, for example, triggers to check for data changes - with IF row(new.*) IS DISTINCT FROM row(old.*). - The old behavior is still available by omitting .*. - - + + The symptom is relation with OID nnnnn does not exist errors. + To get this fix without using initdb, use CREATE OR + REPLACE VIEW to install the corrected definition found in + share/information_schema.sql. Note you will need to do + this in each database. + + - - - Make row comparisons - follow SQL standard semantics and allow them - to be used in index scans (Tom) - + + + Improve VACUUM performance for databases with many tables (Tom) + + - - Previously, row = and <> comparisons followed the - standard but < <= > >= did not. A row comparison - can now be used as an index constraint for a multicolumn - index matching the row value. - - + + + Fix for rare Assert() crash triggered by UNION (Tom) + + - - - Make row IS NOT NULL - tests follow SQL standard semantics (Tom) - + + + Fix potentially incorrect results from index searches using + ROW inequality conditions (Tom) + + - - The former behavior conformed to the standard for simple cases - with IS NULL, but IS NOT NULL would return - true if any row field was non-null, whereas the standard says it - should return true only when all fields are non-null. - - + + + Tighten security of multi-byte character processing for UTF8 sequences + over three bytes long (Tom) + + - - - Make SET - CONSTRAINT affect only one constraint (Kris Jurka) - + + + Fix bogus permission denied failures occurring on Windows + due to attempts to fsync already-deleted files (Magnus, Tom) + + - - In previous releases, SET CONSTRAINT modified - all constraints with a matching name. In this release, - the schema search path is used to modify only the first - matching constraint. A schema specification is also - supported. This more nearly conforms to the SQL standard. - - + + + Fix bug that could cause the statistics collector + to hang on Windows (Magnus) + - - - Remove RULE permission for tables, for security reasons - (Tom) - + + This would in turn lead to autovacuum not working. + + - - As of this release, only a table's owner can create or modify - rules for the table. For backwards compatibility, - GRANT/REVOKE RULE is still accepted, - but it does nothing. - - + + + Fix possible crashes when an already-in-use PL/pgSQL function is + updated (Tom) + + - - - Array comparison improvements (Tom) - + + + Improve PL/pgSQL handling of domain types (Sergiy Vyshnevetskiy, Tom) + + - - Now array dimensions are also compared. - - + + + Fix possible errors in processing PL/pgSQL exception blocks (Tom) + + - - - Change array concatenation - to match documented behavior (Tom) - + - - This changes the previous behavior where concatenation - would modify the array lower bound. - - + + - - - Make command-line options of postmaster - and postgres - identical (Peter) - + + Release 8.2.1 - - This allows the postmaster to pass arguments to each backend - without using -o. Note that some options are now - only available as long-form options, because there were conflicting - single-letter options. - - + + Release date + 2007-01-08 + - - - Deprecate use of postmaster symbolic link (Peter) - + + This release contains a variety of fixes from 8.2. + - - postmaster and postgres - commands now act identically, with the behavior determined - by command-line options. The postmaster symbolic link is - kept for compatibility, but is not really needed. - - + + Migration to Version 8.2.1 - - - Change log_duration - to output even if the query is not output (Tom) - + + A dump/restore is not required for those running 8.2. + - - In prior releases, log_duration only printed if - the query appeared earlier in the log. - - + - - - Make to_char(time) - and to_char(interval) - treat HH and HH12 as 12-hour - intervals - + + Changes - - Most applications should use HH24 unless they - want a 12-hour display. - - + - - - Zero unmasked bits in conversion from INET to CIDR (Tom) - + + + Fix crash with SELECT ... LIMIT ALL (also + LIMIT NULL) (Tom) + + - - This ensures that the converted value is actually valid for - CIDR. - - + + + Several /contrib/tsearch2 fixes (Teodor) + + - - - Remove australian_timezones configuration variable - (Joachim Wieland) - + + + On Windows, make log messages coming from the operating system use + ASCII encoding (Hiroshi Saito) + - - This variable has been superseded by a more general facility - for configuring timezone abbreviations. - - + + This fixes a conversion problem when there is a mismatch between + the encoding of the operating system and database server. + + - - - Improve cost estimation for nested-loop index scans (Tom) - + + + Fix Windows linking of pg_dump using + win32.mak + (Hiroshi Saito) + + - - This might eliminate the need to set unrealistically small - values of random_page_cost. - If you have been using a very small random_page_cost, - please recheck your test cases. - - + + + Fix planner mistakes for outer join queries (Tom) + + - - - Change behavior of pg_dump -n and - -t options. (Greg Sabino Mullane) - - - See the pg_dump manual page for details. - - + + + Fix several problems in queries involving sub-SELECTs (Tom) + + - - - Change libpq - PQdsplen() to return a useful value (Martijn - van Oosterhout) - - + + + Fix potential crash in SPI during subtransaction abort (Tom) + - - - Declare libpq - PQgetssl() as returning void *, - rather than SSL * (Martijn van Oosterhout) - + + This affects all PL functions since they all use SPI. + + - - This allows applications to use the function without including - the OpenSSL headers. - - + + + Improve build speed of PDF documentation (Peter) + + - - - C-language loadable modules must now include a - PG_MODULE_MAGIC - macro call for version compatibility checking - (Martijn van Oosterhout) - - + + + Re-add JST (Japan) timezone abbreviation (Tom) + + - - - For security's sake, modules used by a PL/PerlU function are no - longer available to PL/Perl functions (Andrew) - - - - This also implies that data can no longer be shared between a PL/Perl - function and a PL/PerlU function. - Some Perl installations have not been compiled with the correct flags - to allow multiple interpreters to exist within a single process. - In this situation PL/Perl and PL/PerlU cannot both be used in a - single backend. The solution is to get a Perl installation which - supports multiple interpreters. - - - + + + Improve optimization decisions related to index scans (Tom) + + - - - In contrib/xml2/, rename xml_valid() to - xml_is_well_formed() (Tom) - + + + Have psql print multi-byte combining characters as + before, rather than output as \u (Tom) + + - - xml_valid() will remain for backward compatibility, - but its behavior will change to do schema checking in a future - release. - - + + + Improve index usage of regular expressions that use parentheses (Tom) + - - - Remove contrib/ora2pg/, now at - - + + This improves psql \d performance also. + + - - - Remove contrib modules that have been migrated to PgFoundry: - adddepend, dbase, dbmirror, - fulltextindex, mac, userlock - - + + + Make pg_dumpall assume that databases have public + CONNECT privilege, when dumping from a pre-8.2 server (Tom) + - - - Remove abandoned contrib modules: - mSQL-interface, tips - - + + This preserves the previous behavior that anyone can connect to a + database if allowed by pg_hba.conf. + + - - - Remove QNX and BEOS ports (Bruce) - + - - These ports no longer had active maintainers. - - + + - - + + Release 8.2 - - Changes + + Release date + 2006-12-05 + - - Below you will find a detailed account of the - changes between PostgreSQL 8.2 and - the previous major release. - + + Overview - - Performance Improvements - + + This release adds many functionality and performance improvements that + were requested by users, including: - - - Allow the planner to reorder outer - joins in some circumstances (Tom) - + - - In previous releases, outer joins would always be evaluated in - the order written in the query. This change allows the - query optimizer to consider reordering outer joins, in cases where - it can determine that the join order can be changed without - altering the meaning of the query. This can make a - considerable performance difference for queries involving - multiple outer joins or mixed inner and outer joins. - - + + + Query language enhancements including INSERT/UPDATE/DELETE + RETURNING, multirow VALUES lists, and + optional target-table alias in + UPDATE/DELETE + + - - - Improve efficiency of IN - (list-of-expressions) clauses (Tom) - - + + + Index creation without blocking concurrent + INSERT/UPDATE/DELETE + operations + + - - - Improve sorting speed and reduce memory usage (Simon, Tom) - - + + + Many query optimization improvements, including support for + reordering outer joins + + - - - Improve subtransaction performance (Alvaro, Itagaki Takahiro, - Tom) - - + + + Improved sorting performance with lower memory usage + + - - - Add FILLFACTOR to table and index creation (ITAGAKI - Takahiro) - + + + More efficient locking with better concurrency + + - - This leaves extra free space in each table or index page, - allowing improved performance as the database grows. This - is particularly valuable to maintain clustering. - - + + + More efficient vacuuming + + - - - Increase default values for shared_buffers - and max_fsm_pages - (Andrew) - - + + + Easier administration of warm standby servers + + - - - Improve locking performance by breaking the lock manager tables into - sections - (Tom) - + + + New FILLFACTOR support for tables and indexes + + - - This allows locking to be more fine-grained, reducing - contention. - - + + + Monitoring, logging, and performance tuning additions + + - - - Reduce locking requirements of sequential scans (Qingqing - Zhou) - - + + + More control over creating and dropping objects + + - - - Reduce locking required for database creation and destruction - (Tom) - - + + + Table inheritance relationships can be defined + for and removed from pre-existing tables + + - - - Improve the optimizer's selectivity estimates for LIKE, ILIKE, and - regular expression - operations (Tom) - - + + + COPY TO can copy the output of an arbitrary + SELECT statement + + - - - Improve planning of joins to inherited - tables and UNION - ALL views (Tom) - - + + + Array improvements, including nulls in arrays + + - - - Allow constraint - exclusion to be applied to inherited UPDATE and - DELETE queries (Tom) - + + + Aggregate-function improvements, including multiple-input + aggregates and SQL:2003 statistical functions + + - - SELECT already honored constraint exclusion. - - + + + Many contrib/ improvements + + - - - Improve planning of constant WHERE clauses, such as - a condition that depends only on variables inherited from an - outer query level (Tom) - - + - - - Protocol-level unnamed prepared statements are re-planned - for each set of BIND values (Tom) - + - - This improves performance because the exact parameter values - can be used in the plan. - - + - - - Speed up vacuuming of B-Tree indexes (Heikki Linnakangas, - Tom) - - + + Migration to Version 8.2 - - - Avoid extra scan of tables without indexes during VACUUM (Greg Stark) - - + + A dump/restore using pg_dump is + required for those wishing to migrate data from any previous + release. + - - - Improve multicolumn GiST - indexing (Oleg, Teodor) - - + + Observe the following incompatibilities: + - - - Remove dead index entries before B-Tree page split (Junji - Teramoto) - - + - + + + Set escape_string_warning + to on by default (Bruce) + - + + This issues a warning if backslash escapes are used in + non-escape (non-E'') + strings. + + - - Server Changes - + + + Change the row + constructor syntax (ROW(...)) so that + list elements foo.* will be expanded to a list + of their member fields, rather than creating a nested + row type field as formerly (Tom) + - - - Allow a forced switch to a new transaction log file (Simon, Tom) - + + The new behavior is substantially more useful since it + allows, for example, triggers to check for data changes + with IF row(new.*) IS DISTINCT FROM row(old.*). + The old behavior is still available by omitting .*. + + - - This is valuable for keeping warm standby slave servers - in sync with the master. Transaction log file switching now also happens - automatically during pg_stop_backup(). - This ensures that all - transaction log files needed for recovery can be archived immediately. - - + + + Make row comparisons + follow SQL standard semantics and allow them + to be used in index scans (Tom) + - - - Add WAL informational functions (Simon) - + + Previously, row = and <> comparisons followed the + standard but < <= > >= did not. A row comparison + can now be used as an index constraint for a multicolumn + index matching the row value. + + - - Add functions for interrogating the current transaction log insertion - point and determining WAL filenames from the - hex WAL locations displayed by pg_stop_backup() - and related functions. - - + + + Make row IS NOT NULL + tests follow SQL standard semantics (Tom) + - - - Improve recovery from a crash during WAL replay (Simon) - + + The former behavior conformed to the standard for simple cases + with IS NULL, but IS NOT NULL would return + true if any row field was non-null, whereas the standard says it + should return true only when all fields are non-null. + + - - The server now does periodic checkpoints during WAL - recovery, so if there is a crash, future WAL - recovery is shortened. This also eliminates the need for - warm standby servers to replay the entire log since the - base backup if they crash. - - + + + Make SET + CONSTRAINT affect only one constraint (Kris Jurka) + - - - Improve reliability of long-term WAL replay - (Heikki, Simon, Tom) - + + In previous releases, SET CONSTRAINT modified + all constraints with a matching name. In this release, + the schema search path is used to modify only the first + matching constraint. A schema specification is also + supported. This more nearly conforms to the SQL standard. + + - - Formerly, trying to roll forward through more than 2 billion - transactions would not work due to XID wraparound. This meant - warm standby servers had to be reloaded - from fresh base backups periodically. - - + + + Remove RULE permission for tables, for security reasons + (Tom) + - - - Add archive_timeout - to force transaction log file switches at a given interval (Simon) - + + As of this release, only a table's owner can create or modify + rules for the table. For backwards compatibility, + GRANT/REVOKE RULE is still accepted, + but it does nothing. + + - - This enforces a maximum replication delay for warm standby servers. - - + + + Array comparison improvements (Tom) + - - - Add native LDAP - authentication (Magnus Hagander) - + + Now array dimensions are also compared. + + - - This is particularly useful for platforms that do not - support PAM, such as Windows. - - + + + Change array concatenation + to match documented behavior (Tom) + - - - Add GRANT - CONNECT ON DATABASE (Gevik Babakhani) - + + This changes the previous behavior where concatenation + would modify the array lower bound. + + - - This gives SQL-level control over database access. It works as - an additional filter on top of the existing - pg_hba.conf - controls. - - + + + Make command-line options of postmaster + and postgres + identical (Peter) + - - - Add support for SSL - Certificate Revocation List (CRL) files - (Libor Hohoš) - + + This allows the postmaster to pass arguments to each backend + without using -o. Note that some options are now + only available as long-form options, because there were conflicting + single-letter options. + + - - The server and libpq both recognize CRL - files now. - - + + + Deprecate use of postmaster symbolic link (Peter) + - - - GiST indexes are - now clusterable (Teodor) - - + + postmaster and postgres + commands now act identically, with the behavior determined + by command-line options. The postmaster symbolic link is + kept for compatibility, but is not really needed. + + - - - Remove routine autovacuum server log entries (Bruce) - + + + Change log_duration + to output even if the query is not output (Tom) + - - pg_stat_activity - now shows autovacuum activity. - - + + In prior releases, log_duration only printed if + the query appeared earlier in the log. + + - - - Track maximum XID age within individual tables, instead of whole databases (Alvaro) - + + + Make to_char(time) + and to_char(interval) + treat HH and HH12 as 12-hour + intervals + - - This reduces the overhead involved in preventing transaction - ID wraparound, by avoiding unnecessary VACUUMs. - - + + Most applications should use HH24 unless they + want a 12-hour display. + + - - - Add last vacuum and analyze timestamp columns to the stats - collector (Larry Rosenman) - + + + Zero unmasked bits in conversion from INET to CIDR (Tom) + - - These values now appear in the pg_stat_*_tables - system views. - - + + This ensures that the converted value is actually valid for + CIDR. + + - - - Improve performance of statistics monitoring, especially - stats_command_string - (Tom, Bruce) - + + + Remove australian_timezones configuration variable + (Joachim Wieland) + - - This release enables stats_command_string by - default, now that its overhead is minimal. This means - pg_stat_activity - will now show all active queries by default. - - + + This variable has been superseded by a more general facility + for configuring timezone abbreviations. + + - - - Add a waiting column to pg_stat_activity - (Tom) - + + + Improve cost estimation for nested-loop index scans (Tom) + - - This allows pg_stat_activity to show all the - information included in the ps display. - - + + This might eliminate the need to set unrealistically small + values of random_page_cost. + If you have been using a very small random_page_cost, + please recheck your test cases. + + - - - Add configuration parameter update_process_title - to control whether the ps display is updated - for every command (Bruce) - + + + Change behavior of pg_dump -n and + -t options. (Greg Sabino Mullane) + + + See the pg_dump manual page for details. + + - - On platforms where it is expensive to update the ps - display, it might be worthwhile to turn this off and rely solely on - pg_stat_activity for status information. - - + + + Change libpq + PQdsplen() to return a useful value (Martijn + van Oosterhout) + + - - - Allow units to be specified in configuration settings - (Peter) - + + + Declare libpq + PQgetssl() as returning void *, + rather than SSL * (Martijn van Oosterhout) + - - For example, you can now set shared_buffers - to 32MB rather than mentally converting sizes. - - + + This allows applications to use the function without including + the OpenSSL headers. + + - - - Add support for include - directives in postgresql.conf (Joachim - Wieland) - - + + + C-language loadable modules must now include a + PG_MODULE_MAGIC + macro call for version compatibility checking + (Martijn van Oosterhout) + + - + + + For security's sake, modules used by a PL/PerlU function are no + longer available to PL/Perl functions (Andrew) + + - Improve logging of protocol-level prepare/bind/execute - messages (Bruce, Tom) + This also implies that data can no longer be shared between a PL/Perl + function and a PL/PerlU function. + Some Perl installations have not been compiled with the correct flags + to allow multiple interpreters to exist within a single process. + In this situation PL/Perl and PL/PerlU cannot both be used in a + single backend. The solution is to get a Perl installation which + supports multiple interpreters. + + - - Such logging now shows statement names, bind parameter - values, and the text of the query being executed. Also, - the query text is properly included in logged error messages - when enabled by log_min_error_statement. - - + + + In contrib/xml2/, rename xml_valid() to + xml_is_well_formed() (Tom) + - - - Prevent max_stack_depth - from being set to unsafe values - + + xml_valid() will remain for backward compatibility, + but its behavior will change to do schema checking in a future + release. + + - - On platforms where we can determine the actual kernel stack depth - limit (which is most), make sure that the initial default value of - max_stack_depth is safe, and reject attempts to set it - to unsafely large values. - - + + + Remove contrib/ora2pg/, now at + + - - - Enable highlighting of error location in query in more - cases (Tom) - + + + Remove contrib modules that have been migrated to PgFoundry: + adddepend, dbase, dbmirror, + fulltextindex, mac, userlock + + - - The server is now able to report a specific error location for - some semantic errors (such as unrecognized column name), rather - than just for basic syntax errors as before. - - + + + Remove abandoned contrib modules: + mSQL-interface, tips + + - - - Fix failed to re-find parent key errors in - VACUUM (Tom) - - + + + Remove QNX and BEOS ports (Bruce) + - - - Clean out pg_internal.init cache files during server - restart (Simon) - + + These ports no longer had active maintainers. + + - - This avoids a hazard that the cache files might contain stale - data after PITR recovery. - - + + - - - Fix race condition for truncation of a large relation across a - gigabyte boundary by VACUUM (Tom) - - + + Changes - - - Fix bug causing needless deadlock errors on row-level locks (Tom) - - + + Below you will find a detailed account of the + changes between PostgreSQL 8.2 and + the previous major release. + - - - Fix bugs affecting multi-gigabyte hash indexes (Tom) - - + + Performance Improvements + - - - Each backend process is now its own process group leader (Tom) - + + + Allow the planner to reorder outer + joins in some circumstances (Tom) + - - This allows query cancel to abort subprocesses invoked from a - backend or archive/recovery process. - - + + In previous releases, outer joins would always be evaluated in + the order written in the query. This change allows the + query optimizer to consider reordering outer joins, in cases where + it can determine that the join order can be changed without + altering the meaning of the query. This can make a + considerable performance difference for queries involving + multiple outer joins or mixed inner and outer joins. + + - + + + Improve efficiency of IN + (list-of-expressions) clauses (Tom) + + - + + + Improve sorting speed and reduce memory usage (Simon, Tom) + + - - Query Changes - + + + Improve subtransaction performance (Alvaro, Itagaki Takahiro, + Tom) + + - - - Add INSERT/UPDATE/DELETE - RETURNING (Jonah Harris, Tom) - + + + Add FILLFACTOR to table and index creation (ITAGAKI + Takahiro) + - - This allows these commands to return values, such as the - computed serial key for a new row. In the UPDATE - case, values from the updated version of the row are returned. - - + + This leaves extra free space in each table or index page, + allowing improved performance as the database grows. This + is particularly valuable to maintain clustering. + + - - - Add support for multiple-row VALUES clauses, - per SQL standard (Joe, Tom) - + + + Increase default values for shared_buffers + and max_fsm_pages + (Andrew) + + - - This allows INSERT to insert multiple rows of - constants, or queries to generate result sets using constants. - For example, INSERT ... VALUES (...), (...), - ...., and SELECT * FROM (VALUES (...), (...), - ....) AS alias(f1, ...). - - + + + Improve locking performance by breaking the lock manager tables into + sections + (Tom) + - - - Allow UPDATE - and DELETE - to use an alias for the target table (Atsushi Ogawa) - + + This allows locking to be more fine-grained, reducing + contention. + + - - The SQL standard does not permit an alias in these commands, but - many database systems allow one anyway for notational convenience. - - + + + Reduce locking requirements of sequential scans (Qingqing + Zhou) + + - - - Allow UPDATE - to set multiple columns with a list of values (Susanne - Ebrecht) - + + + Reduce locking required for database creation and destruction + (Tom) + + - - This is basically a short-hand for assigning the columns - and values in pairs. The syntax is UPDATE tab - SET (column, ...) = (val, ...). - - + + + Improve the optimizer's selectivity estimates for LIKE, ILIKE, and + regular expression + operations (Tom) + + - - - Make row comparisons work per standard (Tom) - + + + Improve planning of joins to inherited + tables and UNION + ALL views (Tom) + + - - The forms <, <=, >, >= now compare rows lexicographically, - that is, compare the first elements, if equal compare the second - elements, and so on. Formerly they expanded to an AND condition - across all the elements, which was neither standard nor very useful. - - + + + Allow constraint + exclusion to be applied to inherited UPDATE and + DELETE queries (Tom) + - - - Add CASCADE - option to TRUNCATE (Joachim Wieland) - + + SELECT already honored constraint exclusion. + + - - This causes TRUNCATE to automatically include all tables - that reference the specified table(s) via foreign keys. While - convenient, this is a dangerous tool — use with caution! - - + + + Improve planning of constant WHERE clauses, such as + a condition that depends only on variables inherited from an + outer query level (Tom) + + - - - Support FOR UPDATE and FOR SHARE - in the same SELECT - command (Tom) - - + + + Protocol-level unnamed prepared statements are re-planned + for each set of BIND values (Tom) + - - - Add IS NOT - DISTINCT FROM (Pavel Stehule) - + + This improves performance because the exact parameter values + can be used in the plan. + + - - This operator is similar to equality (=), but - evaluates to true when both left and right operands are - NULL, and to false when just one is, rather than - yielding NULL in these cases. - - + + + Speed up vacuuming of B-Tree indexes (Heikki Linnakangas, + Tom) + + - - - Improve the length output used by UNION/INTERSECT/EXCEPT - (Tom) - + + + Avoid extra scan of tables without indexes during VACUUM (Greg Stark) + + - - When all corresponding columns are of the same defined length, that - length is used for the result, rather than a generic length. - - + + + Improve multicolumn GiST + indexing (Oleg, Teodor) + + - - - Allow ILIKE - to work for multi-byte encodings (Tom) - + + + Remove dead index entries before B-Tree page split (Junji + Teramoto) + + - - Internally, ILIKE now calls lower() - and then uses LIKE. Locale-specific regular - expression patterns still do not work in these encodings. - - + - - - Enable standard_conforming_strings - to be turned on (Kevin Grittner) - + - - This allows backslash escaping in strings to be disabled, - making PostgreSQL more - standards-compliant. The default is off for backwards - compatibility, but future releases will default this to on. - - + + Server Changes + - - - Do not flatten subqueries that contain volatile - functions in their target lists (Jaime Casanova) - + + + Allow a forced switch to a new transaction log file (Simon, Tom) + - - This prevents surprising behavior due to multiple evaluation - of a volatile function (such as random() - or nextval()). It might cause performance - degradation in the presence of functions that are unnecessarily - marked as volatile. - - + + This is valuable for keeping warm standby slave servers + in sync with the master. Transaction log file switching now also happens + automatically during pg_stop_backup(). + This ensures that all + transaction log files needed for recovery can be archived immediately. + + - - - Add system views pg_prepared_statements - and pg_cursors - to show prepared statements and open cursors (Joachim Wieland, Neil) - + + + Add WAL informational functions (Simon) + - - These are very useful in pooled connection setups. - - + + Add functions for interrogating the current transaction log insertion + point and determining WAL filenames from the + hex WAL locations displayed by pg_stop_backup() + and related functions. + + - - - Support portal parameters in EXPLAIN and EXECUTE (Tom) - + + + Improve recovery from a crash during WAL replay (Simon) + - - This allows, for example, JDBC ? parameters to - work in these commands. - - + + The server now does periodic checkpoints during WAL + recovery, so if there is a crash, future WAL + recovery is shortened. This also eliminates the need for + warm standby servers to replay the entire log since the + base backup if they crash. + + - - - If SQL-level PREPARE parameters - are unspecified, infer their types from the content of the - query (Neil) - + + + Improve reliability of long-term WAL replay + (Heikki, Simon, Tom) + - - Protocol-level PREPARE already did this. - - + + Formerly, trying to roll forward through more than 2 billion + transactions would not work due to XID wraparound. This meant + warm standby servers had to be reloaded + from fresh base backups periodically. + + - - - Allow LIMIT and OFFSET to exceed - two billion (Dhanaraj M) - - + + + Add archive_timeout + to force transaction log file switches at a given interval (Simon) + - + + This enforces a maximum replication delay for warm standby servers. + + - + + + Add native LDAP + authentication (Magnus Hagander) + - - Object Manipulation Changes - + + This is particularly useful for platforms that do not + support PAM, such as Windows. + + - - - Add TABLESPACE clause to CREATE TABLE AS - (Neil) - + + + Add GRANT + CONNECT ON DATABASE (Gevik Babakhani) + - - This allows a tablespace to be specified for the new table. - - + + This gives SQL-level control over database access. It works as + an additional filter on top of the existing + pg_hba.conf + controls. + + - - - Add ON COMMIT clause to CREATE TABLE AS - (Neil) - - - - This allows temporary tables to be truncated or dropped on - transaction commit. The default behavior is for the table - to remain until the session ends. - - + + + Add support for SSL + Certificate Revocation List (CRL) files + (Libor Hohoš) + - - - Add INCLUDING CONSTRAINTS to CREATE TABLE LIKE - (Greg Stark) - + + The server and libpq both recognize CRL + files now. + + - - This allows easy copying of CHECK constraints to a new - table. - - + + + GiST indexes are + now clusterable (Teodor) + + - - - Allow the creation of placeholder (shell) types (Martijn van Oosterhout) - + + + Remove routine autovacuum server log entries (Bruce) + - - A shell type declaration creates a type name, without specifying - any of the details of the type. Making a shell type is useful - because it allows cleaner declaration of the type's input/output - functions, which must exist before the type can be defined for - real. The syntax is CREATE TYPE typename. - - + + pg_stat_activity + now shows autovacuum activity. + + - - - Aggregate functions - now support multiple input parameters (Sergey Koposov, Tom) - - + + + Track maximum XID age within individual tables, instead of whole databases (Alvaro) + - - - Add new aggregate creation syntax (Tom) - + + This reduces the overhead involved in preventing transaction + ID wraparound, by avoiding unnecessary VACUUMs. + + - - The new syntax is CREATE AGGREGATE - aggname (input_type) - (parameter_list). This more - naturally supports the new multi-parameter aggregate - functionality. The previous syntax is still supported. - - + + + Add last vacuum and analyze timestamp columns to the stats + collector (Larry Rosenman) + - - - Add ALTER ROLE PASSWORD NULL - to remove a previously set role password (Peter) - - + + These values now appear in the pg_stat_*_tables + system views. + + - - - Add DROP object IF EXISTS for many - object types (Andrew) - + + + Improve performance of statistics monitoring, especially + stats_command_string + (Tom, Bruce) + - - This allows DROP operations on non-existent - objects without generating an error. - - + + This release enables stats_command_string by + default, now that its overhead is minimal. This means + pg_stat_activity + will now show all active queries by default. + + - - - Add DROP OWNED - to drop all objects owned by a role (Alvaro) - - + + + Add a waiting column to pg_stat_activity + (Tom) + - - - Add REASSIGN - OWNED to reassign ownership of all objects owned - by a role (Alvaro) - + + This allows pg_stat_activity to show all the + information included in the ps display. + + - - This, and DROP OWNED above, facilitate dropping - roles. - - + + + Add configuration parameter update_process_title + to control whether the ps display is updated + for every command (Bruce) + - - - Add GRANT ON SEQUENCE - syntax (Bruce) - + + On platforms where it is expensive to update the ps + display, it might be worthwhile to turn this off and rely solely on + pg_stat_activity for status information. + + - - This was added for setting sequence-specific permissions. - GRANT ON TABLE for sequences is still supported - for backward compatibility. - - + + + Allow units to be specified in configuration settings + (Peter) + - - - Add USAGE - permission for sequences that allows only currval() - and nextval(), not setval() - (Bruce) - + + For example, you can now set shared_buffers + to 32MB rather than mentally converting sizes. + + - - USAGE permission allows more fine-grained - control over sequence access. Granting USAGE - allows users to increment - a sequence, but prevents them from setting the sequence to - an arbitrary value using setval(). - - + + + Add support for include + directives in postgresql.conf (Joachim + Wieland) + + - - - Add ALTER TABLE - [ NO ] INHERIT (Greg Stark) - + + + Improve logging of protocol-level prepare/bind/execute + messages (Bruce, Tom) + - - This allows inheritance to be adjusted dynamically, rather than - just at table creation and destruction. This is very valuable - when using inheritance to implement table partitioning. - - + + Such logging now shows statement names, bind parameter + values, and the text of the query being executed. Also, + the query text is properly included in logged error messages + when enabled by log_min_error_statement. + + - - - Allow comments on global - objects to be stored globally (Kris Jurka) - + + + Prevent max_stack_depth + from being set to unsafe values + - - Previously, comments attached to databases were stored in individual - databases, making them ineffective, and there was no provision - at all for comments on roles or tablespaces. This change adds a new - shared catalog pg_shdescription - and stores comments on databases, roles, and tablespaces therein. - - + + On platforms where we can determine the actual kernel stack depth + limit (which is most), make sure that the initial default value of + max_stack_depth is safe, and reject attempts to set it + to unsafely large values. + + - + + + Enable highlighting of error location in query in more + cases (Tom) + - + + The server is now able to report a specific error location for + some semantic errors (such as unrecognized column name), rather + than just for basic syntax errors as before. + + - - Utility Command Changes - + + + Fix failed to re-find parent key errors in + VACUUM (Tom) + + - - - Add option to allow indexes to be created without blocking - concurrent writes to the table (Greg Stark, Tom) - + + + Clean out pg_internal.init cache files during server + restart (Simon) + - - The new syntax is CREATE - INDEX CONCURRENTLY. The default behavior is - still to block table modification while a index is being - created. - - + + This avoids a hazard that the cache files might contain stale + data after PITR recovery. + + - - - Provide advisory - locking functionality (Abhijit Menon-Sen, Tom) - + + + Fix race condition for truncation of a large relation across a + gigabyte boundary by VACUUM (Tom) + + - - This is a new locking API designed to replace what used to be - in /contrib/userlock. The userlock code is now on pgfoundry. - - + + + Fix bug causing needless deadlock errors on row-level locks (Tom) + + - - - Allow COPY to - dump a SELECT query (Zoltan Boszormenyi, Karel - Zak) - + + + Fix bugs affecting multi-gigabyte hash indexes (Tom) + + - - This allows COPY to dump arbitrary SQL - queries. The syntax is COPY (SELECT ...) TO. - - + + + Each backend process is now its own process group leader (Tom) + - - - Make the COPY - command return a command tag that includes the number of - rows copied (Volkan YAZICI) - - + + This allows query cancel to abort subprocesses invoked from a + backend or archive/recovery process. + + - - - Allow VACUUM - to expire rows without being affected by other concurrent - VACUUM operations (Hannu Krossing, Alvaro, Tom) - - + - - - Make initdb - detect the operating system locale and set the default - DateStyle accordingly (Peter) - + - - This makes it more likely that the installed - postgresql.conf DateStyle value will - be as desired. - - + + Query Changes + - - - Reduce number of progress messages displayed by initdb (Tom) - - + + + Add INSERT/UPDATE/DELETE + RETURNING (Jonah Harris, Tom) + - + + This allows these commands to return values, such as the + computed serial key for a new row. In the UPDATE + case, values from the updated version of the row are returned. + + - + + + Add support for multiple-row VALUES clauses, + per SQL standard (Joe, Tom) + - - Date/Time Changes - + + This allows INSERT to insert multiple rows of + constants, or queries to generate result sets using constants. + For example, INSERT ... VALUES (...), (...), + ...., and SELECT * FROM (VALUES (...), (...), + ....) AS alias(f1, ...). + + - - - Allow full timezone names in timestamp input values - (Joachim Wieland) - + + + Allow UPDATE + and DELETE + to use an alias for the target table (Atsushi Ogawa) + - - For example, '2006-05-24 21:11 - America/New_York'::timestamptz. - - + + The SQL standard does not permit an alias in these commands, but + many database systems allow one anyway for notational convenience. + + - - - Support configurable timezone abbreviations (Joachim Wieland) - + + + Allow UPDATE + to set multiple columns with a list of values (Susanne + Ebrecht) + - - A desired set of timezone abbreviations can be chosen via the - configuration parameter timezone_abbreviations. - - + + This is basically a short-hand for assigning the columns + and values in pairs. The syntax is UPDATE tab + SET (column, ...) = (val, ...). + + - - - Add pg_timezone_abbrevs - and pg_timezone_names - views to show supported timezones (Magnus Hagander) - - + + + Make row comparisons work per standard (Tom) + - - - Add clock_timestamp(), - statement_timestamp(), - and transaction_timestamp() - (Bruce) - + + The forms <, <=, >, >= now compare rows lexicographically, + that is, compare the first elements, if equal compare the second + elements, and so on. Formerly they expanded to an AND condition + across all the elements, which was neither standard nor very useful. + + - - clock_timestamp() is the current wall-clock time, - statement_timestamp() is the time the current - statement arrived at the server, and - transaction_timestamp() is an alias for - now(). - - + + + Add CASCADE + option to TRUNCATE (Joachim Wieland) + - - - Allow to_char() - to print localized month and day names (Euler Taveira de - Oliveira) - - + + This causes TRUNCATE to automatically include all tables + that reference the specified table(s) via foreign keys. While + convenient, this is a dangerous tool — use with caution! + + - - - Allow to_char(time) - and to_char(interval) - to output AM/PM specifications - (Bruce) - + + + Support FOR UPDATE and FOR SHARE + in the same SELECT + command (Tom) + + - - Intervals and times are treated as 24-hour periods, e.g. - 25 hours is considered AM. - - + + + Add IS NOT + DISTINCT FROM (Pavel Stehule) + - - - Add new function justify_interval() - to adjust interval units (Mark Dilger) - - + + This operator is similar to equality (=), but + evaluates to true when both left and right operands are + NULL, and to false when just one is, rather than + yielding NULL in these cases. + + - - - Allow timezone offsets up to 14:59 away from GMT - + + + Improve the length output used by UNION/INTERSECT/EXCEPT + (Tom) + - - Kiribati uses GMT+14, so we'd better accept that. - - + + When all corresponding columns are of the same defined length, that + length is used for the result, rather than a generic length. + + - - - Interval computation improvements (Michael Glaesemann, Bruce) - - + + + Allow ILIKE + to work for multi-byte encodings (Tom) + - + + Internally, ILIKE now calls lower() + and then uses LIKE. Locale-specific regular + expression patterns still do not work in these encodings. + + - + + + Enable standard_conforming_strings + to be turned on (Kevin Grittner) + - - Other Data Type and Function Changes - + + This allows backslash escaping in strings to be disabled, + making PostgreSQL more + standards-compliant. The default is off for backwards + compatibility, but future releases will default this to on. + + - - - Allow arrays to contain NULL elements (Tom) - - + + + Do not flatten subqueries that contain volatile + functions in their target lists (Jaime Casanova) + - - - Allow assignment to array elements not contiguous with the existing - entries (Tom) - + + This prevents surprising behavior due to multiple evaluation + of a volatile function (such as random() + or nextval()). It might cause performance + degradation in the presence of functions that are unnecessarily + marked as volatile. + + - - The intervening array positions will be filled with nulls. - This is per SQL standard. - - + + + Add system views pg_prepared_statements + and pg_cursors + to show prepared statements and open cursors (Joachim Wieland, Neil) + - - - New built-in operators - for array-subset comparisons (@>, - <@, &&) (Teodor, Tom) - + + These are very useful in pooled connection setups. + + - - These operators can be indexed for many data types using - GiST or GIN indexes. - - + + + Support portal parameters in EXPLAIN and EXECUTE (Tom) + - - - Add convenient arithmetic operations on - INET/CIDR values (Stephen R. van den - Berg) - + + This allows, for example, JDBC ? parameters to + work in these commands. + + - - The new operators are & (and), | - (or), ~ (not), inet + int8, - inet - int8, and - inet - inet. - - + + + If SQL-level PREPARE parameters + are unspecified, infer their types from the content of the + query (Neil) + - - - Add new aggregate functions - from SQL:2003 (Neil) - + + Protocol-level PREPARE already did this. + + - - The new functions are var_pop(), - var_samp(), stddev_pop(), and - stddev_samp(). var_samp() and - stddev_samp() are merely renamings of the - existing aggregates variance() and - stddev(). The latter names remain available - for backward compatibility. - - + + + Allow LIMIT and OFFSET to exceed + two billion (Dhanaraj M) + + - - - Add SQL:2003 statistical aggregates - (Sergey Koposov) - + - - New functions: regr_intercept(), - regr_slope(), regr_r2(), - corr(), covar_samp(), - covar_pop(), regr_avgx(), - regr_avgy(), regr_sxy(), - regr_sxx(), regr_syy(), - regr_count(). - - + - - - Allow domains to be - based on other domains (Tom) - - + + Object Manipulation Changes + - - - Properly enforce domain CHECK constraints - everywhere (Neil, Tom) - + + + Add TABLESPACE clause to CREATE TABLE AS + (Neil) + - - For example, the result of a user-defined function that is - declared to return a domain type is now checked against the - domain's constraints. This closes a significant hole in the domain - implementation. - - + + This allows a tablespace to be specified for the new table. + + - - - Fix problems with dumping renamed SERIAL columns - (Tom) - + + + Add ON COMMIT clause to CREATE TABLE AS + (Neil) + - - The fix is to dump a SERIAL column by explicitly - specifying its DEFAULT and sequence elements, - and reconstructing the SERIAL column on reload - using a new ALTER - SEQUENCE OWNED BY command. This also allows - dropping a SERIAL column specification. - - + + This allows temporary tables to be truncated or dropped on + transaction commit. The default behavior is for the table + to remain until the session ends. + + - - - Add a server-side sleep function pg_sleep() - (Joachim Wieland) - - + + + Add INCLUDING CONSTRAINTS to CREATE TABLE LIKE + (Greg Stark) + - - - Add all comparison operators for the tid (tuple id) data - type (Mark Kirkwood, Greg Stark, Tom) - - + + This allows easy copying of CHECK constraints to a new + table. + + - + + + Allow the creation of placeholder (shell) types (Martijn van Oosterhout) + - + + A shell type declaration creates a type name, without specifying + any of the details of the type. Making a shell type is useful + because it allows cleaner declaration of the type's input/output + functions, which must exist before the type can be defined for + real. The syntax is CREATE TYPE typename. + + - - PL/PgSQL Server-Side Language Changes - + + + Aggregate functions + now support multiple input parameters (Sergey Koposov, Tom) + + - - - Add TG_table_name and TG_table_schema to - trigger parameters (Andrew) - + + + Add new aggregate creation syntax (Tom) + - - TG_relname is now deprecated. Comparable - changes have been made in the trigger parameters for the other - PLs as well. - - + + The new syntax is CREATE AGGREGATE + aggname (input_type) + (parameter_list). This more + naturally supports the new multi-parameter aggregate + functionality. The previous syntax is still supported. + + - - - Allow FOR statements to return values to scalars - as well as records and row types (Pavel Stehule) - - + + + Add ALTER ROLE PASSWORD NULL + to remove a previously set role password (Peter) + + - - - Add a BY clause to the FOR loop, - to control the iteration increment (Jaime Casanova) - - + + + Add DROP object IF EXISTS for many + object types (Andrew) + - - - Add STRICT to SELECT - INTO (Matt Miller) - + + This allows DROP operations on non-existent + objects without generating an error. + + - - STRICT mode throws an exception if more or less - than one row is returned by the SELECT, for - Oracle PL/SQL compatibility. - - + + + Add DROP OWNED + to drop all objects owned by a role (Alvaro) + + - + + + Add REASSIGN + OWNED to reassign ownership of all objects owned + by a role (Alvaro) + - + + This, and DROP OWNED above, facilitate dropping + roles. + + - - PL/Perl Server-Side Language Changes - + + + Add GRANT ON SEQUENCE + syntax (Bruce) + - - - Add table_name and table_schema to - trigger parameters (Adam Sjøgren) - - + + This was added for setting sequence-specific permissions. + GRANT ON TABLE for sequences is still supported + for backward compatibility. + + - - - Add prepared queries (Dmitry Karasik) - - - - - - Make $_TD trigger data a global variable (Andrew) - + + + Add USAGE + permission for sequences that allows only currval() + and nextval(), not setval() + (Bruce) + - - Previously, it was lexical, which caused unexpected sharing - violations. - - + + USAGE permission allows more fine-grained + control over sequence access. Granting USAGE + allows users to increment + a sequence, but prevents them from setting the sequence to + an arbitrary value using setval(). + + - - - Run PL/Perl and PL/PerlU in separate interpreters, for security - reasons (Andrew) - - - In consequence, they can no longer share data nor loaded modules. - Also, if Perl has not been compiled with the requisite flags to - allow multiple interpreters, only one of these languages can be used - in any given backend process. - - + + + Add ALTER TABLE + [ NO ] INHERIT (Greg Stark) + - + + This allows inheritance to be adjusted dynamically, rather than + just at table creation and destruction. This is very valuable + when using inheritance to implement table partitioning. + + - + + + Allow comments on global + objects to be stored globally (Kris Jurka) + - - PL/Python Server-Side Language Changes - + + Previously, comments attached to databases were stored in individual + databases, making them ineffective, and there was no provision + at all for comments on roles or tablespaces. This change adds a new + shared catalog pg_shdescription + and stores comments on databases, roles, and tablespaces therein. + + - - - Named parameters are passed as ordinary variables, as well as in the - args[] array (Sven Suursoho) - - + - - - Add table_name and table_schema to - trigger parameters (Andrew) - - + - - - Allow returning of composite types and result sets (Sven Suursoho) - - + + Utility Command Changes + - - - Return result-set as list, iterator, - or generator (Sven Suursoho) - - + + + Add option to allow indexes to be created without blocking + concurrent writes to the table (Greg Stark, Tom) + - - - Allow functions to return void (Neil) - - + + The new syntax is CREATE + INDEX CONCURRENTLY. The default behavior is + still to block table modification while a index is being + created. + + - - - Python 2.5 is now supported (Tom) - - + + + Provide advisory + locking functionality (Abhijit Menon-Sen, Tom) + - + + This is a new locking API designed to replace what used to be + in /contrib/userlock. The userlock code is now on pgfoundry. + + - + + + Allow COPY to + dump a SELECT query (Zoltan Boszormenyi, Karel + Zak) + - - <link linkend="APP-PSQL"><application>psql</></link> Changes - + + This allows COPY to dump arbitrary SQL + queries. The syntax is COPY (SELECT ...) TO. + + - - - Add new command \password for changing role - password with client-side password encryption (Peter) - - + + + Make the COPY + command return a command tag that includes the number of + rows copied (Volkan YAZICI) + + - - - Allow \c to connect to a new host and port - number (David, Volkan YAZICI) - - + + + Allow VACUUM + to expire rows without being affected by other concurrent + VACUUM operations (Hannu Krossing, Alvaro, Tom) + + - - - Add tablespace display to \l+ (Philip Yarra) - - + + + Make initdb + detect the operating system locale and set the default + DateStyle accordingly (Peter) + - - - Improve \df slash command to include the argument - names and modes (OUT or INOUT) of - the function (David Fetter) - - + + This makes it more likely that the installed + postgresql.conf DateStyle value will + be as desired. + + - - - Support binary COPY (Andreas Pflug) - - + + + Reduce number of progress messages displayed by initdb (Tom) + + - - - Add option to run the entire session in a single transaction - (Simon) - + - - Use option -1 or --single-transaction. - - + - - - Support for automatically retrieving SELECT - results in batches using a cursor (Chris Mair) - + + Date/Time Changes + - - This is enabled using \set FETCH_COUNT - n. This - feature allows large result sets to be retrieved in - psql without attempting to buffer the entire - result set in memory. - - + + + Allow full timezone names in timestamp input values + (Joachim Wieland) + - - - Make multi-line values align in the proper column - (Martijn van Oosterhout) - + + For example, '2006-05-24 21:11 + America/New_York'::timestamptz. + + - - Field values containing newlines are now displayed in a more - readable fashion. - - + + + Support configurable timezone abbreviations (Joachim Wieland) + - - - Save multi-line statements as a single entry, rather than - one line at a time (Sergey E. Koposov) - + + A desired set of timezone abbreviations can be chosen via the + configuration parameter timezone_abbreviations. + + - - This makes up-arrow recall of queries easier. (This is - not available on Windows, because that platform uses the native - command-line editing present in the operating system.) - - + + + Add pg_timezone_abbrevs + and pg_timezone_names + views to show supported timezones (Magnus Hagander) + + - - - Make the line counter 64-bit so it can handle files with more - than two billion lines (David Fetter) - - + + + Add clock_timestamp(), + statement_timestamp(), + and transaction_timestamp() + (Bruce) + - - - Report both the returned data and the command status tag - for INSERT/UPDATE/DELETE - RETURNING (Tom) - - + + clock_timestamp() is the current wall-clock time, + statement_timestamp() is the time the current + statement arrived at the server, and + transaction_timestamp() is an alias for + now(). + + - + + + Allow to_char() + to print localized month and day names (Euler Taveira de + Oliveira) + + - + + + Allow to_char(time) + and to_char(interval) + to output AM/PM specifications + (Bruce) + - - <link linkend="APP-PGDUMP"><application>pg_dump</></link> Changes - + + Intervals and times are treated as 24-hour periods, e.g. + 25 hours is considered AM. + + - - - Allow complex selection of objects to be included or excluded - by pg_dump (Greg Sabino Mullane) - + + + Add new function justify_interval() + to adjust interval units (Mark Dilger) + + - - pg_dump now supports multiple -n - (schema) and -t (table) options, and adds - -N and -T options to exclude objects. - Also, the arguments of these switches can now be wild-card expressions - rather than single object names, for example - -t 'foo*', and a schema can be part of - a -t or -T switch, for example - -t schema1.table1. - - + + + Allow timezone offsets up to 14:59 away from GMT + - - - Add pg_restore - --no-data-for-failed-tables option to suppress - loading data if table creation failed (i.e., the table already - exists) (Martin Pitt) - - + + Kiribati uses GMT+14, so we'd better accept that. + + - - - Add pg_restore - option to run the entire session in a single transaction - (Simon) - + + + Interval computation improvements (Michael Glaesemann, Bruce) + + - - Use option -1 or --single-transaction. - - + - + - + + Other Data Type and Function Changes + - - <link linkend="libpq"><application>libpq</></link> Changes - + + + Allow arrays to contain NULL elements (Tom) + + - - - Add PQencryptPassword() - to encrypt passwords (Tom) - + + + Allow assignment to array elements not contiguous with the existing + entries (Tom) + - - This allows passwords to be sent pre-encrypted for commands - like ALTER ROLE ... - PASSWORD. - - + + The intervening array positions will be filled with nulls. + This is per SQL standard. + + - - - Add function PQisthreadsafe() - (Bruce) - + + + New built-in operators + for array-subset comparisons (@>, + <@, &&) (Teodor, Tom) + - - This allows applications to query the thread-safety status - of the library. - - + + These operators can be indexed for many data types using + GiST or GIN indexes. + + - - - Add PQdescribePrepared(), - PQdescribePortal(), - and related functions to return information about previously - prepared statements and open cursors (Volkan YAZICI) - - + + + Add convenient arithmetic operations on + INET/CIDR values (Stephen R. van den + Berg) + - - - Allow LDAP lookups - from pg_service.conf - (Laurenz Albe) - - + + The new operators are & (and), | + (or), ~ (not), inet + int8, + inet - int8, and + inet - inet. + + - - - Allow a hostname in ~/.pgpass - to match the default socket directory (Bruce) - + + + Add new aggregate functions + from SQL:2003 (Neil) + - - A blank hostname continues to match any Unix-socket connection, - but this addition allows entries that are specific to one of - several postmasters on the machine. - - + + The new functions are var_pop(), + var_samp(), stddev_pop(), and + stddev_samp(). var_samp() and + stddev_samp() are merely renamings of the + existing aggregates variance() and + stddev(). The latter names remain available + for backward compatibility. + + - + + + Add SQL:2003 statistical aggregates + (Sergey Koposov) + - + + New functions: regr_intercept(), + regr_slope(), regr_r2(), + corr(), covar_samp(), + covar_pop(), regr_avgx(), + regr_avgy(), regr_sxy(), + regr_sxx(), regr_syy(), + regr_count(). + + - - <link linkend="ecpg"><application>ecpg</></link> Changes - + + + Allow domains to be + based on other domains (Tom) + + - - - Allow SHOW to - put its result into a variable (Joachim Wieland) - - + + + Properly enforce domain CHECK constraints + everywhere (Neil, Tom) + - - - Add COPY TO STDOUT - (Joachim Wieland) - - + + For example, the result of a user-defined function that is + declared to return a domain type is now checked against the + domain's constraints. This closes a significant hole in the domain + implementation. + + - - - Add regression tests (Joachim Wieland, Michael) - - + + + Fix problems with dumping renamed SERIAL columns + (Tom) + - - - Major source code cleanups (Joachim Wieland, Michael) - - + + The fix is to dump a SERIAL column by explicitly + specifying its DEFAULT and sequence elements, + and reconstructing the SERIAL column on reload + using a new ALTER + SEQUENCE OWNED BY command. This also allows + dropping a SERIAL column specification. + + - + + + Add a server-side sleep function pg_sleep() + (Joachim Wieland) + + - + + + Add all comparison operators for the tid (tuple id) data + type (Mark Kirkwood, Greg Stark, Tom) + + - - <application>Windows</> Port - + - - - Allow MSVC to compile the PostgreSQL - server (Magnus, Hiroshi Saito) - - + - - - Add MSVC support for utility commands and pg_dump (Hiroshi - Saito) - - + + PL/PgSQL Server-Side Language Changes + - - - Add support for Windows code pages 1253, - 1254, 1255, and 1257 - (Kris Jurka) - - + + + Add TG_table_name and TG_table_schema to + trigger parameters (Andrew) + - - - Drop privileges on startup, so that the server can be started from - an administrative account (Magnus) - - + + TG_relname is now deprecated. Comparable + changes have been made in the trigger parameters for the other + PLs as well. + + - - - Stability fixes (Qingqing Zhou, Magnus) - - + + + Allow FOR statements to return values to scalars + as well as records and row types (Pavel Stehule) + + - - - Add native semaphore implementation (Qingqing Zhou) - + + + Add a BY clause to the FOR loop, + to control the iteration increment (Jaime Casanova) + + - - The previous code mimicked SysV semaphores. - - + + + Add STRICT to SELECT + INTO (Matt Miller) + - + + STRICT mode throws an exception if more or less + than one row is returned by the SELECT, for + Oracle PL/SQL compatibility. + + - + - - Source Code Changes - + - - - Add GIN (Generalized - Inverted iNdex) index access method (Teodor, Oleg) - - + + PL/Perl Server-Side Language Changes + - - - Remove R-tree indexing (Tom) - + + + Add table_name and table_schema to + trigger parameters (Adam Sjøgren) + + - - Rtree has been re-implemented using GiST. Among other - differences, this means that rtree indexes now have support - for crash recovery via write-ahead logging (WAL). - - + + + Add prepared queries (Dmitry Karasik) + + - - - Reduce libraries needlessly linked into the backend (Martijn - van Oosterhout, Tom) - - + + + Make $_TD trigger data a global variable (Andrew) + - - - Add a configure flag to allow libedit to be preferred over - GNU readline (Bruce) - + + Previously, it was lexical, which caused unexpected sharing + violations. + + - - Use configure --with-libedit-preferred. - - + + + Run PL/Perl and PL/PerlU in separate interpreters, for security + reasons (Andrew) + + + In consequence, they can no longer share data nor loaded modules. + Also, if Perl has not been compiled with the requisite flags to + allow multiple interpreters, only one of these languages can be used + in any given backend process. + + - - - Allow installation into directories containing spaces - (Peter) - - + - - - Improve ability to relocate installation directories (Tom) - - + - - - Add support for Solaris x86_64 using the - Solaris compiler (Pierre Girard, Theo - Schlossnagle, Bruce) - - + + PL/Python Server-Side Language Changes + - - - Add DTrace support (Robert Lor) - - + + + Named parameters are passed as ordinary variables, as well as in the + args[] array (Sven Suursoho) + + - - - Add PG_VERSION_NUM for use by third-party - applications wanting to test the backend version in C using > - and < comparisons (Bruce) - - + + + Add table_name and table_schema to + trigger parameters (Andrew) + + - - - Add XLOG_BLCKSZ as independent from BLCKSZ - (Mark Wong) - - + + + Allow returning of composite types and result sets (Sven Suursoho) + + - - - Add LWLOCK_STATS define to report locking - activity (Tom) - - + + + Return result-set as list, iterator, + or generator (Sven Suursoho) + + - - - Emit warnings for unknown configure options - (Martijn van Oosterhout) - - + + + Allow functions to return void (Neil) + + - - - Add server support for plugin libraries - that can be used for add-on tasks such as debugging and performance - measurement (Korry Douglas) - + + + Python 2.5 is now supported (Tom) + + - - This consists of two features: a table of rendezvous - variables that allows separately-loaded shared libraries to - communicate, and a new configuration parameter local_preload_libraries - that allows libraries to be loaded into specific sessions without - explicit cooperation from the client application. This allows - external add-ons to implement features such as a PL/PgSQL debugger. - - + - - - Rename existing configuration parameter - preload_libraries to shared_preload_libraries - (Tom) - + - - This was done for clarity in comparison to - local_preload_libraries. - - + + <link linkend="APP-PSQL"><application>psql</></link> Changes + - - - Add new configuration parameter server_version_num - (Greg Sabino Mullane) - - - - This is like server_version, but is an - integer, e.g. 80200. This allows applications to - make version checks more easily. - - - - - - Add a configuration parameter seq_page_cost - (Tom) - - - - - - Re-implement the regression test script as a C program - (Magnus, Tom) - - - - - - Allow loadable modules to allocate shared memory and - lightweight locks (Marc Munro) - - - - - - Add automatic initialization and finalization of dynamically - loaded libraries (Ralf Engelschall, Tom) - - - - New functions - _PG_init() and _PG_fini() are - called if the library defines such symbols. Hence we no - longer need to specify an initialization function in - shared_preload_libraries; we can assume that - the library used the _PG_init() convention - instead. - - - - - - Add PG_MODULE_MAGIC - header block to all shared object files (Martijn van - Oosterhout) - - - - The magic block prevents version mismatches between loadable object - files and servers. - - - - - - Add shared library support for AIX (Laurenz Albe) - - - - - - New XML - documentation section (Bruce) - - - - - - - - - Contrib Changes - - - - - Major tsearch2 improvements (Oleg, Teodor) - - - - - - - multibyte encoding support, including UTF8 - - - - - query rewriting support - - - - - improved ranking functions - - - - - thesaurus dictionary support - - - - - Ispell dictionaries now recognize MySpell - format, used by OpenOffice - - - - - GIN support - - - - - - - - - - Add adminpack module containing Pgadmin administration - functions (Dave) - - - - These functions provide additional file system access - routines not present in the default PostgreSQL - server. - - - - - - Add sslinfo module (Victor Wagner) - - - - Reports information about the current connection's SSL - certificate. - - - - - - Add pgrowlocks module (Tatsuo) - - - - This shows row locking information for a specified table. - - - - - - Add hstore module (Oleg, Teodor) - - - - - - Add isn module, replacing isbn_issn (Jeremy Kronuz) - - - - This new implementation supports EAN13, UPC, - ISBN (books), ISMN (music), and - ISSN (serials). - - - - - - Add index information functions to pgstattuple (ITAGAKI Takahiro, - Satoshi Nagayasu) - - - - - - Add pg_freespacemap module to display free space map information - (Mark Kirkwood) - - - - - - pgcrypto now has all planned functionality (Marko Kreen) - - - - - Include iMath library in pgcrypto to have the public-key encryption - functions always available. - - - - - Add SHA224 algorithm that was missing in OpenBSD code. - - - - - Activate builtin code for SHA224/256/384/512 hashes on older - OpenSSL to have those algorithms always available. - - - - - New function gen_random_bytes() that returns cryptographically strong - randomness. Useful for generating encryption keys. - - - - - Remove digest_exists(), hmac_exists() and cipher_exists() functions. - - - - - - - - Improvements to cube module (Joshua Reich) - - - - New functions are cube(float[]), - cube(float[], float[]), and - cube_subset(cube, int4[]). - - - - - - Add async query capability to dblink (Kai Londenberg, - Joe Conway) - - - - - - New operators for array-subset comparisons (@>, - <@, &&) (Tom) - - - - Various contrib packages already had these operators for their - datatypes, but the naming wasn't consistent. We have now added - consistently named array-subset comparison operators to the core code - and all the contrib packages that have such functionality. - (The old names remain available, but are deprecated.) - - - - - - Add uninstall scripts for all contrib packages that have install - scripts (David, Josh Drake) - - - - - - - - - - - - Release 8.1.10 - - - Release date - 2007-09-17 - - - - This release contains a variety of fixes from 8.1.9. - - - - Migration to version 8.1.10 - - - A dump/restore is not required for those running 8.1.X. - However, if you are upgrading from a version earlier than 8.1.2, - see the release notes for 8.1.2. - - - - - - Changes - - + + + Add new command \password for changing role + password with client-side password encryption (Peter) + + - Prevent index corruption when a transaction inserts rows and - then aborts close to the end of a concurrent VACUUM - on the same table (Tom) + Allow \c to connect to a new host and port + number (David, Volkan YAZICI) - Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) + Add tablespace display to \l+ (Philip Yarra) - Allow the interval data type to accept input consisting only of - milliseconds or microseconds (Neil) + Improve \df slash command to include the argument + names and modes (OUT or INOUT) of + the function (David Fetter) - Speed up rtree index insertion (Teodor) + Support binary COPY (Andreas Pflug) - Fix excessive logging of SSL error messages (Tom) + Add option to run the entire session in a single transaction + (Simon) - - - Fix logging so that log messages are never interleaved when using - the syslogger process (Andrew) + Use option -1 or --single-transaction. - Fix crash when log_min_error_statement logging runs out - of memory (Tom) + Support for automatically retrieving SELECT + results in batches using a cursor (Chris Mair) - - - Fix incorrect handling of some foreign-key corner cases (Tom) + This is enabled using \set FETCH_COUNT + n. This + feature allows large result sets to be retrieved in + psql without attempting to buffer the entire + result set in memory. - Prevent REINDEX and CLUSTER from failing - due to attempting to process temporary tables of other sessions (Alvaro) + Make multi-line values align in the proper column + (Martijn van Oosterhout) - - - Update the time zone database rules, particularly New Zealand's upcoming changes (Tom) + Field values containing newlines are now displayed in a more + readable fashion. - Windows socket improvements (Magnus) + Save multi-line statements as a single entry, rather than + one line at a time (Sergey E. Koposov) + + + + This makes up-arrow recall of queries easier. (This is + not available on Windows, because that platform uses the native + command-line editing present in the operating system.) - Suppress timezone name (%Z) in log timestamps on Windows - because of possible encoding mismatches (Tom) + Make the line counter 64-bit so it can handle files with more + than two billion lines (David Fetter) - Require non-superusers who use /contrib/dblink to use only - password authentication, as a security measure (Joe) + Report both the returned data and the command status tag + for INSERT/UPDATE/DELETE + RETURNING (Tom) - - + - - Release 8.1.9 + + <link linkend="APP-PGDUMP"><application>pg_dump</></link> Changes + - - Release date - 2007-04-23 - + + + Allow complex selection of objects to be included or excluded + by pg_dump (Greg Sabino Mullane) + - - This release contains a variety of fixes from 8.1.8, - including a security fix. - + + pg_dump now supports multiple -n + (schema) and -t (table) options, and adds + -N and -T options to exclude objects. + Also, the arguments of these switches can now be wild-card expressions + rather than single object names, for example + -t 'foo*', and a schema can be part of + a -t or -T switch, for example + -t schema1.table1. + + - - Migration to version 8.1.9 + + + Add pg_restore + --no-data-for-failed-tables option to suppress + loading data if table creation failed (i.e., the table already + exists) (Martin Pitt) + + - - A dump/restore is not required for those running 8.1.X. - However, if you are upgrading from a version earlier than 8.1.2, - see the release notes for 8.1.2. - + + + Add pg_restore + option to run the entire session in a single transaction + (Simon) + - + + Use option -1 or --single-transaction. + + - - Changes + + + + + <link linkend="libpq"><application>libpq</></link> Changes - - Support explicit placement of the temporary-table schema within - search_path, and disable searching it for functions - and operators (Tom) - - - This is needed to allow a security-definer function to set a - truly secure value of search_path. Without it, - an unprivileged SQL user can use temporary objects to execute code - with the privileges of the security-definer function (CVE-2007-2138). - See CREATE FUNCTION for more information. - - + + Add PQencryptPassword() + to encrypt passwords (Tom) + - - - /contrib/tsearch2 crash fixes (Teodor) - + + This allows passwords to be sent pre-encrypted for commands + like ALTER ROLE ... + PASSWORD. + - - Require COMMIT PREPARED to be executed in the same - database as the transaction was prepared in (Heikki) - - + + Add function PQisthreadsafe() + (Bruce) + - - - Fix potential-data-corruption bug in how VACUUM FULL handles - UPDATE chains (Tom, Pavan Deolasee) - + + This allows applications to query the thread-safety status + of the library. + - - Planner fixes, including improving outer join and bitmap scan - selection logic (Tom) - + + Add PQdescribePrepared(), + PQdescribePortal(), + and related functions to return information about previously + prepared statements and open cursors (Volkan YAZICI) + - - Fix PANIC during enlargement of a hash index (bug introduced in 8.1.6) - (Tom) - + + Allow LDAP lookups + from pg_service.conf + (Laurenz Albe) + - - Fix POSIX-style timezone specs to follow new USA DST rules (Tom) - + + Allow a hostname in ~/.pgpass + to match the default socket directory (Bruce) + + + + A blank hostname continues to match any Unix-socket connection, + but this addition allows entries that are specific to one of + several postmasters on the machine. + - - + - - Release 8.1.8 + + <link linkend="ecpg"><application>ecpg</></link> Changes + - - Release date - 2007-02-07 - + + + Allow SHOW to + put its result into a variable (Joachim Wieland) + + - - This release contains one fix from 8.1.7. - + + + Add COPY TO STDOUT + (Joachim Wieland) + + - - Migration to version 8.1.8 + + + Add regression tests (Joachim Wieland, Michael) + + - - A dump/restore is not required for those running 8.1.X. - However, if you are upgrading from a version earlier than 8.1.2, - see the release notes for 8.1.2. - + + + Major source code cleanups (Joachim Wieland, Michael) + + - + - - Changes + + + <application>Windows</> Port - - Remove overly-restrictive check for type length in constraints and - functional indexes(Tom) - + + Allow MSVC to compile the PostgreSQL + server (Magnus, Hiroshi Saito) + - - - - + + + Add MSVC support for utility commands and pg_dump (Hiroshi + Saito) + + - - Release 8.1.7 + + + Add support for Windows code pages 1253, + 1254, 1255, and 1257 + (Kris Jurka) + + - - Release date - 2007-02-05 - + + + Drop privileges on startup, so that the server can be started from + an administrative account (Magnus) + + - - This release contains a variety of fixes from 8.1.6, including - a security fix. - + + + Stability fixes (Qingqing Zhou, Magnus) + + - - Migration to version 8.1.7 + + + Add native semaphore implementation (Qingqing Zhou) + - - A dump/restore is not required for those running 8.1.X. - However, if you are upgrading from a version earlier than 8.1.2, - see the release notes for 8.1.2. - + + The previous code mimicked SysV semaphores. + + - + - - Changes + + + Source Code Changes - - Remove security vulnerabilities that allowed connected users - to read backend memory (Tom) - - - The vulnerabilities involve suppressing the normal check that a SQL - function returns the data type it's declared to, and changing the - data type of a table column (CVE-2007-0555, CVE-2007-0556). These - errors can easily be exploited to cause a backend crash, and in - principle might be used to read database content that the user - should not be able to access. - + + Add GIN (Generalized + Inverted iNdex) index access method (Teodor, Oleg) + - - Fix rare bug wherein btree index page splits could fail - due to choosing an infeasible split point (Heikki Linnakangas) - + + Remove R-tree indexing (Tom) + + + + Rtree has been re-implemented using GiST. Among other + differences, this means that rtree indexes now have support + for crash recovery via write-ahead logging (WAL). + - - Improve VACUUM performance for databases with many tables (Tom) - + + Reduce libraries needlessly linked into the backend (Martijn + van Oosterhout, Tom) + - - Fix autovacuum to avoid leaving non-permanent transaction IDs in - non-connectable databases (Alvaro) - + + Add a configure flag to allow libedit to be preferred over + GNU readline (Bruce) + - - This bug affects the 8.1 branch only. - + + Use configure --with-libedit-preferred. + - - Fix for rare Assert() crash triggered by UNION (Tom) - + + Allow installation into directories containing spaces + (Peter) + - - Tighten security of multi-byte character processing for UTF8 sequences - over three bytes long (Tom) - + + Improve ability to relocate installation directories (Tom) + - - Fix bogus permission denied failures occurring on Windows - due to attempts to fsync already-deleted files (Magnus, Tom) - + + Add support for Solaris x86_64 using the + Solaris compiler (Pierre Girard, Theo + Schlossnagle, Bruce) + - - Fix possible crashes when an already-in-use PL/pgSQL function is - updated (Tom) - + + Add DTrace support (Robert Lor) + - - - - - - - Release 8.1.6 - - - Release date - 2007-01-08 - - - - This release contains a variety of fixes from 8.1.5. - - - - Migration to version 8.1.6 - - - A dump/restore is not required for those running 8.1.X. - However, if you are upgrading from a version earlier than 8.1.2, - see the release notes for 8.1.2. - - - - - - Changes - - - - Improve handling of getaddrinfo() on AIX (Tom) + Add PG_VERSION_NUM for use by third-party + applications wanting to test the backend version in C using > + and < comparisons (Bruce) + + - This fixes a problem with starting the statistics collector, - among other things. + Add XLOG_BLCKSZ as independent from BLCKSZ + (Mark Wong) - Fix pg_restore to handle a tar-format backup - that contains large objects (blobs) with comments (Tom) + Add LWLOCK_STATS define to report locking + activity (Tom) - - - Fix failed to re-find parent key errors in - VACUUM (Tom) - - - - - - Clean out pg_internal.init cache files during server - restart (Simon) - + + + Emit warnings for unknown configure options + (Martijn van Oosterhout) + + - - This avoids a hazard that the cache files might contain stale - data after PITR recovery. - - + + + Add server support for plugin libraries + that can be used for add-on tasks such as debugging and performance + measurement (Korry Douglas) + - - - Fix race condition for truncation of a large relation across a - gigabyte boundary by VACUUM (Tom) - - + + This consists of two features: a table of rendezvous + variables that allows separately-loaded shared libraries to + communicate, and a new configuration parameter local_preload_libraries + that allows libraries to be loaded into specific sessions without + explicit cooperation from the client application. This allows + external add-ons to implement features such as a PL/PgSQL debugger. + + - - - Fix bug causing needless deadlock errors on row-level locks (Tom) - - + + + Rename existing configuration parameter + preload_libraries to shared_preload_libraries + (Tom) + - - - Fix bugs affecting multi-gigabyte hash indexes (Tom) - - + + This was done for clarity in comparison to + local_preload_libraries. + + - Fix possible deadlock in Windows signal handling (Teodor) + Add new configuration parameter server_version_num + (Greg Sabino Mullane) + + + + This is like server_version, but is an + integer, e.g. 80200. This allows applications to + make version checks more easily. - Fix error when constructing an ARRAY[] made up of multiple - empty elements (Tom) + Add a configuration parameter seq_page_cost + (Tom) - Fix ecpg memory leak during connection (Michael) + Re-implement the regression test script as a C program + (Magnus, Tom) - Fix for Darwin (OS X) compilation (Tom) + Allow loadable modules to allocate shared memory and + lightweight locks (Marc Munro) - to_number() and to_char(numeric) - are now STABLE, not IMMUTABLE, for - new initdb installs (Tom) + Add automatic initialization and finalization of dynamically + loaded libraries (Ralf Engelschall, Tom) - This is because lc_numeric can potentially - change the output of these functions. + New functions + _PG_init() and _PG_fini() are + called if the library defines such symbols. Hence we no + longer need to specify an initialization function in + shared_preload_libraries; we can assume that + the library used the _PG_init() convention + instead. - Improve index usage of regular expressions that use parentheses (Tom) + Add PG_MODULE_MAGIC + header block to all shared object files (Martijn van + Oosterhout) - This improves psql \d performance also. + The magic block prevents version mismatches between loadable object + files and servers. - Update timezone database + Add shared library support for AIX (Laurenz Albe) + + - This affects Australian and Canadian daylight-savings rules in - particular. + New XML + documentation section (Bruce) - - + - - Release 8.1.5 + + Contrib Changes + - - Release date - 2006-10-16 - + + + Major tsearch2 improvements (Oleg, Teodor) + - - This release contains a variety of fixes from 8.1.4. - + - - Migration to version 8.1.5 + + + multibyte encoding support, including UTF8 + + + + + query rewriting support + + + + + improved ranking functions + + + + + thesaurus dictionary support + + + + + Ispell dictionaries now recognize MySpell + format, used by OpenOffice + + + + + GIN support + + - - A dump/restore is not required for those running 8.1.X. - However, if you are upgrading from a version earlier than 8.1.2, - see the release notes for 8.1.2. - + - + - - Changes + + + Add adminpack module containing Pgadmin administration + functions (Dave) + - -Disallow aggregate functions in UPDATE -commands, except within sub-SELECTs (Tom) -The behavior of such an aggregate was unpredictable, and in 8.1.X -could cause a crash, so it has been disabled. The SQL standard does not allow -this either. -Fix core dump when an untyped literal is taken as -ANYARRAY -Fix core dump in duration logging for extended query protocol -when a COMMIT or ROLLBACK is -executed -Fix mishandling of AFTER triggers when query contains a SQL -function returning multiple rows (Tom) -Fix ALTER TABLE ... TYPE to recheck -NOT NULL for USING clause (Tom) -Fix string_to_array() to handle overlapping - matches for the separator string -For example, string_to_array('123xx456xxx789', 'xx'). - -Fix to_timestamp() for -AM/PM formats (Bruce) -Fix autovacuum's calculation that decides whether - ANALYZE is needed (Alvaro) -Fix corner cases in pattern matching for - psql's \d commands -Fix index-corrupting bugs in /contrib/ltree - (Teodor) -Numerous robustness fixes in ecpg (Joachim -Wieland) -Fix backslash escaping in /contrib/dbmirror -Minor fixes in /contrib/dblink and /contrib/tsearch2 - -Efficiency improvements in hash tables and bitmap index scans -(Tom) -Fix instability of statistics collection on Windows (Tom, Andrew) -Fix statement_timeout to use the proper -units on Win32 (Bruce) -In previous Win32 8.1.X versions, the delay was off by a factor of -100. -Fixes for MSVC and Borland C++ -compilers (Hiroshi Saito) -Fixes for AIX and -Intel compilers (Tom) -Fix rare bug in continuous archiving (Tom) - + + These functions provide additional file system access + routines not present in the default PostgreSQL + server. + + - - + + + Add sslinfo module (Victor Wagner) + - - Release 8.1.4 + + Reports information about the current connection's SSL + certificate. + + - - Release date - 2006-05-23 - + + + Add pgrowlocks module (Tatsuo) + - - This release contains a variety of fixes from 8.1.3, - including patches for extremely serious security issues. - + + This shows row locking information for a specified table. + + - - Migration to version 8.1.4 + + + Add hstore module (Oleg, Teodor) + + - - A dump/restore is not required for those running 8.1.X. - However, if you are upgrading from a version earlier than 8.1.2, - see the release notes for 8.1.2. - + + + Add isn module, replacing isbn_issn (Jeremy Kronuz) + - - Full security against the SQL-injection attacks described in - CVE-2006-2313 and CVE-2006-2314 might require changes in application - code. If you have applications that embed untrustworthy strings - into SQL commands, you should examine them as soon as possible to - ensure that they are using recommended escaping techniques. In - most cases, applications should be using subroutines provided by - libraries or drivers (such as libpq's - PQescapeStringConn()) to perform string escaping, - rather than relying on ad hoc code to do it. - - + + This new implementation supports EAN13, UPC, + ISBN (books), ISMN (music), and + ISSN (serials). + + - - Changes + + + Add index information functions to pgstattuple (ITAGAKI Takahiro, + Satoshi Nagayasu) + + - -Change the server to reject invalidly-encoded multibyte -characters in all cases (Tatsuo, Tom) -While PostgreSQL has been moving in this direction for -some time, the checks are now applied uniformly to all encodings and all -textual input, and are now always errors not merely warnings. This change -defends against SQL-injection attacks of the type described in CVE-2006-2313. - + + + Add pg_freespacemap module to display free space map information + (Mark Kirkwood) + + -Reject unsafe uses of \' in string literals -As a server-side defense against SQL-injection attacks of the type -described in CVE-2006-2314, the server now only accepts '' and not -\' as a representation of ASCII single quote in SQL string -literals. By default, \' is rejected only when -client_encoding is set to a client-only encoding (SJIS, BIG5, GBK, -GB18030, or UHC), which is the scenario in which SQL injection is possible. -A new configuration parameter backslash_quote is available to -adjust this behavior when needed. Note that full security against -CVE-2006-2314 might require client-side changes; the purpose of -backslash_quote is in part to make it obvious that insecure -clients are insecure. - + + + pgcrypto now has all planned functionality (Marko Kreen) + + + + + Include iMath library in pgcrypto to have the public-key encryption + functions always available. + + + + + Add SHA224 algorithm that was missing in OpenBSD code. + + + + + Activate builtin code for SHA224/256/384/512 hashes on older + OpenSSL to have those algorithms always available. + + + + + New function gen_random_bytes() that returns cryptographically strong + randomness. Useful for generating encryption keys. + + + + + Remove digest_exists(), hmac_exists() and cipher_exists() functions. + + + + -Modify libpq's string-escaping routines to be -aware of encoding considerations and -standard_conforming_strings -This fixes libpq-using applications for the security -issues described in CVE-2006-2313 and CVE-2006-2314, and also future-proofs -them against the planned changeover to SQL-standard string literal syntax. -Applications that use multiple PostgreSQL connections -concurrently should migrate to PQescapeStringConn() and -PQescapeByteaConn() to ensure that escaping is done correctly -for the settings in use in each database connection. Applications that -do string escaping by hand should be modified to rely on library -routines instead. - + + + Improvements to cube module (Joshua Reich) + -Fix weak key selection in pgcrypto (Marko Kreen) -Errors in fortuna PRNG reseeding logic could cause a predictable -session key to be selected by pgp_sym_encrypt() in some cases. -This only affects non-OpenSSL-using builds. - + + New functions are cube(float[]), + cube(float[], float[]), and + cube_subset(cube, int4[]). + + -Fix some incorrect encoding conversion functions -win1251_to_iso, win866_to_iso, -euc_tw_to_big5, euc_tw_to_mic, -mic_to_euc_tw were all broken to varying -extents. - + + + Add async query capability to dblink (Kai Londenberg, + Joe Conway) + + -Clean up stray remaining uses of \' in strings -(Bruce, Jan) + + + New operators for array-subset comparisons (@>, + <@, &&) (Tom) + -Make autovacuum visible in pg_stat_activity -(Alvaro) + + Various contrib packages already had these operators for their + datatypes, but the naming wasn't consistent. We have now added + consistently named array-subset comparison operators to the core code + and all the contrib packages that have such functionality. + (The old names remain available, but are deprecated.) + + -Disable full_page_writes (Tom) -In certain cases, having full_page_writes off would cause -crash recovery to fail. A proper fix will appear in 8.2; for now it's just -disabled. - + + + Add uninstall scripts for all contrib packages that have install + scripts (David, Josh Drake) + + -Various planner fixes, particularly for bitmap index scans and -MIN/MAX optimization (Tom) + -Fix incorrect optimization in merge join (Tom) -Outer joins could sometimes emit multiple copies of unmatched rows. - + -Fix crash from using and modifying a plpgsql function in the -same transaction + + -Fix WAL replay for case where a B-Tree index has been -truncated + + Release 8.1.11 -Fix SIMILAR TO for patterns involving -| (Tom) + + Release date + 2008-01-07 + -Fix SELECT INTO and CREATE TABLE AS to -create tables in the default tablespace, not the base directory (Kris -Jurka) + + This release contains a variety of fixes from 8.1.10, + including fixes for significant security issues. + -Fix server to use custom DH SSL parameters correctly (Michael -Fuhr) - -Improve qsort performance (Dann Corbit) -Currently this code is only used on Solaris. - - -Fix for OS/X Bonjour on x86 systems (Ashley Clark) - -Fix various minor memory leaks - -Fix problem with password prompting on some Win32 systems -(Robert Kinberg) + + This is the last 8.1.X release for which the PostgreSQL + community will produce binary packages for Windows. + Windows users are encouraged to move to 8.2.X or later, + since there are Windows-specific fixes in 8.2.X that + are impractical to back-port. 8.1.X will continue to + be supported on other platforms. + -Improve pg_dump's handling of default values -for domains + + Migration to Version 8.1.11 -Fix pg_dumpall to handle identically-named -users and groups reasonably (only possible when dumping from a pre-8.1 server) -(Tom) -The user and group will be merged into a single role with -LOGIN permission. Formerly the merged role wouldn't have -LOGIN permission, making it unusable as a user. - + + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. + -Fix pg_restore -n to work as -documented (Tom) - + - - + + Changes - - Release 8.1.3 + - - Release date - 2006-02-14 - + + + Prevent functions in indexes from executing with the privileges of + the user running VACUUM, ANALYZE, etc (Tom) + + + + Functions used in index expressions and partial-index + predicates are evaluated whenever a new table entry is made. It has + long been understood that this poses a risk of trojan-horse code + execution if one modifies a table owned by an untrustworthy user. + (Note that triggers, defaults, check constraints, etc. pose the + same type of risk.) But functions in indexes pose extra danger + because they will be executed by routine maintenance operations + such as VACUUM FULL, which are commonly performed + automatically under a superuser account. For example, a nefarious user + can execute code with superuser privileges by setting up a + trojan-horse index definition and waiting for the next routine vacuum. + The fix arranges for standard maintenance operations + (including VACUUM, ANALYZE, REINDEX, + and CLUSTER) to execute as the table owner rather than + the calling user, using the same privilege-switching mechanism already + used for SECURITY DEFINER functions. To prevent bypassing + this security measure, execution of SET SESSION + AUTHORIZATION and SET ROLE is now forbidden within a + SECURITY DEFINER context. (CVE-2007-6600) + + - - This release contains a variety of fixes from 8.1.2, - including one very serious security issue. - + + + Repair assorted bugs in the regular-expression package (Tom, Will Drewry) + - - Migration to version 8.1.3 + + Suitably crafted regular-expression patterns could cause crashes, + infinite or near-infinite looping, and/or massive memory consumption, + all of which pose denial-of-service hazards for applications that + accept regex search patterns from untrustworthy sources. + (CVE-2007-4769, CVE-2007-4772, CVE-2007-6067) + + - - A dump/restore is not required for those running 8.1.X. - However, if you are upgrading from a version earlier than 8.1.2, - see the release notes for 8.1.2. - - + + + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) + - - Changes + + The fix that appeared for this in 8.1.10 was incomplete, as it plugged + the hole for only some dblink functions. (CVE-2007-6601, + CVE-2007-3278) + + - + + + Update time zone data files to tzdata release 2007k + (in particular, recent Argentina changes) (Tom) + + -Fix bug that allowed any logged-in user to SET -ROLE to any other database user id (CVE-2006-0553) -Due to inadequate validity checking, a user could exploit the special -case that SET ROLE normally uses to restore the previous role -setting after an error. This allowed ordinary users to acquire superuser -status, for example. -The escalation-of-privilege risk exists only in 8.1.0-8.1.2. -However, in all releases back to 7.3 there is a related bug in SET -SESSION AUTHORIZATION that allows unprivileged users to crash the server, -if it has been compiled with Asserts enabled (which is not the default). -Thanks to Akio Ishida for reporting this problem. - + + + Improve planner's handling of LIKE/regex estimation in non-C locales + (Tom) + + -Fix bug with row visibility logic in self-inserted -rows (Tom) -Under rare circumstances a row inserted by the current command -could be seen as already valid, when it should not be. Repairs bug -created in 8.0.4, 7.4.9, and 7.3.11 releases. - + + + Fix planner failure in some cases of WHERE false AND var IN + (SELECT ...) (Tom) + + -Fix race condition that could lead to file already -exists errors during pg_clog and pg_subtrans file creation -(Tom) + + + Preserve the tablespace of indexes that are + rebuilt by ALTER TABLE ... ALTER COLUMN TYPE (Tom) + + -Fix cases that could lead to crashes if a cache-invalidation -message arrives at just the wrong time (Tom) + + + Make archive recovery always start a new WAL timeline, rather than only + when a recovery stop time was used (Simon) + -Properly check DOMAIN constraints for -UNKNOWN parameters in prepared statements -(Neil) + + This avoids a corner-case risk of trying to overwrite an existing + archived copy of the last WAL segment, and seems simpler and cleaner + than the original definition. + + -Ensure ALTER COLUMN TYPE will process -FOREIGN KEY, UNIQUE, and PRIMARY KEY -constraints in the proper order (Nakano Yoshihisa) + + + Make VACUUM not use all of maintenance_work_mem + when the table is too small for it to be useful (Alvaro) + + -Fixes to allow restoring dumps that have cross-schema -references to custom operators or operator classes (Tom) + + + Fix potential crash in translate() when using a multibyte + database encoding (Tom) + + -Allow pg_restore to continue properly after a -COPY failure; formerly it tried to treat the remaining -COPY data as SQL commands (Stephen Frost) + + + Fix overflow in extract(epoch from interval) for intervals + exceeding 68 years (Tom) + + -Fix pg_ctl unregister crash -when the data directory is not specified (Magnus) + + + Fix PL/Perl to not fail when a UTF-8 regular expression is used + in a trusted function (Andrew) + + -Fix libpq PQprint HTML tags -(Christoph Zwerschke) + + + Fix PL/Perl to cope when platform's Perl defines type bool + as int rather than char (Tom) + -Fix ecpg crash on AMD64 and PPC -(Neil) + + While this could theoretically happen anywhere, no standard build of + Perl did things this way ... until Mac OS X 10.5. + + -Allow SETOF and %TYPE to be used -together in function result type declarations + + + Fix PL/Python to not crash on long exception messages (Alvaro) + + -Recover properly if error occurs during argument passing -in PL/python (Neil) + + + Fix pg_dump to correctly handle inheritance child tables + that have default expressions different from their parent's (Tom) + + -Fix memory leak in plperl_return_next -(Neil) + + + Fix libpq crash when PGPASSFILE refers + to a file that is not a plain file (Martin Pitt) + + -Fix PL/perl's handling of locales on -Win32 to match the backend (Andrew) + + + ecpg parser fixes (Michael) + + -Various optimizer fixes (Tom) + + + Make contrib/pgcrypto defend against + OpenSSL libraries that fail on keys longer than 128 + bits; which is the case at least on some Solaris versions (Marko Kreen) + + -Fix crash when log_min_messages is set to -DEBUG3 or above in postgresql.conf on Win32 -(Bruce) + + + Make contrib/tablefunc's crosstab() handle + NULL rowid as a category in its own right, rather than crashing (Joe) + + -Fix pgxs -L library path -specification for Win32, Cygwin, OS X, AIX (Bruce) + + + Fix tsvector and tsquery output routines to + escape backslashes correctly (Teodor, Bruce) + + -Check that SID is enabled while checking for Win32 admin -privileges (Magnus) + + + Fix crash of to_tsvector() on huge input strings (Teodor) + + -Properly reject out-of-range date inputs (Kris -Jurka) + + + Require a specific version of Autoconf to be used + when re-generating the configure script (Peter) + -Portability fix for testing presence of finite -and isinf during configure (Tom) + + This affects developers and packagers only. The change was made + to prevent accidental use of untested combinations of + Autoconf and PostgreSQL versions. + You can remove the version check if you really want to use a + different Autoconf version, but it's + your responsibility whether the result works or not. + + -Improve speed of COPY IN via libpq, by -avoiding a kernel call per data line (Alon Goldshuv) + -Improve speed of /contrib/tsearch2 index -creation (Tom) + + - + + Release 8.1.10 - - + + Release date + 2007-09-17 + - - Release 8.1.2 + + This release contains a variety of fixes from 8.1.9. + - - Release date - 2006-01-09 - + + Migration to Version 8.1.10 - This release contains a variety of fixes from 8.1.1. + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. - - Migration to version 8.1.2 - - - A dump/restore is not required for those running 8.1.X. - However, you might need to REINDEX indexes on textual - columns after updating, if you are affected by the locale or - plperl issues described below. - - + - - Changes + + Changes - + -Fix Windows code so that postmaster will continue rather -than exit if there is no more room in ShmemBackendArray (Magnus) -The previous behavior could lead to a denial-of-service situation if too -many connection requests arrive close together. This applies -only to the Windows port. + + + Prevent index corruption when a transaction inserts rows and + then aborts close to the end of a concurrent VACUUM + on the same table (Tom) + + -Fix bug introduced in 8.0 that could allow ReadBuffer -to return an already-used page as new, potentially causing loss of -recently-committed data (Tom) + + + Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) + + -Fix for protocol-level Describe messages issued -outside a transaction or in a failed transaction (Tom) + + + Allow the interval data type to accept input consisting only of + milliseconds or microseconds (Neil) + + -Fix character string comparison for locales that consider -different character combinations as equal, such as Hungarian (Tom) -This might require REINDEX to fix existing indexes on -textual columns. + + + Speed up rtree index insertion (Teodor) + + -Set locale environment variables during postmaster startup -to ensure that plperl won't change the locale later -This fixes a problem that occurred if the postmaster was -started with environment variables specifying a different locale than what -initdb had been told. Under these conditions, any use of -plperl was likely to lead to corrupt indexes. You might need -REINDEX to fix existing indexes on -textual columns if this has happened to you. + + + Fix excessive logging of SSL error messages (Tom) + + -Allow more flexible relocation of installation -directories (Tom) -Previous releases supported relocation only if all installation -directory paths were the same except for the last component. + + + Fix logging so that log messages are never interleaved when using + the syslogger process (Andrew) + + -Prevent crashes caused by the use of -ISO-8859-5 and ISO-8859-9 encodings -(Tatsuo) + + + Fix crash when log_min_error_statement logging runs out + of memory (Tom) + + -Fix longstanding bug in strpos() and regular expression -handling in certain rarely used Asian multi-byte character sets (Tatsuo) - + + + Fix incorrect handling of some foreign-key corner cases (Tom) + + -Fix bug where COPY CSV mode considered any -\. to terminate the copy data The new code -requires \. to appear alone on a line, as per -documentation. + + + Prevent REINDEX and CLUSTER from failing + due to attempting to process temporary tables of other sessions (Alvaro) + + -Make COPY CSV mode quote a literal data value of -\. to ensure it cannot be interpreted as the -end-of-data marker (Bruce) + + + Update the time zone database rules, particularly New Zealand's upcoming changes (Tom) + + -Various fixes for functions returning RECORDs -(Tom) + + + Windows socket improvements (Magnus) + + -Fix processing of postgresql.conf so a -final line with no newline is processed properly (Tom) - + + + Suppress timezone name (%Z) in log timestamps on Windows + because of possible encoding mismatches (Tom) + + -Fix bug in /contrib/pgcrypto gen_salt, -which caused it not to use all available salt space for MD5 and -XDES algorithms (Marko Kreen, Solar Designer) -Salts for Blowfish and standard DES are unaffected. + + + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) + + -Fix autovacuum crash when processing expression indexes - + -Fix /contrib/dblink to throw an error, -rather than crashing, when the number of columns specified is different from -what's actually returned by the query (Joe) + + - + + Release 8.1.9 - - + + Release date + 2007-04-23 + - - Release 8.1.1 + + This release contains a variety of fixes from 8.1.8, + including a security fix. + - - Release date - 2005-12-12 - + + Migration to Version 8.1.9 - This release contains a variety of fixes from 8.1.0. + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. - - Migration to version 8.1.1 - - - A dump/restore is not required for those running 8.1.X. - - - - - Changes + - -Fix incorrect optimizations of outer-join conditions -(Tom) + + Changes -Fix problems with wrong reported column names in cases -involving sub-selects flattened by the optimizer (Tom) + -Fix update failures in scenarios involving CHECK constraints, -toasted columns, and indexes (Tom) + + + Support explicit placement of the temporary-table schema within + search_path, and disable searching it for functions + and operators (Tom) + + + This is needed to allow a security-definer function to set a + truly secure value of search_path. Without it, + an unprivileged SQL user can use temporary objects to execute code + with the privileges of the security-definer function (CVE-2007-2138). + See CREATE FUNCTION for more information. + + -Fix bgwriter problems after recovering from errors -(Tom) - -The background writer was found to leak buffer pins after write errors. -While not fatal in itself, this might lead to mysterious blockages of -later VACUUM commands. - - + + + /contrib/tsearch2 crash fixes (Teodor) + + -Prevent failure if client sends Bind protocol message -when current transaction is already aborted + + + Require COMMIT PREPARED to be executed in the same + database as the transaction was prepared in (Heikki) + + -/contrib/tsearch2 and /contrib/ltree -fixes (Teodor) + + + Fix potential-data-corruption bug in how VACUUM FULL handles + UPDATE chains (Tom, Pavan Deolasee) + + -Fix problems with translated error messages in -languages that require word reordering, such as Turkish; also problems with -unexpected truncation of output strings and wrong display of the smallest -possible bigint value (Andrew, Tom) - -These problems only appeared on platforms that were using our -port/snprintf.c code, which includes BSD variants if ---enable-nls was given, and perhaps others. In addition, -a different form of the translated-error-message problem could appear -on Windows depending on which version of libintl was used. - + + + Planner fixes, including improving outer join and bitmap scan + selection logic (Tom) + + -Re-allow AM/PM, HH, -HH12, and D format specifiers for -to_char(time) and to_char(interval). -(to_char(interval) should probably use -HH24.) (Bruce) + + + Fix PANIC during enlargement of a hash index (bug introduced in 8.1.6) + (Tom) + + -AIX, HPUX, and MSVC compile fixes (Tom, Hiroshi -Saito) + + + Fix POSIX-style timezone specs to follow new USA DST rules (Tom) + + -Optimizer improvements (Tom) + -Retry file reads and writes after Windows -NO_SYSTEM_RESOURCES error (Qingqing Zhou) + + -Prevent autovacuum from crashing during -ANALYZE of expression index (Alvaro) + + Release 8.1.8 -Fix problems with ON COMMIT DELETE ROWS temp -tables + + Release date + 2007-02-07 + -Fix problems when a trigger alters the output of a SELECT -DISTINCT query + + This release contains one fix from 8.1.7. + -Add 8.1.0 release note item on how to migrate invalid -UTF-8 byte sequences (Paul Lindner) - + + Migration to Version 8.1.8 - - + + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. + - - Release 8.1 + - - Release date - 2005-11-08 - + + Changes - - Overview + + - Major changes in this release: + Remove overly-restrictive check for type length in constraints and + functional indexes(Tom) + - + - - - Improve concurrent access to the shared buffer cache (Tom) - + + - - - Access to the shared buffer cache was identified as a - significant scalability problem, particularly on multi-CPU - systems. In this release, the way that locking is done in the - buffer manager has been overhauled to reduce lock contention - and improve scalability. The buffer manager has also been - changed to use a clock sweep replacement - policy. - - - + + Release 8.1.7 - - - Allow index scans to use an intermediate in-memory bitmap (Tom) - + + Release date + 2007-02-05 + - - - In previous releases, only a single index could be used to do - lookups on a table. With this feature, if a query has - WHERE tab.col1 = 4 and tab.col2 = 9, and there is - no multicolumn index on col1 and col2, - but there is an index on col1 and another on - col2, it is possible to search both indexes and - combine the results in memory, then do heap fetches for only - the rows matching both the col1 and - col2 restrictions. This is very useful in - environments that have a lot of unstructured queries where it - is impossible to create indexes that match all possible access - conditions. Bitmap scans are useful even with a single index, - as they reduce the amount of random access needed; a bitmap - index scan is efficient for retrieving fairly large fractions - of the complete table, whereas plain index scans are not. - - - + + This release contains a variety of fixes from 8.1.6, including + a security fix. + - - - Add two-phase commit (Heikki Linnakangas, Alvaro, Tom) - + + Migration to Version 8.1.7 - - - Two-phase commit allows transactions to be "prepared" on several - computers, and once all computers have successfully prepared - their transactions (none failed), all transactions can be - committed. Even if a machine crashes after a prepare, the - prepared transaction can be committed after the machine is - restarted. New syntax includes PREPARE TRANSACTION and - COMMIT/ROLLBACK PREPARED. A new system view - pg_prepared_xacts has also been added. - - - + + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. + - - - Create a new role system that replaces users and groups - (Stephen Frost) - + - - - Roles are a combination of users and groups. Like users, they - can have login capability, and like groups, a role can have - other roles as members. Roles basically remove the distinction - between users and groups. For example, a role can: - + + Changes - + - - - Have login capability (optionally) - - + + + Remove security vulnerabilities that allowed connected users + to read backend memory (Tom) + + + The vulnerabilities involve suppressing the normal check that a SQL + function returns the data type it's declared to, and changing the + data type of a table column (CVE-2007-0555, CVE-2007-0556). These + errors can easily be exploited to cause a backend crash, and in + principle might be used to read database content that the user + should not be able to access. + + - - - Own objects - - + + + Fix rare bug wherein btree index page splits could fail + due to choosing an infeasible split point (Heikki Linnakangas) + + - - - Hold access permissions for database objects - - - - - - Inherit permissions from other roles it is a member of - - - - - - Once a user logs into a role, she obtains capabilities of - the login role plus any inherited roles, and can use - SET ROLE to switch to other roles she is a member of. - This feature is a generalization of the SQL standard's concept of - roles. - This change also replaces pg_shadow and - pg_group by new role-capable catalogs - pg_authid and pg_auth_members. The old - tables are redefined as read-only views on the new role tables. - - - - - - - Automatically use indexes for MIN() and - MAX() (Tom) - - - - - In previous releases, the only way to use an index for - MIN() or MAX() was to rewrite the - query as SELECT col FROM tab ORDER BY col LIMIT 1. - Index usage now happens automatically. - - - - - - - Move /contrib/pg_autovacuum into the main server - (Alvaro) - - - - - Integrating autovacuum into the server allows it to be - automatically started and stopped in sync with the database - server, and allows autovacuum to be configured from - postgresql.conf. - - - - - - - Add shared row level locks using SELECT ... FOR SHARE - (Alvaro) - - - - - While PostgreSQL's MVCC locking - allows SELECT to never be blocked by writers and - therefore does not need shared row locks for typical operations, - shared locks are useful for applications that require shared row - locking. In particular this reduces the locking requirements - imposed by referential integrity checks. - - - - - - - Add dependencies on shared objects, specifically roles - (Alvaro) - - - - - This extension of the dependency mechanism prevents roles from - being dropped while there are still database objects they own. - Formerly it was possible to accidentally orphan objects by - deleting their owner. While this could be recovered from, it - was messy and unpleasant. - - - - - - - Improve performance for partitioned tables (Simon) - + + + Improve VACUUM performance for databases with many tables (Tom) + + - - - The new constraint_exclusion configuration - parameter avoids lookups on child tables where constraints indicate - that no matching rows exist in the child table. - - - This allows for a basic type of table partitioning. If child tables - store separate key ranges and this is enforced using appropriate - CHECK constraints, the optimizer will skip child - table accesses when the constraint guarantees no matching rows - exist in the child table. - - - + + + Fix autovacuum to avoid leaving non-permanent transaction IDs in + non-connectable databases (Alvaro) + - - + + This bug affects the 8.1 branch only. + + - - Migration to version 8.1 + + + Fix for rare Assert() crash triggered by UNION (Tom) + + + - A dump/restore using pg_dump is required - for those wishing to migrate data from any previous release. + Tighten security of multi-byte character processing for UTF8 sequences + over three bytes long (Tom) + + - The 8.0 release announced that the to_char() function - for intervals would be removed in 8.1. However, since no better API - has been suggested, to_char(interval) has been enhanced in - 8.1 and will remain in the server. + Fix bogus permission denied failures occurring on Windows + due to attempts to fsync already-deleted files (Magnus, Tom) + + - Observe the following incompatibilities: + Fix possible crashes when an already-in-use PL/pgSQL function is + updated (Tom) + - + - - - add_missing_from is now false by default (Neil) - - - By default, we now generate an error if a table is used in a query - without a FROM reference. The old behavior is still - available, but the parameter must be set to 'true' to obtain it. - + + - - It might be necessary to set add_missing_from to true - in order to load an existing dump file, if the dump contains any - views or rules created using the implicit-FROM syntax. - This should be a one-time annoyance, because - PostgreSQL 8.1 will convert - such views and rules to standard explicit-FROM syntax. - Subsequent dumps will therefore not have the problem. - - + + Release 8.1.6 - - - Cause input of a zero-length string ('') for - float4/float8/oid - to throw an error, rather than treating it as a zero (Neil) - - - This change is consistent with the current handling of - zero-length strings for integers. The schedule for this change - was announced in 8.0. - - + + Release date + 2007-01-08 + - - - default_with_oids is now false by default (Neil) - - - With this option set to false, user-created tables no longer - have an OID column unless WITH OIDS is specified in - CREATE TABLE. Though OIDs have existed in all - releases of PostgreSQL, their use is limited - because they are only four bytes long and the counter is shared - across all installed databases. The preferred way of uniquely - identifying rows is via sequences and the SERIAL type, - which have been supported since PostgreSQL 6.4. - - + + This release contains a variety of fixes from 8.1.5. + - - - Add E'' syntax so eventually ordinary strings can - treat backslashes literally (Bruce) - - - Currently PostgreSQL processes a - backslash in a string literal as introducing a special escape sequence, - e.g. \n or \010. - While this allows easy entry of special values, it is - nonstandard and makes porting of applications from other - databases more difficult. For this reason, the - PostgreSQL project is planning to - remove the special meaning of backslashes in strings. For - backward compatibility and for users who want special backslash - processing, a new string syntax has been created. This new string - syntax is formed by writing an E immediately preceding the - single quote that starts the string, e.g. E'hi\n'. While - this release does not change the handling of backslashes in strings, it - does add new configuration parameters to help users migrate applications - for future releases: - - + + Migration to Version 8.1.6 - - - standard_conforming_strings — does this release - treat backslashes literally in ordinary strings? - - + + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. + - - - escape_string_warning — warn about backslashes in - ordinary (non-E) strings - - + - + + Changes - - The standard_conforming_strings value is read-only. - Applications can retrieve the value to know how backslashes are - processed. (Presence of the parameter can also be taken as an - indication that E'' string syntax is supported.) - In a future release, standard_conforming_strings - will be true, meaning backslashes will be treated literally in - non-E strings. To prepare for this change, use E'' - strings in places that need special backslash processing, and - turn on escape_string_warning to find additional - strings that need to be converted to use E''. - Also, use two single-quotes ('') to embed a literal - single-quote in a string, rather than the - PostgreSQL-supported syntax of - backslash single-quote (\'). The former is - standards-conforming and does not require the use of the - E'' string syntax. You can also use the - $$ string syntax, which does not treat backslashes - specially. - - + - - - Make REINDEX DATABASE reindex all indexes in the - database (Tom) - - - Formerly, REINDEX DATABASE reindexed only - system tables. This new behavior seems more intuitive. A new - command REINDEX SYSTEM provides the old functionality - of reindexing just the system tables. - - + + + Improve handling of getaddrinfo() on AIX (Tom) + - - - Read-only large object descriptors now obey MVCC snapshot semantics - - - When a large object is opened with INV_READ (and not - INV_WRITE), the data read from the descriptor will now - reflect a snapshot of the large object's state at the - time of the transaction snapshot in use by the query that called - lo_open(). To obtain the old behavior of always - returning the latest committed data, include INV_WRITE - in the mode flags for lo_open(). - - + + This fixes a problem with starting the statistics collector, + among other things. + + - - - Add proper dependencies for arguments of sequence functions (Tom) - - - In previous releases, sequence names passed to nextval(), - currval(), and setval() were stored as - simple text strings, meaning that renaming or dropping a - sequence used in a DEFAULT clause made the clause - invalid. This release stores all newly-created sequence function - arguments as internal OIDs, allowing them to track sequence - renaming, and adding dependency information that prevents - improper sequence removal. It also makes such DEFAULT - clauses immune to schema renaming and search path changes. - - - Some applications might rely on the old behavior of - run-time lookup for sequence names. This can still be done by - explicitly casting the argument to text, for example - nextval('myseq'::text). - - - Pre-8.1 database dumps loaded into 8.1 will use the old text-based - representation and therefore will not have the features of - OID-stored arguments. However, it is possible to update a - database containing text-based DEFAULT clauses. - First, save this query into a file, such as fixseq.sql: - -SELECT 'ALTER TABLE ' || - pg_catalog.quote_ident(n.nspname) || '.' || - pg_catalog.quote_ident(c.relname) || - ' ALTER COLUMN ' || pg_catalog.quote_ident(a.attname) || - ' SET DEFAULT ' || - regexp_replace(d.adsrc, - $$val\(\(('[^']*')::text\)::regclass$$, - $$val(\1$$, - 'g') || - ';' -FROM pg_namespace n, pg_class c, pg_attribute a, pg_attrdef d -WHERE n.oid = c.relnamespace AND - c.oid = a.attrelid AND - a.attrelid = d.adrelid AND - a.attnum = d.adnum AND - d.adsrc ~ $$val\(\('[^']*'::text\)::regclass$$; - - Next, run the query against a database to find what - adjustments are required, like this for database db1: - -psql -t -f fixseq.sql db1 - - This will show the ALTER TABLE commands needed to - convert the database to the newer OID-based representation. - If the commands look reasonable, run this to update the database: - -psql -t -f fixseq.sql db1 | psql -e db1 - - This process must be repeated in each database to be updated. - - + + + Fix pg_restore to handle a tar-format backup + that contains large objects (blobs) with comments (Tom) + + - In psql, treat unquoted - \{digit}+ sequences as octal (Bruce) - - - In previous releases, \{digit}+ sequences were - treated as decimal, and only \0{digit}+ were treated - as octal. This change was made for consistency. + Fix failed to re-find parent key errors in + VACUUM (Tom) - Remove grammar productions for prefix and postfix % - and ^ operators - (Tom) - - - These have never been documented and complicated the use of the - modulus operator (%) with negative numbers. + Clean out pg_internal.init cache files during server + restart (Simon) - - - Make &< and &> for polygons - consistent with the box "over" operators (Tom) + This avoids a hazard that the cache files might contain stale + data after PITR recovery. - CREATE LANGUAGE can ignore the provided arguments - in favor of information from pg_pltemplate - (Tom) - - - A new system catalog pg_pltemplate has been defined - to carry information about the preferred definitions of procedural - languages (such as whether they have validator functions). When - an entry exists in this catalog for the language being created, - CREATE LANGUAGE will ignore all its parameters except the - language name and instead use the catalog information. This measure - was taken because of increasing problems with obsolete language - definitions being loaded by old dump files. As of 8.1, - pg_dump will dump procedural language definitions as - just CREATE LANGUAGE name, relying - on a template entry to exist at load time. We expect this will be a - more future-proof representation. + Fix race condition for truncation of a large relation across a + gigabyte boundary by VACUUM (Tom) - Make pg_cancel_backend(int) return a - boolean rather than an integer (Neil) + Fix bug causing needless deadlock errors on row-level locks (Tom) - Some users are having problems loading UTF-8 data into 8.1.X. - This is because previous versions allowed invalid UTF-8 byte - sequences to be entered into the database, and this release - properly accepts only valid UTF-8 sequences. One way to correct a - dumpfile is to run the command iconv -c -f UTF-8 -t - UTF-8 -o cleanfile.sql dumpfile.sql. The -c option - removes invalid character sequences. A diff of the two files will - show the sequences that are invalid. iconv reads the - entire input file into memory so it might be necessary to use - split to break up the dump into multiple smaller - files for processing. + Fix bugs affecting multi-gigabyte hash indexes (Tom) - - + + + Fix possible deadlock in Windows signal handling (Teodor) + + - - Additional Changes + + + Fix error when constructing an ARRAY[] made up of multiple + empty elements (Tom) + + - - Below you will find a detailed account of the additional changes - between PostgreSQL 8.1 and the - previous major release. - + + + Fix ecpg memory leak during connection (Michael) + + - - Performance Improvements - + + + Fix for Darwin (OS X) compilation (Tom) + + - - - Improve GiST and R-tree index performance (Neil) - - + + + to_number() and to_char(numeric) + are now STABLE, not IMMUTABLE, for + new initdb installs (Tom) + - - - Improve the optimizer, including auto-resizing of hash joins - (Tom) - - + + This is because lc_numeric can potentially + change the output of these functions. + + - - - Overhaul internal API in several areas - - + + + Improve index usage of regular expressions that use parentheses (Tom) + - - - Change WAL record CRCs from 64-bit to 32-bit (Tom) - - - We determined that the extra cost of computing 64-bit CRCs was - significant, and the gain in reliability too marginal to justify it. - - + + This improves psql \d performance also. + + - - - Prevent writing large empty gaps in WAL pages (Tom) - - + + + Update timezone database + - - - Improve spinlock behavior on SMP machines, particularly Opterons (Tom) - - + + This affects Australian and Canadian daylight-savings rules in + particular. + + - - - Allow nonconsecutive index columns to be used in a multicolumn - index (Tom) - - - For example, this allows an index on columns a,b,c to be used in - a query with WHERE a = 4 and c = 10. - - + - - - Skip WAL logging for CREATE TABLE AS / - SELECT INTO (Simon) - - - Since a crash during CREATE TABLE AS would cause the - table to be dropped during recovery, there is no reason to WAL - log as the table is loaded. (Logging still happens if WAL - archiving is enabled, however.) - - + + - - - Allow concurrent GiST index access (Teodor, Oleg) - - + + Release 8.1.5 - - - Add configuration parameter full_page_writes to - control writing full pages to WAL (Bruce) - - - To prevent partial disk writes from corrupting the database, - PostgreSQL writes a complete copy of - each database disk page to WAL the first time it is modified - after a checkpoint. This option turns off that functionality for more - speed. This is safe to use with battery-backed disk caches where - partial page writes cannot happen. - - + + Release date + 2006-10-16 + - - - Use O_DIRECT if available when using - O_SYNC for wal_sync_method - (Itagaki Takahiro) - - - O_DIRECT causes disk writes to bypass the kernel - cache, and for WAL writes, this improves performance. - - + + This release contains a variety of fixes from 8.1.4. + - - - Improve COPY FROM performance (Alon Goldshuv) - - - This was accomplished by reading COPY input in - larger chunks, rather than character by character. - - + + Migration to Version 8.1.5 - - - Improve the performance of COUNT(), - SUM, AVG(), - STDDEV(), and - VARIANCE() (Neil, Tom) - - - - + + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. + - - Server Changes - + - - - Prevent problems due to transaction ID (XID) wraparound (Tom) - - - The server will now warn when the transaction counter approaches - the wraparound point. If the counter becomes too close to wraparound, - the server will stop accepting queries. This ensures that data is - not lost before needed vacuuming is performed. - - + + Changes - - - Fix problems with object IDs (OIDs) conflicting with existing system - objects after the OID counter has wrapped around (Tom) - - + +Disallow aggregate functions in UPDATE +commands, except within sub-SELECTs (Tom) +The behavior of such an aggregate was unpredictable, and in 8.1.X +could cause a crash, so it has been disabled. The SQL standard does not allow +this either. +Fix core dump when an untyped literal is taken as +ANYARRAY +Fix core dump in duration logging for extended query protocol +when a COMMIT or ROLLBACK is +executed +Fix mishandling of AFTER triggers when query contains a SQL +function returning multiple rows (Tom) +Fix ALTER TABLE ... TYPE to recheck +NOT NULL for USING clause (Tom) +Fix string_to_array() to handle overlapping + matches for the separator string +For example, string_to_array('123xx456xxx789', 'xx'). + +Fix to_timestamp() for +AM/PM formats (Bruce) +Fix autovacuum's calculation that decides whether + ANALYZE is needed (Alvaro) +Fix corner cases in pattern matching for + psql's \d commands +Fix index-corrupting bugs in /contrib/ltree + (Teodor) +Numerous robustness fixes in ecpg (Joachim +Wieland) +Fix backslash escaping in /contrib/dbmirror +Minor fixes in /contrib/dblink and /contrib/tsearch2 + +Efficiency improvements in hash tables and bitmap index scans +(Tom) +Fix instability of statistics collection on Windows (Tom, Andrew) +Fix statement_timeout to use the proper +units on Win32 (Bruce) +In previous Win32 8.1.X versions, the delay was off by a factor of +100. +Fixes for MSVC and Borland C++ +compilers (Hiroshi Saito) +Fixes for AIX and +Intel compilers (Tom) +Fix rare bug in continuous archiving (Tom) + - - - Add warning about the need to increase - max_fsm_relations and max_fsm_pages - during VACUUM (Ron Mayer) - - + + - - - Add temp_buffers configuration parameter to allow - users to determine the size of the local buffer area for - temporary table access (Tom) - - + + Release 8.1.4 - - - Add session start time and client IP address to - pg_stat_activity (Magnus) - - + + Release date + 2006-05-23 + - - - Adjust pg_stat views for bitmap scans (Tom) - - - The meanings of some of the fields have changed slightly. - - + + This release contains a variety of fixes from 8.1.3, + including patches for extremely serious security issues. + - - - Enhance pg_locks view (Tom) - - + + Migration to Version 8.1.4 - - - Log queries for client-side PREPARE and - EXECUTE (Simon) - - + + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. + - - - Allow Kerberos name and user name case sensitivity to be - specified in postgresql.conf (Magnus) - - + + Full security against the SQL-injection attacks described in + CVE-2006-2313 and CVE-2006-2314 might require changes in application + code. If you have applications that embed untrustworthy strings + into SQL commands, you should examine them as soon as possible to + ensure that they are using recommended escaping techniques. In + most cases, applications should be using subroutines provided by + libraries or drivers (such as libpq's + PQescapeStringConn()) to perform string escaping, + rather than relying on ad hoc code to do it. + + - - - Add configuration parameter krb_server_hostname so - that the server host name can be specified as part of service - principal (Todd Kover) - - - If not set, any service principal matching an entry in the - keytab can be used. This is new Kerberos matching behavior in - this release. - - + + Changes - - - Add log_line_prefix options for millisecond - timestamps (%m) and remote host (%h) (Ed - L.) - - + +Change the server to reject invalidly-encoded multibyte +characters in all cases (Tatsuo, Tom) +While PostgreSQL has been moving in this direction for +some time, the checks are now applied uniformly to all encodings and all +textual input, and are now always errors not merely warnings. This change +defends against SQL-injection attacks of the type described in CVE-2006-2313. + - - - Add WAL logging for GiST indexes (Teodor, Oleg) - - - GiST indexes are now safe for crash and point-in-time recovery. - - +Reject unsafe uses of \' in string literals +As a server-side defense against SQL-injection attacks of the type +described in CVE-2006-2314, the server now only accepts '' and not +\' as a representation of ASCII single quote in SQL string +literals. By default, \' is rejected only when +client_encoding is set to a client-only encoding (SJIS, BIG5, GBK, +GB18030, or UHC), which is the scenario in which SQL injection is possible. +A new configuration parameter backslash_quote is available to +adjust this behavior when needed. Note that full security against +CVE-2006-2314 might require client-side changes; the purpose of +backslash_quote is in part to make it obvious that insecure +clients are insecure. + - - - Remove old *.backup files when we do - pg_stop_backup() (Bruce) - - - This prevents a large number of *.backup files from - existing in pg_xlog/. - - +Modify libpq's string-escaping routines to be +aware of encoding considerations and +standard_conforming_strings +This fixes libpq-using applications for the security +issues described in CVE-2006-2313 and CVE-2006-2314, and also future-proofs +them against the planned changeover to SQL-standard string literal syntax. +Applications that use multiple PostgreSQL connections +concurrently should migrate to PQescapeStringConn() and +PQescapeByteaConn() to ensure that escaping is done correctly +for the settings in use in each database connection. Applications that +do string escaping by hand should be modified to rely on library +routines instead. + - - - Add configuration parameters to control TCP/IP keep-alive - times for idle, interval, and count (Oliver Jowett) - +Fix weak key selection in pgcrypto (Marko Kreen) +Errors in fortuna PRNG reseeding logic could cause a predictable +session key to be selected by pgp_sym_encrypt() in some cases. +This only affects non-OpenSSL-using builds. + - - These values can be changed to allow more rapid detection of - lost client connections. - - +Fix some incorrect encoding conversion functions +win1251_to_iso, win866_to_iso, +euc_tw_to_big5, euc_tw_to_mic, +mic_to_euc_tw were all broken to varying +extents. + - - - Add per-user and per-database connection limits (Petr Jelinek) - - - Using ALTER USER and ALTER DATABASE, - limits can now be enforced on the maximum number of sessions that - can concurrently connect as a specific user or to a specific database. - Setting the limit to zero disables user or database connections. - - +Clean up stray remaining uses of \' in strings +(Bruce, Jan) - - - Allow more than two gigabytes of shared memory and per-backend - work memory on 64-bit machines (Koichi Suzuki) - - +Make autovacuum visible in pg_stat_activity +(Alvaro) - - - New system catalog pg_pltemplate allows overriding - obsolete procedural-language definitions in dump files (Tom) - - +Disable full_page_writes (Tom) +In certain cases, having full_page_writes off would cause +crash recovery to fail. A proper fix will appear in 8.2; for now it's just +disabled. + - - +Various planner fixes, particularly for bitmap index scans and +MIN/MAX optimization (Tom) +Fix incorrect optimization in merge join (Tom) +Outer joins could sometimes emit multiple copies of unmatched rows. + - - Query Changes - +Fix crash from using and modifying a plpgsql function in the +same transaction - - - Add temporary views (Koju Iijima, Neil) - - +Fix WAL replay for case where a B-Tree index has been +truncated - - - Fix HAVING without any aggregate functions or - GROUP BY so that the query returns a single group (Tom) - - - Previously, such a case would treat the HAVING - clause the same as a WHERE clause. This was not per spec. - - +Fix SIMILAR TO for patterns involving +| (Tom) - - - Add USING clause to allow additional tables to be - specified to DELETE (Euler Taveira de Oliveira, Neil) - - - In prior releases, there was no clear method for specifying - additional tables to be used for joins in a DELETE - statement. UPDATE already has a FROM - clause for this purpose. - - +Fix SELECT INTO and CREATE TABLE AS to +create tables in the default tablespace, not the base directory (Kris +Jurka) - - - Add support for \x hex escapes in backend and ecpg - strings (Bruce) - - - This is just like the standard C \x escape syntax. - Octal escapes were already supported. - - +Fix server to use custom DH SSL parameters correctly (Michael +Fuhr) - - - Add BETWEEN SYMMETRIC query syntax (Pavel Stehule) - - - This feature allows BETWEEN comparisons without - requiring the first value to be less than the second. For - example, 2 BETWEEN [ASYMMETRIC] 3 AND 1 returns - false, while 2 BETWEEN SYMMETRIC 3 AND 1 returns - true. BETWEEN ASYMMETRIC was already supported. - - +Improve qsort performance (Dann Corbit) +Currently this code is only used on Solaris. + - - - Add NOWAIT option to SELECT ... FOR - UPDATE/SHARE (Hans-Juergen Schoenig) - - - While the statement_timeout configuration - parameter allows a query taking more than a certain amount of - time to be cancelled, the NOWAIT option allows a - query to be canceled as soon as a SELECT ... FOR - UPDATE/SHARE command cannot immediately acquire a row lock. - - - - +Fix for OS/X Bonjour on x86 systems (Ashley Clark) +Fix various minor memory leaks - - Object Manipulation Changes - +Fix problem with password prompting on some Win32 systems +(Robert Kinberg) - - - Track dependencies of shared objects (Alvaro) - - - PostgreSQL allows global tables - (users, databases, tablespaces) to reference information in - multiple databases. This addition adds dependency information - for global tables, so, for example, user ownership can be - tracked across databases, so a user who owns something in any - database can no longer be removed. Dependency tracking already - existed for database-local objects. - - +Improve pg_dump's handling of default values +for domains - - - Allow limited ALTER OWNER commands to be performed - by the object owner (Stephen Frost) - - - Prior releases allowed only superusers to change object owners. - Now, ownership can be transferred if the user executing the command - owns the object and would be able to create it as the new owner - (that is, the user is a member of the new owning role and that role - has the CREATE permission that would be needed to create the object - afresh). - - +Fix pg_dumpall to handle identically-named +users and groups reasonably (only possible when dumping from a pre-8.1 server) +(Tom) +The user and group will be merged into a single role with +LOGIN permission. Formerly the merged role wouldn't have +LOGIN permission, making it unusable as a user. + - - - Add ALTER object SET SCHEMA capability - for some object types (tables, functions, types) (Bernd Helmle) - - - This allows objects to be moved to different schemas. - - +Fix pg_restore -n to work as +documented (Tom) + - - - Add ALTER TABLE ENABLE/DISABLE TRIGGER to - disable triggers (Satoshi Nagayasu) - - + + - - + + Release 8.1.3 + + Release date + 2006-02-14 + - - Utility Command Changes - + + This release contains a variety of fixes from 8.1.2, + including one very serious security issue. + - - - Allow TRUNCATE to truncate multiple tables in a - single command (Alvaro) - - - Because of referential integrity checks, it is not allowed to - truncate a table that is part of a referential integrity - constraint. Using this new functionality, TRUNCATE - can be used to truncate such tables, if both tables involved in - a referential integrity constraint are truncated in a single - TRUNCATE command. - - + + Migration to Version 8.1.3 - - - Properly process carriage returns and line feeds in - COPY CSV mode (Andrew) - - - In release 8.0, carriage returns and line feeds in CSV - COPY TO were processed in an inconsistent manner. (This was - documented on the TODO list.) - - + + A dump/restore is not required for those running 8.1.X. + However, if you are upgrading from a version earlier than 8.1.2, + see the release notes for 8.1.2. + + - - - Add COPY WITH CSV HEADER to allow a header line as - the first line in COPY (Andrew) - - - This allows handling of the common CSV usage of - placing the column names on the first line of the data file. For - COPY TO, the first line contains the column names, - and for COPY FROM, the first line is ignored. - - + + Changes - - - On Windows, display better sub-second precision in - EXPLAIN ANALYZE (Magnus) - - + - - - Add trigger duration display to EXPLAIN ANALYZE - (Tom) - - - Prior releases included trigger execution time as part of the - total execution time, but did not show it separately. It is now - possible to see how much time is spent in each trigger. - - +Fix bug that allowed any logged-in user to SET +ROLE to any other database user id (CVE-2006-0553) +Due to inadequate validity checking, a user could exploit the special +case that SET ROLE normally uses to restore the previous role +setting after an error. This allowed ordinary users to acquire superuser +status, for example. +The escalation-of-privilege risk exists only in 8.1.0-8.1.2. +However, in all releases back to 7.3 there is a related bug in SET +SESSION AUTHORIZATION that allows unprivileged users to crash the server, +if it has been compiled with Asserts enabled (which is not the default). +Thanks to Akio Ishida for reporting this problem. + - - - Add support for \x hex escapes in COPY - (Sergey Ten) - - - Previous releases only supported octal escapes. - - +Fix bug with row visibility logic in self-inserted +rows (Tom) +Under rare circumstances a row inserted by the current command +could be seen as already valid, when it should not be. Repairs bug +created in 8.0.4, 7.4.9, and 7.3.11 releases. + - - - Make SHOW ALL include variable descriptions - (Matthias Schmidt) - - - SHOW varname still only displays the variable's - value and does not include the description. - - +Fix race condition that could lead to file already +exists errors during pg_clog and pg_subtrans file creation +(Tom) - - - Make initdb create a new standard - database called postgres, and convert utilities to - use postgres rather than template1 for - standard lookups (Dave) - - - In prior releases, template1 was used both as a - default connection for utilities like - createuser, and as a template for - new databases. This caused CREATE DATABASE to - sometimes fail, because a new database cannot be created if - anyone else is in the template database. With this change, the - default connection database is now postgres, - meaning it is much less likely someone will be using - template1 during CREATE DATABASE. - - +Fix cases that could lead to crashes if a cache-invalidation +message arrives at just the wrong time (Tom) - - - Create new reindexdb command-line - utility by moving /contrib/reindexdb into the - server (Euler Taveira de Oliveira) - - +Properly check DOMAIN constraints for +UNKNOWN parameters in prepared statements +(Neil) - - +Ensure ALTER COLUMN TYPE will process +FOREIGN KEY, UNIQUE, and PRIMARY KEY +constraints in the proper order (Nakano Yoshihisa) +Fixes to allow restoring dumps that have cross-schema +references to custom operators or operator classes (Tom) - - Data Type and Function Changes - +Allow pg_restore to continue properly after a +COPY failure; formerly it tried to treat the remaining +COPY data as SQL commands (Stephen Frost) - - - Add MAX() and MIN() aggregates for - array types (Koju Iijima) - - +Fix pg_ctl unregister crash +when the data directory is not specified (Magnus) - - - Fix to_date() and to_timestamp() to - behave reasonably when CC and YY fields - are both used (Karel Zak) - - - If the format specification contains CC and a year - specification is YYY or longer, ignore the - CC. If the year specification is YY or - shorter, interpret CC as the previous century. - - +Fix libpq PQprint HTML tags +(Christoph Zwerschke) - - - Add md5(bytea) (Abhijit Menon-Sen) - - - md5(text) already existed. - - +Fix ecpg crash on AMD64 and PPC +(Neil) - - - Add support for numeric ^ numeric based on - power(numeric, numeric) - - - The function already existed, but there was no operator assigned - to it. - - +Allow SETOF and %TYPE to be used +together in function result type declarations - - - Fix NUMERIC modulus by properly truncating the quotient - during computation (Bruce) - - - In previous releases, modulus for large values sometimes - returned negative results due to rounding of the quotient. - - +Recover properly if error occurs during argument passing +in PL/python (Neil) - - - Add a function lastval() (Dennis Björklund) - - - lastval() is a simplified version of - currval(). It automatically determines the proper - sequence name based on the most recent nextval() or - setval() call performed by the current session. - - +Fix memory leak in plperl_return_next +(Neil) - - - Add to_timestamp(DOUBLE PRECISION) (Michael Glaesemann) - - - Converts Unix seconds since 1970 to a TIMESTAMP WITH - TIMEZONE. - - +Fix PL/perl's handling of locales on +Win32 to match the backend (Andrew) - - - Add pg_postmaster_start_time() function (Euler - Taveira de Oliveira, Matthias Schmidt) - - +Various optimizer fixes (Tom) - - - Allow the full use of time zone names in AT TIME - ZONE, not just the short list previously available (Magnus) - - - Previously, only a predefined list of time zone names were - supported by AT TIME ZONE. Now any supported time - zone name can be used, e.g.: - - SELECT CURRENT_TIMESTAMP AT TIME ZONE 'Europe/London'; - - In the above query, the time zone used is adjusted based on the - daylight saving time rules that were in effect on the supplied - date. - - +Fix crash when log_min_messages is set to +DEBUG3 or above in postgresql.conf on Win32 +(Bruce) - - - Add GREATEST() and LEAST() variadic - functions (Pavel Stehule) - - - These functions take a variable number of arguments and return - the greatest or least value among the arguments. - - +Fix pgxs -L library path +specification for Win32, Cygwin, OS X, AIX (Bruce) - - - Add pg_column_size() (Mark Kirkwood) - - - This returns storage size of a column, which might be compressed. - - +Check that SID is enabled while checking for Win32 admin +privileges (Magnus) - - - Add regexp_replace() (Atsushi Ogawa) - - - This allows regular expression replacement, like sed. An optional - flag argument allows selection of global (replace all) and - case-insensitive modes. - - +Properly reject out-of-range date inputs (Kris +Jurka) - - - Fix interval division and multiplication (Bruce) - - - Previous versions sometimes returned unjustified results, like - '4 months'::interval / 5 returning '1 mon - -6 days'. - - - - - - Fix roundoff behavior in timestamp, time, and interval output (Tom) - - - This fixes some cases in which the seconds field would be shown as - 60 instead of incrementing the higher-order fields. - - - - - - Add a separate day field to type interval so a one day - interval can be distinguished from a 24 hour interval (Michael - Glaesemann) - - - Days that contain a daylight saving time adjustment are not 24 - hours long, but typically 23 or 25 hours. This change creates a - conceptual distinction between intervals of so many days - and intervals of so many hours. Adding - 1 day to a timestamp now gives the same local time on - the next day even if a daylight saving time adjustment occurs - between, whereas adding 24 hours will give a different - local time when this happens. For example, under US DST rules: - - '2005-04-03 00:00:00-05' + '1 day' = '2005-04-04 00:00:00-04' - '2005-04-03 00:00:00-05' + '24 hours' = '2005-04-04 01:00:00-04' - - - - - - - Add justify_days() and justify_hours() - (Michael Glaesemann) - - - These functions, respectively, adjust days to an appropriate - number of full months and days, and adjust hours to an - appropriate number of full days and hours. - - +Portability fix for testing presence of finite +and isinf during configure (Tom) - - - Move /contrib/dbsize into the backend, and rename - some of the functions (Dave Page, Andreas Pflug) - - - - - - - pg_tablespace_size() - - - - - - pg_database_size() - - - - - - pg_relation_size() - - - - - - pg_total_relation_size() - - - - - - pg_size_pretty() - - - - - - - pg_total_relation_size() includes indexes and TOAST - tables. - - +Improve speed of COPY IN via libpq, by +avoiding a kernel call per data line (Alon Goldshuv) - - - Add functions for read-only file access to the cluster directory - (Dave Page, Andreas Pflug) - - - - - - - pg_stat_file() - - - - - - pg_read_file() - - - - - - pg_ls_dir() - - - - - - +Improve speed of /contrib/tsearch2 index +creation (Tom) - - - Add pg_reload_conf() to force reloading of the - configuration files (Dave Page, Andreas Pflug) - - + - - - Add pg_rotate_logfile() to force rotation of the - server log file (Dave Page, Andreas Pflug) - - + + - - - Change pg_stat_* views to include TOAST tables (Tom) - - + + Release 8.1.2 - - + + Release date + 2006-01-09 + + + This release contains a variety of fixes from 8.1.1. + - - Encoding and Locale Changes - + + Migration to Version 8.1.2 - - - Rename some encodings to be more consistent and to follow - international standards (Bruce) - - - - - - - UNICODE is now UTF8 - - - - - - ALT is now WIN866 - - - - - - WIN is now WIN1251 - - - - - - TCVN is now WIN1258 - - - - - + + A dump/restore is not required for those running 8.1.X. + However, you might need to REINDEX indexes on textual + columns after updating, if you are affected by the locale or + plperl issues described below. + + - - The original names still work. - - + + Changes - - - Add support for WIN1252 encoding (Roland Volkmann) - - + - - - Add support for four-byte UTF8 characters (John - Hansen) - - - Previously only one, two, and three-byte UTF8 characters - were supported. This is particularly important for support for - some Chinese character sets. - - +Fix Windows code so that postmaster will continue rather +than exit if there is no more room in ShmemBackendArray (Magnus) +The previous behavior could lead to a denial-of-service situation if too +many connection requests arrive close together. This applies +only to the Windows port. - - - Allow direct conversion between EUC_JP and - SJIS to improve performance (Atsushi Ogawa) - - +Fix bug introduced in 8.0 that could allow ReadBuffer +to return an already-used page as new, potentially causing loss of +recently-committed data (Tom) - - - Allow the UTF8 encoding to work on Windows (Magnus) - - - This is done by mapping UTF8 to the Windows-native UTF16 - implementation. - - +Fix for protocol-level Describe messages issued +outside a transaction or in a failed transaction (Tom) - - +Fix character string comparison for locales that consider +different character combinations as equal, such as Hungarian (Tom) +This might require REINDEX to fix existing indexes on +textual columns. +Set locale environment variables during postmaster startup +to ensure that plperl won't change the locale later +This fixes a problem that occurred if the postmaster was +started with environment variables specifying a different locale than what +initdb had been told. Under these conditions, any use of +plperl was likely to lead to corrupt indexes. You might need +REINDEX to fix existing indexes on +textual columns if this has happened to you. - - General Server-Side Language Changes - +Allow more flexible relocation of installation +directories (Tom) +Previous releases supported relocation only if all installation +directory paths were the same except for the last component. - - - Fix ALTER LANGUAGE RENAME (Sergey Yatskevich) - - +Prevent crashes caused by the use of +ISO-8859-5 and ISO-8859-9 encodings +(Tatsuo) - - - Allow function characteristics, like strictness and volatility, - to be modified via ALTER FUNCTION (Neil) - - +Fix longstanding bug in strpos() and regular expression +handling in certain rarely used Asian multi-byte character sets (Tatsuo) + - - - Increase the maximum number of function arguments to 100 (Tom) - - +Fix bug where COPY CSV mode considered any +\. to terminate the copy data The new code +requires \. to appear alone on a line, as per +documentation. - - - Allow SQL and PL/PgSQL functions to use OUT and - INOUT parameters (Tom) - - - OUT is an alternate way for a function to return - values. Instead of using RETURN, values can be - returned by assigning to parameters declared as OUT or - INOUT. This is notationally simpler in some cases, - particularly so when multiple values need to be returned. - While returning multiple values from a function - was possible in previous releases, this greatly simplifies the - process. (The feature will be extended to other server-side - languages in future releases.) - - +Make COPY CSV mode quote a literal data value of +\. to ensure it cannot be interpreted as the +end-of-data marker (Bruce) - - - Move language handler functions into the pg_catalog schema - - - This makes it easier to drop the public schema if desired. - - +Various fixes for functions returning RECORDs +(Tom) - - - Add SPI_getnspname() to SPI (Neil) - - +Fix processing of postgresql.conf so a +final line with no newline is processed properly (Tom) + - - +Fix bug in /contrib/pgcrypto gen_salt, +which caused it not to use all available salt space for MD5 and +XDES algorithms (Marko Kreen, Solar Designer) +Salts for Blowfish and standard DES are unaffected. - - PL/PgSQL Server-Side Language Changes - +Fix autovacuum crash when processing expression indexes + - - - Overhaul the memory management of PL/PgSQL functions (Neil) - - - The parsetree of each function is now stored in a separate - memory context. This allows this memory to be easily reclaimed - when it is no longer needed. - - +Fix /contrib/dblink to throw an error, +rather than crashing, when the number of columns specified is different from +what's actually returned by the query (Joe) - - - Check function syntax at CREATE FUNCTION time, - rather than at runtime (Neil) - - - Previously, most syntax errors were reported only when the - function was executed. - - + - - - Allow OPEN to open non-SELECT queries - like EXPLAIN and SHOW (Tom) - - + + - - - No longer require functions to issue a RETURN - statement (Tom) - - - This is a byproduct of the newly added OUT and - INOUT functionality. RETURN can - be omitted when it is not needed to provide the function's - return value. - - + + Release 8.1.1 - - - Add support for an optional INTO clause to - PL/PgSQL's EXECUTE statement (Pavel Stehule, Neil) - - + + Release date + 2005-12-12 + - - - Make CREATE TABLE AS set ROW_COUNT (Tom) - - + + This release contains a variety of fixes from 8.1.0. + - - - Define SQLSTATE and SQLERRM to return - the SQLSTATE and error message of the current - exception (Pavel Stehule, Neil) - - - These variables are only defined inside exception blocks. - - + + Migration to Version 8.1.1 - - - Allow the parameters to the RAISE statement to be - expressions (Pavel Stehule, Neil) - - + + A dump/restore is not required for those running 8.1.X. + + - - - Add a loop CONTINUE statement (Pavel Stehule, Neil) - - + + Changes - - - Allow block and loop labels (Pavel Stehule) - - + +Fix incorrect optimizations of outer-join conditions +(Tom) - - +Fix problems with wrong reported column names in cases +involving sub-selects flattened by the optimizer (Tom) +Fix update failures in scenarios involving CHECK constraints, +toasted columns, and indexes (Tom) - - PL/Perl Server-Side Language Changes - +Fix bgwriter problems after recovering from errors +(Tom) + +The background writer was found to leak buffer pins after write errors. +While not fatal in itself, this might lead to mysterious blockages of +later VACUUM commands. + + - - - Allow large result sets to be returned efficiently (Abhijit - Menon-Sen) - - - This allows functions to use return_next() to avoid - building the entire result set in memory. - - +Prevent failure if client sends Bind protocol message +when current transaction is already aborted - - - Allow one-row-at-a-time retrieval of query results (Abhijit Menon-Sen) - - - This allows functions to use spi_query() and - spi_fetchrow() to avoid accumulating the entire - result set in memory. - - +/contrib/tsearch2 and /contrib/ltree +fixes (Teodor) - - - Force PL/Perl to handle strings as UTF8 if the - server encoding is UTF8 (David Kamholz) - - +Fix problems with translated error messages in +languages that require word reordering, such as Turkish; also problems with +unexpected truncation of output strings and wrong display of the smallest +possible bigint value (Andrew, Tom) + +These problems only appeared on platforms that were using our +port/snprintf.c code, which includes BSD variants if +--enable-nls was given, and perhaps others. In addition, +a different form of the translated-error-message problem could appear +on Windows depending on which version of libintl was used. + - - - Add a validator function for PL/Perl (Andrew) - - - This allows syntax errors to be reported at definition time, - rather than execution time. - - +Re-allow AM/PM, HH, +HH12, and D format specifiers for +to_char(time) and to_char(interval). +(to_char(interval) should probably use +HH24.) (Bruce) - - - Allow PL/Perl to return a Perl array when the function returns - an array type (Andrew) - - - This basically maps PostgreSQL arrays - to Perl arrays. - - +AIX, HPUX, and MSVC compile fixes (Tom, Hiroshi +Saito) - - - Allow Perl nonfatal warnings to generate NOTICE - messages (Andrew) - - +Optimizer improvements (Tom) - - - Allow Perl's strict mode to be enabled (Andrew) - - +Retry file reads and writes after Windows +NO_SYSTEM_RESOURCES error (Qingqing Zhou) - - +Prevent autovacuum from crashing during +ANALYZE of expression index (Alvaro) +Fix problems with ON COMMIT DELETE ROWS temp +tables - - <application>psql</> Changes - +Fix problems when a trigger alters the output of a SELECT +DISTINCT query - - - Add \set ON_ERROR_ROLLBACK to allow statements in - a transaction to error without affecting the rest of the - transaction (Greg Sabino Mullane) - - - This is basically implemented by wrapping every statement in a - sub-transaction. - - +Add 8.1.0 release note item on how to migrate invalid +UTF-8 byte sequences (Paul Lindner) + - - - Add support for \x hex strings in - psql variables (Bruce) - - - Octal escapes were already supported. - - + + - - - Add support for troff -ms output format (Roger - Leigh) - - + + Release 8.1 - - - Allow the history file location to be controlled by - HISTFILE (Andreas Seltenreich) - - - This allows configuration of per-database history storage. - - + + Release date + 2005-11-08 + - - - Prevent \x (expanded mode) from affecting - the output of \d tablename (Neil) - - + + Overview - - - Add - - This option was added because some operating systems do not have - simple command-line activity logging functionality. - - + + Major changes in this release: + - - - Make \d show the tablespaces of indexes (Qingqing - Zhou) - - + - - - Allow psql help (\h) to - make a best guess on the proper help information (Greg Sabino - Mullane) - - - This allows the user to just add \h to the front of - the syntax error query and get help on the supported syntax. - Previously any additional query text beyond the command name - had to be removed to use \h. - - + + + Improve concurrent access to the shared buffer cache (Tom) + - - - Add \pset numericlocale to allow numbers to be - output in a locale-aware format (Eugen Nedelcu) - - - For example, using C locale 100000 would - be output as 100,000.0 while a European locale might - output this value as 100.000,0. - - + + + Access to the shared buffer cache was identified as a + significant scalability problem, particularly on multi-CPU + systems. In this release, the way that locking is done in the + buffer manager has been overhauled to reduce lock contention + and improve scalability. The buffer manager has also been + changed to use a clock sweep replacement + policy. + + + - - - Make startup banner show both server version number and - psql's version number, when they are different (Bruce) - - - Also, a warning will be shown if the server and psql - are from different major releases. - - + + + Allow index scans to use an intermediate in-memory bitmap (Tom) + - - + + + In previous releases, only a single index could be used to do + lookups on a table. With this feature, if a query has + WHERE tab.col1 = 4 and tab.col2 = 9, and there is + no multicolumn index on col1 and col2, + but there is an index on col1 and another on + col2, it is possible to search both indexes and + combine the results in memory, then do heap fetches for only + the rows matching both the col1 and + col2 restrictions. This is very useful in + environments that have a lot of unstructured queries where it + is impossible to create indexes that match all possible access + conditions. Bitmap scans are useful even with a single index, + as they reduce the amount of random access needed; a bitmap + index scan is efficient for retrieving fairly large fractions + of the complete table, whereas plain index scans are not. + + + + + + Add two-phase commit (Heikki Linnakangas, Alvaro, Tom) + - - <application>pg_dump</> Changes - + + + Two-phase commit allows transactions to be "prepared" on several + computers, and once all computers have successfully prepared + their transactions (none failed), all transactions can be + committed. Even if a machine crashes after a prepare, the + prepared transaction can be committed after the machine is + restarted. New syntax includes PREPARE TRANSACTION and + COMMIT/ROLLBACK PREPARED. A new system view + pg_prepared_xacts has also been added. + + + - - - Add - - This allows just the objects in a specified schema to be restored. - - + + + Create a new role system that replaces users and groups + (Stephen Frost) + - - - Allow pg_dump to dump large objects even in - text mode (Tom) - - - With this change, large objects are now always dumped; the former - - + + + Roles are a combination of users and groups. Like users, they + can have login capability, and like groups, a role can have + other roles as members. Roles basically remove the distinction + between users and groups. For example, a role can: + - - - Allow pg_dump to dump a consistent snapshot of - large objects (Tom) - - + - - - Dump comments for large objects (Tom) - - + + + Have login capability (optionally) + + - - - Add - - This allows a database to be dumped in an encoding that is - different from the server's encoding. This is valuable when - transferring the dump to a machine with a different encoding. - - + + + Own objects + + - - - Rely on pg_pltemplate for procedural languages (Tom) - - - If the call handler for a procedural language is in the - pg_catalog schema, pg_dump does not - dump the handler. Instead, it dumps the language using just - CREATE LANGUAGE name, - relying on the pg_pltemplate catalog to provide - the language's creation parameters at load time. - - + + + Hold access permissions for database objects + + - - + + + Inherit permissions from other roles it is a member of + + + + + Once a user logs into a role, she obtains capabilities of + the login role plus any inherited roles, and can use + SET ROLE to switch to other roles she is a member of. + This feature is a generalization of the SQL standard's concept of + roles. + This change also replaces pg_shadow and + pg_group by new role-capable catalogs + pg_authid and pg_auth_members. The old + tables are redefined as read-only views on the new role tables. + + + - - <application>libpq</application> Changes - + + + Automatically use indexes for MIN() and + MAX() (Tom) + - - - Add a PGPASSFILE environment variable to specify the - password file's filename (Andrew) - - + + + In previous releases, the only way to use an index for + MIN() or MAX() was to rewrite the + query as SELECT col FROM tab ORDER BY col LIMIT 1. + Index usage now happens automatically. + + + - - - Add lo_create(), that is similar to - lo_creat() but allows the OID of the large object - to be specified (Tom) - - + + + Move /contrib/pg_autovacuum into the main server + (Alvaro) + - - - Make libpq consistently return an error - to the client application on malloc() - failure (Neil) - - - - + + + Integrating autovacuum into the server allows it to be + automatically started and stopped in sync with the database + server, and allows autovacuum to be configured from + postgresql.conf. + + + + + + Add shared row level locks using SELECT ... FOR SHARE + (Alvaro) + - - Source Code Changes - + + + While PostgreSQL's MVCC locking + allows SELECT to never be blocked by writers and + therefore does not need shared row locks for typical operations, + shared locks are useful for applications that require shared row + locking. In particular this reduces the locking requirements + imposed by referential integrity checks. + + + - - - Fix pgxs to support building against a relocated - installation - - + + + Add dependencies on shared objects, specifically roles + (Alvaro) + - - - Add spinlock support for the Itanium processor using Intel - compiler (Vikram Kalsi) - - + + + This extension of the dependency mechanism prevents roles from + being dropped while there are still database objects they own. + Formerly it was possible to accidentally orphan objects by + deleting their owner. While this could be recovered from, it + was messy and unpleasant. + + + - - - Add Kerberos 5 support for Windows (Magnus) - - + + + Improve performance for partitioned tables (Simon) + - - - Add Chinese FAQ (laser@pgsqldb.com) - - + + + The new constraint_exclusion configuration + parameter avoids lookups on child tables where constraints indicate + that no matching rows exist in the child table. + + + This allows for a basic type of table partitioning. If child tables + store separate key ranges and this is enforced using appropriate + CHECK constraints, the optimizer will skip child + table accesses when the constraint guarantees no matching rows + exist in the child table. + + + - - - Rename Rendezvous to Bonjour to match OS/X feature renaming - (Bruce) - - + + - - - Add support for fsync_writethrough on - Darwin (Chris Campbell) - - + + Migration to Version 8.1 - - - Streamline the passing of information within the server, the - optimizer, and the lock system (Tom) - - + + A dump/restore using pg_dump is required + for those wishing to migrate data from any previous release. + - - - Allow pg_config to be compiled using MSVC (Andrew) - - - This is required to build DBD::Pg using MSVC. - - + + The 8.0 release announced that the to_char() function + for intervals would be removed in 8.1. However, since no better API + has been suggested, to_char(interval) has been enhanced in + 8.1 and will remain in the server. + - - - Remove support for Kerberos V4 (Magnus) - - - Kerberos 4 had security vulnerabilities and is no longer - maintained. - - + + Observe the following incompatibilities: + - - - Code cleanups (Coverity static analysis performed by - EnterpriseDB) - - + - - - Modify postgresql.conf to use documentation defaults - on/off rather than - true/false (Bruce) - - + + + add_missing_from is now false by default (Neil) + + + By default, we now generate an error if a table is used in a query + without a FROM reference. The old behavior is still + available, but the parameter must be set to 'true' to obtain it. + - - - Enhance pg_config to be able to report more - build-time values (Tom) - - + + It might be necessary to set add_missing_from to true + in order to load an existing dump file, if the dump contains any + views or rules created using the implicit-FROM syntax. + This should be a one-time annoyance, because + PostgreSQL 8.1 will convert + such views and rules to standard explicit-FROM syntax. + Subsequent dumps will therefore not have the problem. + + - - - Allow libpq to be built thread-safe - on Windows (Dave Page) - - + + + Cause input of a zero-length string ('') for + float4/float8/oid + to throw an error, rather than treating it as a zero (Neil) + + + This change is consistent with the current handling of + zero-length strings for integers. The schedule for this change + was announced in 8.0. + + - - - Allow IPv6 connections to be used on Windows (Andrew) - - + + + default_with_oids is now false by default (Neil) + + + With this option set to false, user-created tables no longer + have an OID column unless WITH OIDS is specified in + CREATE TABLE. Though OIDs have existed in all + releases of PostgreSQL, their use is limited + because they are only four bytes long and the counter is shared + across all installed databases. The preferred way of uniquely + identifying rows is via sequences and the SERIAL type, + which have been supported since PostgreSQL 6.4. + + - - - Add Server Administration documentation about I/O subsystem - reliability (Bruce) - - + + + Add E'' syntax so eventually ordinary strings can + treat backslashes literally (Bruce) + + + Currently PostgreSQL processes a + backslash in a string literal as introducing a special escape sequence, + e.g. \n or \010. + While this allows easy entry of special values, it is + nonstandard and makes porting of applications from other + databases more difficult. For this reason, the + PostgreSQL project is planning to + remove the special meaning of backslashes in strings. For + backward compatibility and for users who want special backslash + processing, a new string syntax has been created. This new string + syntax is formed by writing an E immediately preceding the + single quote that starts the string, e.g. E'hi\n'. While + this release does not change the handling of backslashes in strings, it + does add new configuration parameters to help users migrate applications + for future releases: + + - Move private declarations from gist.h to - gist_private.h (Neil) - - - - In previous releases, gist.h contained both the - public GiST API (intended for use by authors of GiST index - implementations) as well as some private declarations used by - the implementation of GiST itself. The latter have been moved - to a separate file, gist_private.h. Most GiST - index implementations should be unaffected. + standard_conforming_strings — does this release + treat backslashes literally in ordinary strings? - - Overhaul GiST memory management (Neil) - + + escape_string_warning — warn about backslashes in + ordinary (non-E) strings + + - - GiST methods are now always invoked in a short-lived memory - context. Therefore, memory allocated via palloc() - will be reclaimed automatically, so GiST index implementations - do not need to manually release allocated memory via - pfree(). - - - + + The standard_conforming_strings value is read-only. + Applications can retrieve the value to know how backslashes are + processed. (Presence of the parameter can also be taken as an + indication that E'' string syntax is supported.) + In a future release, standard_conforming_strings + will be true, meaning backslashes will be treated literally in + non-E strings. To prepare for this change, use E'' + strings in places that need special backslash processing, and + turn on escape_string_warning to find additional + strings that need to be converted to use E''. + Also, use two single-quotes ('') to embed a literal + single-quote in a string, rather than the + PostgreSQL-supported syntax of + backslash single-quote (\'). The former is + standards-conforming and does not require the use of the + E'' string syntax. You can also use the + $$ string syntax, which does not treat backslashes + specially. + + - - Contrib Changes - + + + Make REINDEX DATABASE reindex all indexes in the + database (Tom) + + + Formerly, REINDEX DATABASE reindexed only + system tables. This new behavior seems more intuitive. A new + command REINDEX SYSTEM provides the old functionality + of reindexing just the system tables. + + - - - Add /contrib/pg_buffercache contrib module (Mark - Kirkwood) - - - This displays the contents of the buffer cache, for debugging and - performance tuning purposes. - - + + + Read-only large object descriptors now obey MVCC snapshot semantics + + + When a large object is opened with INV_READ (and not + INV_WRITE), the data read from the descriptor will now + reflect a snapshot of the large object's state at the + time of the transaction snapshot in use by the query that called + lo_open(). To obtain the old behavior of always + returning the latest committed data, include INV_WRITE + in the mode flags for lo_open(). + + - - - Remove /contrib/array because it is obsolete (Tom) - - + + + Add proper dependencies for arguments of sequence functions (Tom) + + + In previous releases, sequence names passed to nextval(), + currval(), and setval() were stored as + simple text strings, meaning that renaming or dropping a + sequence used in a DEFAULT clause made the clause + invalid. This release stores all newly-created sequence function + arguments as internal OIDs, allowing them to track sequence + renaming, and adding dependency information that prevents + improper sequence removal. It also makes such DEFAULT + clauses immune to schema renaming and search path changes. + + + Some applications might rely on the old behavior of + run-time lookup for sequence names. This can still be done by + explicitly casting the argument to text, for example + nextval('myseq'::text). + + + Pre-8.1 database dumps loaded into 8.1 will use the old text-based + representation and therefore will not have the features of + OID-stored arguments. However, it is possible to update a + database containing text-based DEFAULT clauses. + First, save this query into a file, such as fixseq.sql: + +SELECT 'ALTER TABLE ' || + pg_catalog.quote_ident(n.nspname) || '.' || + pg_catalog.quote_ident(c.relname) || + ' ALTER COLUMN ' || pg_catalog.quote_ident(a.attname) || + ' SET DEFAULT ' || + regexp_replace(d.adsrc, + $$val\(\(('[^']*')::text\)::regclass$$, + $$val(\1$$, + 'g') || + ';' +FROM pg_namespace n, pg_class c, pg_attribute a, pg_attrdef d +WHERE n.oid = c.relnamespace AND + c.oid = a.attrelid AND + a.attrelid = d.adrelid AND + a.attnum = d.adnum AND + d.adsrc ~ $$val\(\('[^']*'::text\)::regclass$$; + + Next, run the query against a database to find what + adjustments are required, like this for database db1: + +psql -t -f fixseq.sql db1 + + This will show the ALTER TABLE commands needed to + convert the database to the newer OID-based representation. + If the commands look reasonable, run this to update the database: + +psql -t -f fixseq.sql db1 | psql -e db1 + + This process must be repeated in each database to be updated. + + - - - Clean up the /contrib/lo module (Tom) - - + + + In psql, treat unquoted + \{digit}+ sequences as octal (Bruce) + + + In previous releases, \{digit}+ sequences were + treated as decimal, and only \0{digit}+ were treated + as octal. This change was made for consistency. + + - - - Move /contrib/findoidjoins to - /src/tools (Tom) - - + + + Remove grammar productions for prefix and postfix % + and ^ operators + (Tom) + + + These have never been documented and complicated the use of the + modulus operator (%) with negative numbers. + + - - - Remove the <<, >>, - &<, and &> operators from - /contrib/cube - - - These operators were not useful. - - + + + Make &< and &> for polygons + consistent with the box "over" operators (Tom) + + - - - Improve /contrib/btree_gist (Janko Richter) - - + + + CREATE LANGUAGE can ignore the provided arguments + in favor of information from pg_pltemplate + (Tom) + + + A new system catalog pg_pltemplate has been defined + to carry information about the preferred definitions of procedural + languages (such as whether they have validator functions). When + an entry exists in this catalog for the language being created, + CREATE LANGUAGE will ignore all its parameters except the + language name and instead use the catalog information. This measure + was taken because of increasing problems with obsolete language + definitions being loaded by old dump files. As of 8.1, + pg_dump will dump procedural language definitions as + just CREATE LANGUAGE name, relying + on a template entry to exist at load time. We expect this will be a + more future-proof representation. + + - - - Improve /contrib/pgbench (Tomoaki Sato, Tatsuo) - - - There is now a facility for testing with SQL command scripts given - by the user, instead of only a hard-wired command sequence. - - + + + Make pg_cancel_backend(int) return a + boolean rather than an integer (Neil) + + - - - Improve /contrib/pgcrypto (Marko Kreen) - + + + Some users are having problems loading UTF-8 data into 8.1.X. + This is because previous versions allowed invalid UTF-8 byte + sequences to be entered into the database, and this release + properly accepts only valid UTF-8 sequences. One way to correct a + dumpfile is to run the command iconv -c -f UTF-8 -t + UTF-8 -o cleanfile.sql dumpfile.sql. The -c option + removes invalid character sequences. A diff of the two files will + show the sequences that are invalid. iconv reads the + entire input file into memory so it might be necessary to use + split to break up the dump into multiple smaller + files for processing. + + - + + - - - Implementation of OpenPGP symmetric-key and public-key encryption - - - Both RSA and Elgamal public-key algorithms are supported. - - - - - - Stand alone build: include SHA256/384/512 hashes, Fortuna PRNG - - - - - - OpenSSL build: support 3DES, use internal AES with OpenSSL < 0.9.7 - - - - - - Take build parameters (OpenSSL, zlib) from configure result - - - There is no need to edit the Makefile anymore. - - - - - - Remove support for libmhash and libmcrypt - - - - - - - - - - - - - - Release 8.0.14 - - - Release date - 2007-09-17 - + + Additional Changes - This release contains a variety of fixes from 8.0.13. + Below you will find a detailed account of the additional changes + between PostgreSQL 8.1 and the + previous major release. - - Migration to version 8.0.14 - - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.6, see the release - notes for 8.0.6. - - - - - - Changes - + + Performance Improvements - Prevent index corruption when a transaction inserts rows and - then aborts close to the end of a concurrent VACUUM - on the same table (Tom) + Improve GiST and R-tree index performance (Neil) - Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) + Improve the optimizer, including auto-resizing of hash joins + (Tom) - Fix excessive logging of SSL error messages (Tom) + Overhaul internal API in several areas - Fix logging so that log messages are never interleaved when using - the syslogger process (Andrew) + Change WAL record CRCs from 64-bit to 32-bit (Tom) + + + We determined that the extra cost of computing 64-bit CRCs was + significant, and the gain in reliability too marginal to justify it. - Fix crash when log_min_error_statement logging runs out - of memory (Tom) + Prevent writing large empty gaps in WAL pages (Tom) - Fix incorrect handling of some foreign-key corner cases (Tom) + Improve spinlock behavior on SMP machines, particularly Opterons (Tom) - Prevent CLUSTER from failing - due to attempting to process temporary tables of other sessions (Alvaro) + Allow nonconsecutive index columns to be used in a multicolumn + index (Tom) + + + For example, this allows an index on columns a,b,c to be used in + a query with WHERE a = 4 and c = 10. - Update the time zone database rules, particularly New Zealand's upcoming changes (Tom) + Skip WAL logging for CREATE TABLE AS / + SELECT INTO (Simon) + + + Since a crash during CREATE TABLE AS would cause the + table to be dropped during recovery, there is no reason to WAL + log as the table is loaded. (Logging still happens if WAL + archiving is enabled, however.) - Windows socket improvements (Magnus) + Allow concurrent GiST index access (Teodor, Oleg) - Suppress timezone name (%Z) in log timestamps on Windows - because of possible encoding mismatches (Tom) + Add configuration parameter full_page_writes to + control writing full pages to WAL (Bruce) + + + To prevent partial disk writes from corrupting the database, + PostgreSQL writes a complete copy of + each database disk page to WAL the first time it is modified + after a checkpoint. This option turns off that functionality for more + speed. This is safe to use with battery-backed disk caches where + partial page writes cannot happen. - Require non-superusers who use /contrib/dblink to use only - password authentication, as a security measure (Joe) + Use O_DIRECT if available when using + O_SYNC for wal_sync_method + (Itagaki Takahiro) + + + O_DIRECT causes disk writes to bypass the kernel + cache, and for WAL writes, this improves performance. - - - - - - - Release 8.0.13 - - - Release date - 2007-04-23 - - - - This release contains a variety of fixes from 8.0.12, - including a security fix. - - - - Migration to version 8.0.13 - - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.6, see the release - notes for 8.0.6. - - - - - - Changes - - - - - Support explicit placement of the temporary-table schema within - search_path, and disable searching it for functions - and operators (Tom) - - - This is needed to allow a security-definer function to set a - truly secure value of search_path. Without it, - an unprivileged SQL user can use temporary objects to execute code - with the privileges of the security-definer function (CVE-2007-2138). - See CREATE FUNCTION for more information. - + + Improve COPY FROM performance (Alon Goldshuv) + + + This was accomplished by reading COPY input in + larger chunks, rather than character by character. + - - /contrib/tsearch2 crash fixes (Teodor) - + + Improve the performance of COUNT(), + SUM, AVG(), + STDDEV(), and + VARIANCE() (Neil, Tom) + + + - - - Fix potential-data-corruption bug in how VACUUM FULL handles - UPDATE chains (Tom, Pavan Deolasee) - - + + Server Changes + - - Fix PANIC during enlargement of a hash index (bug introduced in 8.0.10) - (Tom) - + + Prevent problems due to transaction ID (XID) wraparound (Tom) + + + The server will now warn when the transaction counter approaches + the wraparound point. If the counter becomes too close to wraparound, + the server will stop accepting queries. This ensures that data is + not lost before needed vacuuming is performed. + - - Fix POSIX-style timezone specs to follow new USA DST rules (Tom) - + + Fix problems with object IDs (OIDs) conflicting with existing system + objects after the OID counter has wrapped around (Tom) + - - - - - - - Release 8.0.12 - - - Release date - 2007-02-07 - - - - This release contains one fix from 8.0.11. - - - - Migration to version 8.0.12 - - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.6, see the release - notes for 8.0.6. - - - - - - Changes - - - - - Remove overly-restrictive check for type length in constraints and - functional indexes(Tom) - + + Add warning about the need to increase + max_fsm_relations and max_fsm_pages + during VACUUM (Ron Mayer) + - - - - - - - Release 8.0.11 - - - Release date - 2007-02-05 - - - - This release contains a variety of fixes from 8.0.10, including - a security fix. - - - - Migration to version 8.0.11 - - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.6, see the release - notes for 8.0.6. - - - - - - Changes - - - - - Remove security vulnerabilities that allowed connected users - to read backend memory (Tom) - - - The vulnerabilities involve suppressing the normal check that a SQL - function returns the data type it's declared to, and changing the - data type of a table column (CVE-2007-0555, CVE-2007-0556). These - errors can easily be exploited to cause a backend crash, and in - principle might be used to read database content that the user - should not be able to access. - + + Add temp_buffers configuration parameter to allow + users to determine the size of the local buffer area for + temporary table access (Tom) + - - Fix rare bug wherein btree index page splits could fail - due to choosing an infeasible split point (Heikki Linnakangas) - + + Add session start time and client IP address to + pg_stat_activity (Magnus) + - - Fix for rare Assert() crash triggered by UNION (Tom) - + + Adjust pg_stat views for bitmap scans (Tom) + + + The meanings of some of the fields have changed slightly. + - - Tighten security of multi-byte character processing for UTF8 sequences - over three bytes long (Tom) - + + Enhance pg_locks view (Tom) + - - - - - - - Release 8.0.10 - - - Release date - 2007-01-08 - - - - This release contains a variety of fixes from 8.0.9. - - - - Migration to version 8.0.10 - - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.6, see the release - notes for 8.0.6. - - - - - - Changes - - - - Improve handling of getaddrinfo() on AIX (Tom) + Log queries for client-side PREPARE and + EXECUTE (Simon) + + - This fixes a problem with starting the statistics collector, - among other things. + Allow Kerberos name and user name case sensitivity to be + specified in postgresql.conf (Magnus) - - - Fix failed to re-find parent key errors in - VACUUM (Tom) - - - - - - Fix race condition for truncation of a large relation across a - gigabyte boundary by VACUUM (Tom) - - - - - - Fix bugs affecting multi-gigabyte hash indexes (Tom) - - - - Fix possible deadlock in Windows signal handling (Teodor) + Add configuration parameter krb_server_hostname so + that the server host name can be specified as part of service + principal (Todd Kover) + + + If not set, any service principal matching an entry in the + keytab can be used. This is new Kerberos matching behavior in + this release. - Fix error when constructing an ARRAY[] made up of multiple - empty elements (Tom) + Add log_line_prefix options for millisecond + timestamps (%m) and remote host (%h) (Ed + L.) - Fix ecpg memory leak during connection (Michael) + Add WAL logging for GiST indexes (Teodor, Oleg) + + + GiST indexes are now safe for crash and point-in-time recovery. - to_number() and to_char(numeric) - are now STABLE, not IMMUTABLE, for - new initdb installs (Tom) + Remove old *.backup files when we do + pg_stop_backup() (Bruce) - - This is because lc_numeric can potentially - change the output of these functions. + This prevents a large number of *.backup files from + existing in pg_xlog/. - Improve index usage of regular expressions that use parentheses (Tom) + Add configuration parameters to control TCP/IP keep-alive + times for idle, interval, and count (Oliver Jowett) - This improves psql \d performance also. + These values can be changed to allow more rapid detection of + lost client connections. - Update timezone database + Add per-user and per-database connection limits (Petr Jelinek) - - This affects Australian and Canadian daylight-savings rules in - particular. + Using ALTER USER and ALTER DATABASE, + limits can now be enforced on the maximum number of sessions that + can concurrently connect as a specific user or to a specific database. + Setting the limit to zero disables user or database connections. - + + + Allow more than two gigabytes of shared memory and per-backend + work memory on 64-bit machines (Koichi Suzuki) + + - - + + + New system catalog pg_pltemplate allows overriding + obsolete procedural-language definitions in dump files (Tom) + + - - Release 8.0.9 + + - - Release date - 2006-10-16 - - - This release contains a variety of fixes from 8.0.8. - + + Query Changes + - - Migration to version 8.0.9 + + + Add temporary views (Koju Iijima, Neil) + + - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.6, see the release - notes for 8.0.6. - + + + Fix HAVING without any aggregate functions or + GROUP BY so that the query returns a single group (Tom) + + + Previously, such a case would treat the HAVING + clause the same as a WHERE clause. This was not per spec. + + - + + + Add USING clause to allow additional tables to be + specified to DELETE (Euler Taveira de Oliveira, Neil) + + + In prior releases, there was no clear method for specifying + additional tables to be used for joins in a DELETE + statement. UPDATE already has a FROM + clause for this purpose. + + - - Changes + + + Add support for \x hex escapes in backend and ecpg + strings (Bruce) + + + This is just like the standard C \x escape syntax. + Octal escapes were already supported. + + - -Fix crash when referencing NEW row -values in rule WHERE expressions (Tom) -Fix core dump when an untyped literal is taken as -ANYARRAY -Fix mishandling of AFTER triggers when query contains a SQL -function returning multiple rows (Tom) -Fix ALTER TABLE ... TYPE to recheck -NOT NULL for USING clause (Tom) -Fix string_to_array() to handle overlapping - matches for the separator string -For example, string_to_array('123xx456xxx789', 'xx'). - -Fix corner cases in pattern matching for - psql's \d commands -Fix index-corrupting bugs in /contrib/ltree - (Teodor) -Numerous robustness fixes in ecpg (Joachim -Wieland) -Fix backslash escaping in /contrib/dbmirror -Fix instability of statistics collection on Win32 (Tom, Andrew) -Fixes for AIX and -Intel compilers (Tom) - + + + Add BETWEEN SYMMETRIC query syntax (Pavel Stehule) + + + This feature allows BETWEEN comparisons without + requiring the first value to be less than the second. For + example, 2 BETWEEN [ASYMMETRIC] 3 AND 1 returns + false, while 2 BETWEEN SYMMETRIC 3 AND 1 returns + true. BETWEEN ASYMMETRIC was already supported. + + - - + + + Add NOWAIT option to SELECT ... FOR + UPDATE/SHARE (Hans-Juergen Schoenig) + + + While the statement_timeout configuration + parameter allows a query taking more than a certain amount of + time to be cancelled, the NOWAIT option allows a + query to be canceled as soon as a SELECT ... FOR + UPDATE/SHARE command cannot immediately acquire a row lock. + + + + - - Release 8.0.8 - - Release date - 2006-05-23 - + + Object Manipulation Changes + - - This release contains a variety of fixes from 8.0.7, - including patches for extremely serious security issues. - + + + Track dependencies of shared objects (Alvaro) + + + PostgreSQL allows global tables + (users, databases, tablespaces) to reference information in + multiple databases. This addition adds dependency information + for global tables, so, for example, user ownership can be + tracked across databases, so a user who owns something in any + database can no longer be removed. Dependency tracking already + existed for database-local objects. + + - - Migration to version 8.0.8 + + + Allow limited ALTER OWNER commands to be performed + by the object owner (Stephen Frost) + + + Prior releases allowed only superusers to change object owners. + Now, ownership can be transferred if the user executing the command + owns the object and would be able to create it as the new owner + (that is, the user is a member of the new owning role and that role + has the CREATE permission that would be needed to create the object + afresh). + + - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.6, see the release - notes for 8.0.6. - + + + Add ALTER object SET SCHEMA capability + for some object types (tables, functions, types) (Bernd Helmle) + + + This allows objects to be moved to different schemas. + + - - Full security against the SQL-injection attacks described in - CVE-2006-2313 and CVE-2006-2314 might require changes in application - code. If you have applications that embed untrustworthy strings - into SQL commands, you should examine them as soon as possible to - ensure that they are using recommended escaping techniques. In - most cases, applications should be using subroutines provided by - libraries or drivers (such as libpq's - PQescapeStringConn()) to perform string escaping, - rather than relying on ad hoc code to do it. - - + + + Add ALTER TABLE ENABLE/DISABLE TRIGGER to + disable triggers (Satoshi Nagayasu) + + - - Changes + + - -Change the server to reject invalidly-encoded multibyte -characters in all cases (Tatsuo, Tom) -While PostgreSQL has been moving in this direction for -some time, the checks are now applied uniformly to all encodings and all -textual input, and are now always errors not merely warnings. This change -defends against SQL-injection attacks of the type described in CVE-2006-2313. - -Reject unsafe uses of \' in string literals -As a server-side defense against SQL-injection attacks of the type -described in CVE-2006-2314, the server now only accepts '' and not -\' as a representation of ASCII single quote in SQL string -literals. By default, \' is rejected only when -client_encoding is set to a client-only encoding (SJIS, BIG5, GBK, -GB18030, or UHC), which is the scenario in which SQL injection is possible. -A new configuration parameter backslash_quote is available to -adjust this behavior when needed. Note that full security against -CVE-2006-2314 might require client-side changes; the purpose of -backslash_quote is in part to make it obvious that insecure -clients are insecure. - + + Utility Command Changes + -Modify libpq's string-escaping routines to be -aware of encoding considerations and -standard_conforming_strings -This fixes libpq-using applications for the security -issues described in CVE-2006-2313 and CVE-2006-2314, and also future-proofs -them against the planned changeover to SQL-standard string literal syntax. -Applications that use multiple PostgreSQL connections -concurrently should migrate to PQescapeStringConn() and -PQescapeByteaConn() to ensure that escaping is done correctly -for the settings in use in each database connection. Applications that -do string escaping by hand should be modified to rely on library -routines instead. - + + + Allow TRUNCATE to truncate multiple tables in a + single command (Alvaro) + + + Because of referential integrity checks, it is not allowed to + truncate a table that is part of a referential integrity + constraint. Using this new functionality, TRUNCATE + can be used to truncate such tables, if both tables involved in + a referential integrity constraint are truncated in a single + TRUNCATE command. + + -Fix some incorrect encoding conversion functions -win1251_to_iso, alt_to_iso, -euc_tw_to_big5, euc_tw_to_mic, -mic_to_euc_tw were all broken to varying -extents. - + + + Properly process carriage returns and line feeds in + COPY CSV mode (Andrew) + + + In release 8.0, carriage returns and line feeds in CSV + COPY TO were processed in an inconsistent manner. (This was + documented on the TODO list.) + + -Clean up stray remaining uses of \' in strings -(Bruce, Jan) + + + Add COPY WITH CSV HEADER to allow a header line as + the first line in COPY (Andrew) + + + This allows handling of the common CSV usage of + placing the column names on the first line of the data file. For + COPY TO, the first line contains the column names, + and for COPY FROM, the first line is ignored. + + -Fix bug that sometimes caused OR'd index scans to -miss rows they should have returned + + + On Windows, display better sub-second precision in + EXPLAIN ANALYZE (Magnus) + + -Fix WAL replay for case where a btree index has been -truncated + + + Add trigger duration display to EXPLAIN ANALYZE + (Tom) + + + Prior releases included trigger execution time as part of the + total execution time, but did not show it separately. It is now + possible to see how much time is spent in each trigger. + + -Fix SIMILAR TO for patterns involving -| (Tom) + + + Add support for \x hex escapes in COPY + (Sergey Ten) + + + Previous releases only supported octal escapes. + + -Fix SELECT INTO and CREATE TABLE AS to -create tables in the default tablespace, not the base directory (Kris -Jurka) + + + Make SHOW ALL include variable descriptions + (Matthias Schmidt) + + + SHOW varname still only displays the variable's + value and does not include the description. + + -Fix server to use custom DH SSL parameters correctly (Michael -Fuhr) + + + Make initdb create a new standard + database called postgres, and convert utilities to + use postgres rather than template1 for + standard lookups (Dave) + + + In prior releases, template1 was used both as a + default connection for utilities like + createuser, and as a template for + new databases. This caused CREATE DATABASE to + sometimes fail, because a new database cannot be created if + anyone else is in the template database. With this change, the + default connection database is now postgres, + meaning it is much less likely someone will be using + template1 during CREATE DATABASE. + + -Fix for Bonjour on Intel Macs (Ashley Clark) + + + Create new reindexdb command-line + utility by moving /contrib/reindexdb into the + server (Euler Taveira de Oliveira) + + -Fix various minor memory leaks + + -Fix problem with password prompting on some Win32 systems -(Robert Kinberg) - - - + + Data Type and Function Changes + - - Release 8.0.7 + + + Add MAX() and MIN() aggregates for + array types (Koju Iijima) + + - - Release date - 2006-02-14 - + + + Fix to_date() and to_timestamp() to + behave reasonably when CC and YY fields + are both used (Karel Zak) + + + If the format specification contains CC and a year + specification is YYY or longer, ignore the + CC. If the year specification is YY or + shorter, interpret CC as the previous century. + + - - This release contains a variety of fixes from 8.0.6. - + + + Add md5(bytea) (Abhijit Menon-Sen) + + + md5(text) already existed. + + - - Migration to version 8.0.7 + + + Add support for numeric ^ numeric based on + power(numeric, numeric) + + + The function already existed, but there was no operator assigned + to it. + + - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.6, see the release - notes for 8.0.6. - - + + + Fix NUMERIC modulus by properly truncating the quotient + during computation (Bruce) + + + In previous releases, modulus for large values sometimes + returned negative results due to rounding of the quotient. + + - - Changes + + + Add a function lastval() (Dennis Björklund) + + + lastval() is a simplified version of + currval(). It automatically determines the proper + sequence name based on the most recent nextval() or + setval() call performed by the current session. + + - + + + Add to_timestamp(DOUBLE PRECISION) (Michael Glaesemann) + + + Converts Unix seconds since 1970 to a TIMESTAMP WITH + TIMEZONE. + + -Fix potential crash in SET -SESSION AUTHORIZATION (CVE-2006-0553) -An unprivileged user could crash the server process, resulting in -momentary denial of service to other users, if the server has been compiled -with Asserts enabled (which is not the default). -Thanks to Akio Ishida for reporting this problem. - + + + Add pg_postmaster_start_time() function (Euler + Taveira de Oliveira, Matthias Schmidt) + + -Fix bug with row visibility logic in self-inserted -rows (Tom) -Under rare circumstances a row inserted by the current command -could be seen as already valid, when it should not be. Repairs bug -created in 8.0.4, 7.4.9, and 7.3.11 releases. - + + + Allow the full use of time zone names in AT TIME + ZONE, not just the short list previously available (Magnus) + + + Previously, only a predefined list of time zone names were + supported by AT TIME ZONE. Now any supported time + zone name can be used, e.g.: + + SELECT CURRENT_TIMESTAMP AT TIME ZONE 'Europe/London'; + + In the above query, the time zone used is adjusted based on the + daylight saving time rules that were in effect on the supplied + date. + + -Fix race condition that could lead to file already -exists errors during pg_clog and pg_subtrans file creation -(Tom) + + + Add GREATEST() and LEAST() variadic + functions (Pavel Stehule) + + + These functions take a variable number of arguments and return + the greatest or least value among the arguments. + + -Fix cases that could lead to crashes if a cache-invalidation -message arrives at just the wrong time (Tom) + + + Add pg_column_size() (Mark Kirkwood) + + + This returns storage size of a column, which might be compressed. + + -Properly check DOMAIN constraints for -UNKNOWN parameters in prepared statements -(Neil) + + + Add regexp_replace() (Atsushi Ogawa) + + + This allows regular expression replacement, like sed. An optional + flag argument allows selection of global (replace all) and + case-insensitive modes. + + -Ensure ALTER COLUMN TYPE will process -FOREIGN KEY, UNIQUE, and PRIMARY KEY -constraints in the proper order (Nakano Yoshihisa) + + + Fix interval division and multiplication (Bruce) + + + Previous versions sometimes returned unjustified results, like + '4 months'::interval / 5 returning '1 mon + -6 days'. + + -Fixes to allow restoring dumps that have cross-schema -references to custom operators or operator classes (Tom) + + + Fix roundoff behavior in timestamp, time, and interval output (Tom) + + + This fixes some cases in which the seconds field would be shown as + 60 instead of incrementing the higher-order fields. + + -Allow pg_restore to continue properly after a -COPY failure; formerly it tried to treat the remaining -COPY data as SQL commands (Stephen Frost) + + + Add a separate day field to type interval so a one day + interval can be distinguished from a 24 hour interval (Michael + Glaesemann) + + + Days that contain a daylight saving time adjustment are not 24 + hours long, but typically 23 or 25 hours. This change creates a + conceptual distinction between intervals of so many days + and intervals of so many hours. Adding + 1 day to a timestamp now gives the same local time on + the next day even if a daylight saving time adjustment occurs + between, whereas adding 24 hours will give a different + local time when this happens. For example, under US DST rules: + + '2005-04-03 00:00:00-05' + '1 day' = '2005-04-04 00:00:00-04' + '2005-04-03 00:00:00-05' + '24 hours' = '2005-04-04 01:00:00-04' + + + -Fix pg_ctl unregister crash -when the data directory is not specified (Magnus) + + + Add justify_days() and justify_hours() + (Michael Glaesemann) + + + These functions, respectively, adjust days to an appropriate + number of full months and days, and adjust hours to an + appropriate number of full days and hours. + + -Fix ecpg crash on AMD64 and PPC -(Neil) + + + Move /contrib/dbsize into the backend, and rename + some of the functions (Dave Page, Andreas Pflug) + + + -Recover properly if error occurs during argument passing -in PL/python (Neil) + + + pg_tablespace_size() + + -Fix PL/perl's handling of locales on -Win32 to match the backend (Andrew) + + + pg_database_size() + + -Fix crash when log_min_messages is set to -DEBUG3 or above in postgresql.conf on Win32 -(Bruce) + + + pg_relation_size() + + -Fix pgxs -L library path -specification for Win32, Cygwin, OS X, AIX (Bruce) + + + pg_total_relation_size() + + -Check that SID is enabled while checking for Win32 admin -privileges (Magnus) + + + pg_size_pretty() + + -Properly reject out-of-range date inputs (Kris -Jurka) + + + + pg_total_relation_size() includes indexes and TOAST + tables. + + -Portability fix for testing presence of finite -and isinf during configure (Tom) + + + Add functions for read-only file access to the cluster directory + (Dave Page, Andreas Pflug) + + + - + + + pg_stat_file() + + - - + + + pg_read_file() + + - - Release 8.0.6 + + + pg_ls_dir() + + - - Release date - 2006-01-09 - + + + - - This release contains a variety of fixes from 8.0.5. - + + + Add pg_reload_conf() to force reloading of the + configuration files (Dave Page, Andreas Pflug) + + - - Migration to version 8.0.6 + + + Add pg_rotate_logfile() to force rotation of the + server log file (Dave Page, Andreas Pflug) + + - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.3, see the release - notes for 8.0.3. - Also, you might need to REINDEX indexes on textual - columns after updating, if you are affected by the locale or - plperl issues described below. - - + + + Change pg_stat_* views to include TOAST tables (Tom) + + - - Changes + + - -Fix Windows code so that postmaster will continue rather -than exit if there is no more room in ShmemBackendArray (Magnus) -The previous behavior could lead to a denial-of-service situation if too -many connection requests arrive close together. This applies -only to the Windows port. + + Encoding and Locale Changes + -Fix bug introduced in 8.0 that could allow ReadBuffer -to return an already-used page as new, potentially causing loss of -recently-committed data (Tom) + + + Rename some encodings to be more consistent and to follow + international standards (Bruce) + + + -Fix for protocol-level Describe messages issued -outside a transaction or in a failed transaction (Tom) + + + UNICODE is now UTF8 + + -Fix character string comparison for locales that consider -different character combinations as equal, such as Hungarian (Tom) -This might require REINDEX to fix existing indexes on -textual columns. + + + ALT is now WIN866 + + -Set locale environment variables during postmaster startup -to ensure that plperl won't change the locale later -This fixes a problem that occurred if the postmaster was -started with environment variables specifying a different locale than what -initdb had been told. Under these conditions, any use of -plperl was likely to lead to corrupt indexes. You might need -REINDEX to fix existing indexes on -textual columns if this has happened to you. + + + WIN is now WIN1251 + + -Allow more flexible relocation of installation -directories (Tom) -Previous releases supported relocation only if all installation -directory paths were the same except for the last component. + + + TCVN is now WIN1258 + + -Fix longstanding bug in strpos() and regular expression -handling in certain rarely used Asian multi-byte character sets (Tatsuo) - + + -Various fixes for functions returning RECORDs -(Tom) + + The original names still work. + + -Fix bug in /contrib/pgcrypto gen_salt, -which caused it not to use all available salt space for MD5 and -XDES algorithms (Marko Kreen, Solar Designer) -Salts for Blowfish and standard DES are unaffected. + + + Add support for WIN1252 encoding (Roland Volkmann) + + -Fix /contrib/dblink to throw an error, -rather than crashing, when the number of columns specified is different from -what's actually returned by the query (Joe) + + + Add support for four-byte UTF8 characters (John + Hansen) + + + Previously only one, two, and three-byte UTF8 characters + were supported. This is particularly important for support for + some Chinese character sets. + + - + + + Allow direct conversion between EUC_JP and + SJIS to improve performance (Atsushi Ogawa) + + - - + + + Allow the UTF8 encoding to work on Windows (Magnus) + + + This is done by mapping UTF8 to the Windows-native UTF16 + implementation. + + - - Release 8.0.5 + + - - Release date - 2005-12-12 - - - This release contains a variety of fixes from 8.0.4. - + + General Server-Side Language Changes + - - Migration to version 8.0.5 + + + Fix ALTER LANGUAGE RENAME (Sergey Yatskevich) + + - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.3, see the release - notes for 8.0.3. - - + + + Allow function characteristics, like strictness and volatility, + to be modified via ALTER FUNCTION (Neil) + + - - Changes + + + Increase the maximum number of function arguments to 100 (Tom) + + - + + + Allow SQL and PL/PgSQL functions to use OUT and + INOUT parameters (Tom) + + + OUT is an alternate way for a function to return + values. Instead of using RETURN, values can be + returned by assigning to parameters declared as OUT or + INOUT. This is notationally simpler in some cases, + particularly so when multiple values need to be returned. + While returning multiple values from a function + was possible in previous releases, this greatly simplifies the + process. (The feature will be extended to other server-side + languages in future releases.) + + -Fix race condition in transaction log management -There was a narrow window in which an I/O operation could be initiated -for the wrong page, leading to an Assert failure or data -corruption. - + + + Move language handler functions into the pg_catalog schema + + + This makes it easier to drop the public schema if desired. + + -Fix bgwriter problems after recovering from errors -(Tom) - -The background writer was found to leak buffer pins after write errors. -While not fatal in itself, this might lead to mysterious blockages of -later VACUUM commands. - - + + + Add SPI_getnspname() to SPI (Neil) + + -Prevent failure if client sends Bind protocol message -when current transaction is already aborted + + -/contrib/ltree fixes (Teodor) + + PL/PgSQL Server-Side Language Changes + -AIX and HPUX compile fixes (Tom) + + + Overhaul the memory management of PL/PgSQL functions (Neil) + + + The parsetree of each function is now stored in a separate + memory context. This allows this memory to be easily reclaimed + when it is no longer needed. + + -Retry file reads and writes after Windows -NO_SYSTEM_RESOURCES error (Qingqing Zhou) + + + Check function syntax at CREATE FUNCTION time, + rather than at runtime (Neil) + + + Previously, most syntax errors were reported only when the + function was executed. + + -Fix intermittent failure when log_line_prefix -includes %i + + + Allow OPEN to open non-SELECT queries + like EXPLAIN and SHOW (Tom) + + -Fix psql performance issue with long scripts -on Windows (Merlin Moncure) + + + No longer require functions to issue a RETURN + statement (Tom) + + + This is a byproduct of the newly added OUT and + INOUT functionality. RETURN can + be omitted when it is not needed to provide the function's + return value. + + -Fix missing updates of pg_group flat -file + + + Add support for an optional INTO clause to + PL/PgSQL's EXECUTE statement (Pavel Stehule, Neil) + + -Fix longstanding planning error for outer joins -This bug sometimes caused a bogus error RIGHT JOIN is -only supported with merge-joinable join conditions. + + + Make CREATE TABLE AS set ROW_COUNT (Tom) + + -Postpone timezone initialization until after -postmaster.pid is created -This avoids confusing startup scripts that expect the pid file to appear -quickly. + + + Define SQLSTATE and SQLERRM to return + the SQLSTATE and error message of the current + exception (Pavel Stehule, Neil) + + + These variables are only defined inside exception blocks. + + -Prevent core dump in pg_autovacuum when a -table has been dropped + + + Allow the parameters to the RAISE statement to be + expressions (Pavel Stehule, Neil) + + -Fix problems with whole-row references (foo.*) -to subquery results - + + + Add a loop CONTINUE statement (Pavel Stehule, Neil) + + - - + + + Allow block and loop labels (Pavel Stehule) + + - - Release 8.0.4 + + - - Release date - 2005-10-04 - - - This release contains a variety of fixes from 8.0.3. - + + PL/Perl Server-Side Language Changes + - - Migration to version 8.0.4 + + + Allow large result sets to be returned efficiently (Abhijit + Menon-Sen) + + + This allows functions to use return_next() to avoid + building the entire result set in memory. + + - - A dump/restore is not required for those running 8.0.X. However, - if you are upgrading from a version earlier than 8.0.3, see the release - notes for 8.0.3. - - + + + Allow one-row-at-a-time retrieval of query results (Abhijit Menon-Sen) + + + This allows functions to use spi_query() and + spi_fetchrow() to avoid accumulating the entire + result set in memory. + + - - Changes + + + Force PL/Perl to handle strings as UTF8 if the + server encoding is UTF8 (David Kamholz) + + - -Fix error that allowed VACUUM to remove -ctid chains too soon, and add more checking in code that follows -ctid links -This fixes a long-standing problem that could cause crashes in very rare -circumstances. -Fix CHAR() to properly pad spaces to the specified -length when using a multiple-byte character set (Yoshiyuki Asaba) -In prior releases, the padding of CHAR() was incorrect -because it only padded to the specified number of bytes without -considering how many characters were stored. -Force a checkpoint before committing CREATE -DATABASE -This should fix recent reports of index is not a btree -failures when a crash occurs shortly after CREATE -DATABASE. -Fix the sense of the test for read-only transaction -in COPY -The code formerly prohibited COPY TO, where it should -prohibit COPY FROM. - -Handle consecutive embedded newlines in COPY -CSV-mode input -Fix date_trunc(week) for dates near year -end -Fix planning problem with outer-join ON clauses that reference -only the inner-side relation -Further fixes for x FULL JOIN y ON true corner -cases -Fix overenthusiastic optimization of x IN (SELECT -DISTINCT ...) and related cases -Fix mis-planning of queries with small LIMIT -values due to poorly thought out fuzzy cost -comparison -Make array_in and array_recv more -paranoid about validating their OID parameter -Fix missing rows in queries like UPDATE a=... WHERE -a... with GiST index on column a -Improve robustness of datetime parsing -Improve checking for partially-written WAL -pages -Improve robustness of signal handling when SSL is -enabled -Improve MIPS and M68K spinlock code -Don't try to open more than max_files_per_process -files during postmaster startup -Various memory leakage fixes -Various portability improvements -Update timezone data files -Improve handling of DLL load failures on Windows -Improve random-number generation on Windows -Make psql -f filename return a nonzero exit code -when opening the file fails -Change pg_dump to handle inherited check -constraints more reliably -Fix password prompting in pg_restore on -Windows -Fix PL/PgSQL to handle var := var correctly when -the variable is of pass-by-reference type -Fix PL/Perl %_SHARED so it's actually -shared -Fix contrib/pg_autovacuum to allow sleep -intervals over 2000 sec -Update contrib/tsearch2 to use current Snowball -code + + + Add a validator function for PL/Perl (Andrew) + + + This allows syntax errors to be reported at definition time, + rather than execution time. + + + + + + Allow PL/Perl to return a Perl array when the function returns + an array type (Andrew) + + + This basically maps PostgreSQL arrays + to Perl arrays. + + + + + + Allow Perl nonfatal warnings to generate NOTICE + messages (Andrew) + + + + + + Allow Perl's strict mode to be enabled (Andrew) + + + + + + + + + <application>psql</> Changes + + + + + Add \set ON_ERROR_ROLLBACK to allow statements in + a transaction to error without affecting the rest of the + transaction (Greg Sabino Mullane) + + + This is basically implemented by wrapping every statement in a + sub-transaction. + + + + + + Add support for \x hex strings in + psql variables (Bruce) + + + Octal escapes were already supported. + + + + + + Add support for troff -ms output format (Roger + Leigh) + + + + + + Allow the history file location to be controlled by + HISTFILE (Andreas Seltenreich) + + + This allows configuration of per-database history storage. + + + + + + Prevent \x (expanded mode) from affecting + the output of \d tablename (Neil) + + + + + + Add + + This option was added because some operating systems do not have + simple command-line activity logging functionality. + + + + + + Make \d show the tablespaces of indexes (Qingqing + Zhou) + + + + + + Allow psql help (\h) to + make a best guess on the proper help information (Greg Sabino + Mullane) + + + This allows the user to just add \h to the front of + the syntax error query and get help on the supported syntax. + Previously any additional query text beyond the command name + had to be removed to use \h. + + + + + + Add \pset numericlocale to allow numbers to be + output in a locale-aware format (Eugen Nedelcu) + + + For example, using C locale 100000 would + be output as 100,000.0 while a European locale might + output this value as 100.000,0. + + + + + + Make startup banner show both server version number and + psql's version number, when they are different (Bruce) + + + Also, a warning will be shown if the server and psql + are from different major releases. + + + + + + + + + <application>pg_dump</> Changes + + + + + Add + + This allows just the objects in a specified schema to be restored. + + + + + + Allow pg_dump to dump large objects even in + text mode (Tom) + + + With this change, large objects are now always dumped; the former + + + + + + Allow pg_dump to dump a consistent snapshot of + large objects (Tom) + + + + + + Dump comments for large objects (Tom) + + + + + + Add + + This allows a database to be dumped in an encoding that is + different from the server's encoding. This is valuable when + transferring the dump to a machine with a different encoding. + + + + + + Rely on pg_pltemplate for procedural languages (Tom) + + + If the call handler for a procedural language is in the + pg_catalog schema, pg_dump does not + dump the handler. Instead, it dumps the language using just + CREATE LANGUAGE name, + relying on the pg_pltemplate catalog to provide + the language's creation parameters at load time. + + + + + + + + + <application>libpq</application> Changes + + + + + Add a PGPASSFILE environment variable to specify the + password file's filename (Andrew) + + + + + + Add lo_create(), that is similar to + lo_creat() but allows the OID of the large object + to be specified (Tom) + + + + + + Make libpq consistently return an error + to the client application on malloc() + failure (Neil) + + + + + + + + Source Code Changes + + + + + Fix pgxs to support building against a relocated + installation + + + + + + Add spinlock support for the Itanium processor using Intel + compiler (Vikram Kalsi) + + + + + + Add Kerberos 5 support for Windows (Magnus) + + + + + + Add Chinese FAQ (laser@pgsqldb.com) + + + + + + Rename Rendezvous to Bonjour to match OS/X feature renaming + (Bruce) + + + + + + Add support for fsync_writethrough on + Darwin (Chris Campbell) + + + + + + Streamline the passing of information within the server, the + optimizer, and the lock system (Tom) + + + + + + Allow pg_config to be compiled using MSVC (Andrew) + + + This is required to build DBD::Pg using MSVC. + + + + + + Remove support for Kerberos V4 (Magnus) + + + Kerberos 4 had security vulnerabilities and is no longer + maintained. + + + + + + Code cleanups (Coverity static analysis performed by + EnterpriseDB) + + + + + + Modify postgresql.conf to use documentation defaults + on/off rather than + true/false (Bruce) + + + + + + Enhance pg_config to be able to report more + build-time values (Tom) + + + + + + Allow libpq to be built thread-safe + on Windows (Dave Page) + + + + + + Allow IPv6 connections to be used on Windows (Andrew) + + + + + + Add Server Administration documentation about I/O subsystem + reliability (Bruce) + + + + + + Move private declarations from gist.h to + gist_private.h (Neil) + + + + In previous releases, gist.h contained both the + public GiST API (intended for use by authors of GiST index + implementations) as well as some private declarations used by + the implementation of GiST itself. The latter have been moved + to a separate file, gist_private.h. Most GiST + index implementations should be unaffected. + + + + + + Overhaul GiST memory management (Neil) + + + + GiST methods are now always invoked in a short-lived memory + context. Therefore, memory allocated via palloc() + will be reclaimed automatically, so GiST index implementations + do not need to manually release allocated memory via + pfree(). + + + + + + + + Contrib Changes + + + + + Add /contrib/pg_buffercache contrib module (Mark + Kirkwood) + + + This displays the contents of the buffer cache, for debugging and + performance tuning purposes. + + + + + + Remove /contrib/array because it is obsolete (Tom) + + + + + + Clean up the /contrib/lo module (Tom) + + + + + + Move /contrib/findoidjoins to + /src/tools (Tom) + + + + + + Remove the <<, >>, + &<, and &> operators from + /contrib/cube + + + These operators were not useful. + + + + + + Improve /contrib/btree_gist (Janko Richter) + + + + + + Improve /contrib/pgbench (Tomoaki Sato, Tatsuo) + + + There is now a facility for testing with SQL command scripts given + by the user, instead of only a hard-wired command sequence. + + + + + + Improve /contrib/pgcrypto (Marko Kreen) + + + + + + + Implementation of OpenPGP symmetric-key and public-key encryption + + + Both RSA and Elgamal public-key algorithms are supported. + + + + + + Stand alone build: include SHA256/384/512 hashes, Fortuna PRNG + + + + + + OpenSSL build: support 3DES, use internal AES with OpenSSL < 0.9.7 + + + + + + Take build parameters (OpenSSL, zlib) from configure result + + + There is no need to edit the Makefile anymore. + + + + + + Remove support for libmhash and libmcrypt + + + + + + + + + + + + + + Release 8.0.15 + + + Release date + 2008-01-07 + + + + This release contains a variety of fixes from 8.0.14, + including fixes for significant security issues. + + + + This is the last 8.0.X release for which the PostgreSQL + community will produce binary packages for Windows. + Windows users are encouraged to move to 8.2.X or later, + since there are Windows-specific fixes in 8.2.X that + are impractical to back-port. 8.0.X will continue to + be supported on other platforms. + + + + Migration to Version 8.0.15 + + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + + + + + Changes + + + + + + Prevent functions in indexes from executing with the privileges of + the user running VACUUM, ANALYZE, etc (Tom) + + + + Functions used in index expressions and partial-index + predicates are evaluated whenever a new table entry is made. It has + long been understood that this poses a risk of trojan-horse code + execution if one modifies a table owned by an untrustworthy user. + (Note that triggers, defaults, check constraints, etc. pose the + same type of risk.) But functions in indexes pose extra danger + because they will be executed by routine maintenance operations + such as VACUUM FULL, which are commonly performed + automatically under a superuser account. For example, a nefarious user + can execute code with superuser privileges by setting up a + trojan-horse index definition and waiting for the next routine vacuum. + The fix arranges for standard maintenance operations + (including VACUUM, ANALYZE, REINDEX, + and CLUSTER) to execute as the table owner rather than + the calling user, using the same privilege-switching mechanism already + used for SECURITY DEFINER functions. To prevent bypassing + this security measure, execution of SET SESSION + AUTHORIZATION and SET ROLE is now forbidden within a + SECURITY DEFINER context. (CVE-2007-6600) + + + + + + Repair assorted bugs in the regular-expression package (Tom, Will Drewry) + + + + Suitably crafted regular-expression patterns could cause crashes, + infinite or near-infinite looping, and/or massive memory consumption, + all of which pose denial-of-service hazards for applications that + accept regex search patterns from untrustworthy sources. + (CVE-2007-4769, CVE-2007-4772, CVE-2007-6067) + + + + + + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) + + + + The fix that appeared for this in 8.0.14 was incomplete, as it plugged + the hole for only some dblink functions. (CVE-2007-6601, + CVE-2007-3278) + + + + + + Update time zone data files to tzdata release 2007k + (in particular, recent Argentina changes) (Tom) + + + + + + Fix planner failure in some cases of WHERE false AND var IN + (SELECT ...) (Tom) + + + + + + Preserve the tablespace of indexes that are + rebuilt by ALTER TABLE ... ALTER COLUMN TYPE (Tom) + + + + + + Make archive recovery always start a new WAL timeline, rather than only + when a recovery stop time was used (Simon) + + + + This avoids a corner-case risk of trying to overwrite an existing + archived copy of the last WAL segment, and seems simpler and cleaner + than the original definition. + + + + + + Make VACUUM not use all of maintenance_work_mem + when the table is too small for it to be useful (Alvaro) + + + + + + Fix potential crash in translate() when using a multibyte + database encoding (Tom) + + + + + + Fix PL/Perl to cope when platform's Perl defines type bool + as int rather than char (Tom) + + + + While this could theoretically happen anywhere, no standard build of + Perl did things this way ... until Mac OS X 10.5. + + + + + + Fix PL/Python to not crash on long exception messages (Alvaro) + + + + + + Fix pg_dump to correctly handle inheritance child tables + that have default expressions different from their parent's (Tom) + + + + + + ecpg parser fixes (Michael) + + + + + + Make contrib/tablefunc's crosstab() handle + NULL rowid as a category in its own right, rather than crashing (Joe) + + + + + + Fix tsvector and tsquery output routines to + escape backslashes correctly (Teodor, Bruce) + + + + + + Fix crash of to_tsvector() on huge input strings (Teodor) + + + + + + Require a specific version of Autoconf to be used + when re-generating the configure script (Peter) + + + + This affects developers and packagers only. The change was made + to prevent accidental use of untested combinations of + Autoconf and PostgreSQL versions. + You can remove the version check if you really want to use a + different Autoconf version, but it's + your responsibility whether the result works or not. + + + + + + + + + + Release 8.0.14 + + + Release date + 2007-09-17 + + + + This release contains a variety of fixes from 8.0.13. + + + + Migration to Version 8.0.14 + + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + + + + + Changes + + + + + + Prevent index corruption when a transaction inserts rows and + then aborts close to the end of a concurrent VACUUM + on the same table (Tom) + + + + + + Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) + + + + + + Fix excessive logging of SSL error messages (Tom) + + + + + + Fix logging so that log messages are never interleaved when using + the syslogger process (Andrew) + + + + + + Fix crash when log_min_error_statement logging runs out + of memory (Tom) + + + + + + Fix incorrect handling of some foreign-key corner cases (Tom) + + + + + + Prevent CLUSTER from failing + due to attempting to process temporary tables of other sessions (Alvaro) + + + + + + Update the time zone database rules, particularly New Zealand's upcoming changes (Tom) + + + + + + Windows socket improvements (Magnus) + + + + + + Suppress timezone name (%Z) in log timestamps on Windows + because of possible encoding mismatches (Tom) + + + + + + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) + + + + + + + + + + Release 8.0.13 + + + Release date + 2007-04-23 + + + + This release contains a variety of fixes from 8.0.12, + including a security fix. + + + + Migration to Version 8.0.13 + + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + + + + + Changes + + + + + + Support explicit placement of the temporary-table schema within + search_path, and disable searching it for functions + and operators (Tom) + + + This is needed to allow a security-definer function to set a + truly secure value of search_path. Without it, + an unprivileged SQL user can use temporary objects to execute code + with the privileges of the security-definer function (CVE-2007-2138). + See CREATE FUNCTION for more information. + + + + + + /contrib/tsearch2 crash fixes (Teodor) + + + + + + Fix potential-data-corruption bug in how VACUUM FULL handles + UPDATE chains (Tom, Pavan Deolasee) + + + + + + Fix PANIC during enlargement of a hash index (bug introduced in 8.0.10) + (Tom) + + + + + + Fix POSIX-style timezone specs to follow new USA DST rules (Tom) + + + + + + + + + + Release 8.0.12 + + + Release date + 2007-02-07 + + + + This release contains one fix from 8.0.11. + + + + Migration to Version 8.0.12 + + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + + + + + Changes + + + + + + Remove overly-restrictive check for type length in constraints and + functional indexes(Tom) + + + + + + + + + + Release 8.0.11 + + + Release date + 2007-02-05 + + + + This release contains a variety of fixes from 8.0.10, including + a security fix. + + + + Migration to Version 8.0.11 + + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + + + + + Changes + + + + + + Remove security vulnerabilities that allowed connected users + to read backend memory (Tom) + + + The vulnerabilities involve suppressing the normal check that a SQL + function returns the data type it's declared to, and changing the + data type of a table column (CVE-2007-0555, CVE-2007-0556). These + errors can easily be exploited to cause a backend crash, and in + principle might be used to read database content that the user + should not be able to access. + + + + + + Fix rare bug wherein btree index page splits could fail + due to choosing an infeasible split point (Heikki Linnakangas) + + + + + + Fix for rare Assert() crash triggered by UNION (Tom) + + + + + + Tighten security of multi-byte character processing for UTF8 sequences + over three bytes long (Tom) + + + + + + + + + + Release 8.0.10 + + + Release date + 2007-01-08 + + + + This release contains a variety of fixes from 8.0.9. + + + + Migration to Version 8.0.10 + + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + + + + + Changes + + + + + + Improve handling of getaddrinfo() on AIX (Tom) + + + + This fixes a problem with starting the statistics collector, + among other things. + + + + + + Fix failed to re-find parent key errors in + VACUUM (Tom) + + + + + + Fix race condition for truncation of a large relation across a + gigabyte boundary by VACUUM (Tom) + + + + + + Fix bugs affecting multi-gigabyte hash indexes (Tom) + + + + + + Fix possible deadlock in Windows signal handling (Teodor) + + + + + + Fix error when constructing an ARRAY[] made up of multiple + empty elements (Tom) + + + + + + Fix ecpg memory leak during connection (Michael) + + + + + + to_number() and to_char(numeric) + are now STABLE, not IMMUTABLE, for + new initdb installs (Tom) + + + + This is because lc_numeric can potentially + change the output of these functions. + + + + + + Improve index usage of regular expressions that use parentheses (Tom) + + + + This improves psql \d performance also. + + + + + + Update timezone database + + + + This affects Australian and Canadian daylight-savings rules in + particular. + + + + + + + + + + Release 8.0.9 + + + Release date + 2006-10-16 + + + + This release contains a variety of fixes from 8.0.8. + + + + Migration to Version 8.0.9 + + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + + + + + Changes + + +Fix crash when referencing NEW row +values in rule WHERE expressions (Tom) +Fix core dump when an untyped literal is taken as +ANYARRAY +Fix mishandling of AFTER triggers when query contains a SQL +function returning multiple rows (Tom) +Fix ALTER TABLE ... TYPE to recheck +NOT NULL for USING clause (Tom) +Fix string_to_array() to handle overlapping + matches for the separator string +For example, string_to_array('123xx456xxx789', 'xx'). + +Fix corner cases in pattern matching for + psql's \d commands +Fix index-corrupting bugs in /contrib/ltree + (Teodor) +Numerous robustness fixes in ecpg (Joachim +Wieland) +Fix backslash escaping in /contrib/dbmirror +Fix instability of statistics collection on Win32 (Tom, Andrew) +Fixes for AIX and +Intel compilers (Tom) - - + + + + + Release 8.0.8 + + + Release date + 2006-05-23 + + + + This release contains a variety of fixes from 8.0.7, + including patches for extremely serious security issues. + + + + Migration to Version 8.0.8 + + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + + + Full security against the SQL-injection attacks described in + CVE-2006-2313 and CVE-2006-2314 might require changes in application + code. If you have applications that embed untrustworthy strings + into SQL commands, you should examine them as soon as possible to + ensure that they are using recommended escaping techniques. In + most cases, applications should be using subroutines provided by + libraries or drivers (such as libpq's + PQescapeStringConn()) to perform string escaping, + rather than relying on ad hoc code to do it. + + + + + Changes + + +Change the server to reject invalidly-encoded multibyte +characters in all cases (Tatsuo, Tom) +While PostgreSQL has been moving in this direction for +some time, the checks are now applied uniformly to all encodings and all +textual input, and are now always errors not merely warnings. This change +defends against SQL-injection attacks of the type described in CVE-2006-2313. + + +Reject unsafe uses of \' in string literals +As a server-side defense against SQL-injection attacks of the type +described in CVE-2006-2314, the server now only accepts '' and not +\' as a representation of ASCII single quote in SQL string +literals. By default, \' is rejected only when +client_encoding is set to a client-only encoding (SJIS, BIG5, GBK, +GB18030, or UHC), which is the scenario in which SQL injection is possible. +A new configuration parameter backslash_quote is available to +adjust this behavior when needed. Note that full security against +CVE-2006-2314 might require client-side changes; the purpose of +backslash_quote is in part to make it obvious that insecure +clients are insecure. + - - Release 8.0.3 +Modify libpq's string-escaping routines to be +aware of encoding considerations and +standard_conforming_strings +This fixes libpq-using applications for the security +issues described in CVE-2006-2313 and CVE-2006-2314, and also future-proofs +them against the planned changeover to SQL-standard string literal syntax. +Applications that use multiple PostgreSQL connections +concurrently should migrate to PQescapeStringConn() and +PQescapeByteaConn() to ensure that escaping is done correctly +for the settings in use in each database connection. Applications that +do string escaping by hand should be modified to rely on library +routines instead. + - - Release date - 2005-05-09 - +Fix some incorrect encoding conversion functions +win1251_to_iso, alt_to_iso, +euc_tw_to_big5, euc_tw_to_mic, +mic_to_euc_tw were all broken to varying +extents. + - - This release contains a variety of fixes from 8.0.2, including several - security-related issues. - +Clean up stray remaining uses of \' in strings +(Bruce, Jan) - - Migration to version 8.0.3 +Fix bug that sometimes caused OR'd index scans to +miss rows they should have returned - - A dump/restore is not required for those running 8.0.X. However, - it is one possible way of handling two significant security problems - that have been found in the initial contents of 8.0.X system - catalogs. A dump/initdb/reload sequence using 8.0.3's initdb will - automatically correct these problems. - +Fix WAL replay for case where a btree index has been +truncated - - The larger security problem is that the built-in character set encoding - conversion functions can be invoked from SQL commands by unprivileged - users, but the functions were not designed for such use and are not - secure against malicious choices of arguments. The fix involves changing - the declared parameter list of these functions so that they can no longer - be invoked from SQL commands. (This does not affect their normal use - by the encoding conversion machinery.) - +Fix SIMILAR TO for patterns involving +| (Tom) - - The lesser problem is that the contrib/tsearch2 module - creates several functions that are improperly declared to return - internal when they do not accept internal arguments. - This breaks type safety for all functions using internal - arguments. - +Fix SELECT INTO and CREATE TABLE AS to +create tables in the default tablespace, not the base directory (Kris +Jurka) - - It is strongly recommended that all installations repair these errors, - either by initdb or by following the manual repair procedure given - below. The errors at least allow unprivileged database users to crash - their server process, and might allow unprivileged users to gain the - privileges of a database superuser. - +Fix server to use custom DH SSL parameters correctly (Michael +Fuhr) - - If you wish not to do an initdb, perform the same manual repair - procedures shown in the 7.4.8 release - notes. - - +Fix for Bonjour on Intel Macs (Ashley Clark) - - Changes +Fix various minor memory leaks - -Change encoding function signature to prevent -misuse -Change contrib/tsearch2 to avoid unsafe use of -INTERNAL function results -Guard against incorrect second parameter to -record_out -Repair ancient race condition that allowed a transaction to be -seen as committed for some purposes (eg SELECT FOR UPDATE) slightly sooner -than for other purposes -This is an extremely serious bug since it could lead to apparent -data inconsistencies being briefly visible to applications. -Repair race condition between relation extension and -VACUUM -This could theoretically have caused loss of a page's worth of -freshly-inserted data, although the scenario seems of very low probability. -There are no known cases of it having caused more than an Assert failure. - -Fix comparisons of TIME WITH TIME ZONE values - -The comparison code was wrong in the case where the ---enable-integer-datetimes configuration switch had been used. -NOTE: if you have an index on a TIME WITH TIME ZONE column, -it will need to be REINDEXed after installing this update, because -the fix corrects the sort order of column values. - -Fix EXTRACT(EPOCH) for -TIME WITH TIME ZONE values -Fix mis-display of negative fractional seconds in -INTERVAL values - -This error only occurred when the ---enable-integer-datetimes configuration switch had been used. - -Fix pg_dump to dump trigger names containing % -correctly (Neil) -Still more 64-bit fixes for -contrib/intagg -Prevent incorrect optimization of functions returning -RECORD -Prevent crash on COALESCE(NULL,NULL) -Fix Borland makefile for libpq -Fix contrib/btree_gist for timetz type -(Teodor) -Make pg_ctl check the PID found in -postmaster.pid to see if it is still a live -process -Fix pg_dump/pg_restore problems caused -by addition of dump timestamps -Fix interaction between materializing holdable cursors and -firing deferred triggers during transaction commit -Fix memory leak in SQL functions returning pass-by-reference -data types +Fix problem with password prompting on some Win32 systems +(Robert Kinberg) - - + + - - Release 8.0.2 + + Release 8.0.7 - - Release date - 2005-04-07 - + + Release date + 2006-02-14 + - - This release contains a variety of fixes from 8.0.1. - + + This release contains a variety of fixes from 8.0.6. + - - Migration to version 8.0.2 + + Migration to Version 8.0.7 - - A dump/restore is not required for those running 8.0.*. - This release updates the major version number of the - PostgreSQL libraries, so it might be - necessary to re-link some user applications if they cannot - find the properly-numbered shared library. - - + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.6, see the release + notes for 8.0.6. + + - - Changes + + Changes -Increment the major version number of all interface - libraries (Bruce) - - This should have been done in 8.0.0. It is required so 7.4.X versions - of PostgreSQL client applications, like psql, - can be used on the same machine as 8.0.X applications. This might require - re-linking user applications that use these libraries. - -Add Windows-only wal_sync_method setting of - - - This setting causes PostgreSQL to write through - any disk-drive write cache when writing to WAL. - This behavior was formerly called - -Enable the wal_sync_method setting of - - - Because the default is no longer - -New cache management algorithm 2Q replaces - ARC (Tom) - - This was done to avoid a pending US patent on ARC. The - 2Q code might be a few percentage points slower than - ARC for some work loads. A better cache management algorithm - will appear in 8.1. - -Planner adjustments to improve behavior on freshly-created -tables (Tom) -Allow plpgsql to assign to an element of an array that is -initially NULL (Tom) - - Formerly the array would remain NULL, but now it becomes a - single-element array. The main SQL engine was changed to handle - UPDATE of a null array value this way in 8.0, but the similar - case in plpgsql was overlooked. - - -Convert \r\n and \r to \n -in plpython function bodies (Michael Fuhr) - - This prevents syntax errors when plpython code is written on a Windows or - Mac client. - - -Allow SPI cursors to handle utility commands that return rows, -such as EXPLAIN (Tom) -Fix CLUSTER failure after ALTER TABLE - SET WITHOUT OIDS (Tom) -Reduce memory usage of ALTER TABLE ADD COLUMN - (Neil) -Fix ALTER LANGUAGE RENAME (Tom) -Document the Windows-only register and -unregister options of pg_ctl (Magnus) -Ensure operations done during backend shutdown are counted by -statistics collector - - This is expected to resolve reports of pg_autovacuum - not vacuuming the system catalogs often enough — it was not being - told about catalog deletions caused by temporary table removal during - backend exit. - -Change the Windows default for configuration parameter - log_destination to - - By default, a server running on Windows will now send log output to the - Windows event logger rather than standard error. - -Make Kerberos authentication work on Windows (Magnus) -Allow ALTER DATABASE RENAME by superusers - who aren't flagged as having CREATEDB privilege (Tom) -Modify WAL log entries for CREATE and -DROP DATABASE to not specify absolute paths (Tom) - This allows point-in-time recovery on a different machine with possibly - different database location. Note that CREATE TABLESPACE still - poses a hazard in such situations. - -Fix crash from a backend exiting with an open transaction - that created a table and opened a cursor on it (Tom) -Fix array_map() so it can call PL functions - (Tom) -Several contrib/tsearch2 and -contrib/btree_gist fixes (Teodor) - -Fix crash of some contrib/pgcrypto - functions on some platforms (Marko Kreen) -Fix contrib/intagg for 64-bit platforms - (Tom) -Fix ecpg bugs in parsing of CREATE statement - (Michael) -Work around gcc bug on powerpc and amd64 causing problems in - ecpg (Christof Petig) -Do not use locale-aware versions of upper(), - lower(), and initcap() when the locale is - C (Bruce) - - This allows these functions to work on platforms that generate errors - for non-7-bit data when the locale is C. + +Fix potential crash in SET +SESSION AUTHORIZATION (CVE-2006-0553) +An unprivileged user could crash the server process, resulting in +momentary denial of service to other users, if the server has been compiled +with Asserts enabled (which is not the default). +Thanks to Akio Ishida for reporting this problem. -Fix quote_ident() to quote names that match keywords (Tom) -Fix to_date() to behave reasonably when - CC and YY fields are both used (Karel) -Prevent to_char(interval) from failing - when given a zero-month interval (Tom) -Fix wrong week returned by date_trunc('week') -(Bruce) - - date_trunc('week') - returned the wrong year for the first few days of January in some years. + +Fix bug with row visibility logic in self-inserted +rows (Tom) +Under rare circumstances a row inserted by the current command +could be seen as already valid, when it should not be. Repairs bug +created in 8.0.4, 7.4.9, and 7.3.11 releases. -Use the correct default mask length for class D - addresses in INET data types (Tom) - - - +Fix race condition that could lead to file already +exists errors during pg_clog and pg_subtrans file creation +(Tom) - - Release 8.0.1 +Fix cases that could lead to crashes if a cache-invalidation +message arrives at just the wrong time (Tom) - - Release date - 2005-01-31 - +Properly check DOMAIN constraints for +UNKNOWN parameters in prepared statements +(Neil) - - This release contains a variety of fixes from 8.0.0, including several - security-related issues. - +Ensure ALTER COLUMN TYPE will process +FOREIGN KEY, UNIQUE, and PRIMARY KEY +constraints in the proper order (Nakano Yoshihisa) - - Migration to version 8.0.1 +Fixes to allow restoring dumps that have cross-schema +references to custom operators or operator classes (Tom) - - A dump/restore is not required for those running 8.0.0. - - +Allow pg_restore to continue properly after a +COPY failure; formerly it tried to treat the remaining +COPY data as SQL commands (Stephen Frost) + +Fix pg_ctl unregister crash +when the data directory is not specified (Magnus) + +Fix ecpg crash on AMD64 and PPC +(Neil) + +Recover properly if error occurs during argument passing +in PL/python (Neil) + +Fix PL/perl's handling of locales on +Win32 to match the backend (Andrew) + +Fix crash when log_min_messages is set to +DEBUG3 or above in postgresql.conf on Win32 +(Bruce) - - Changes +Fix pgxs -L library path +specification for Win32, Cygwin, OS X, AIX (Bruce) - -Disallow LOAD to non-superusers - -On platforms that will automatically execute initialization functions of a -shared library (this includes at least Windows and ELF-based Unixen), -LOAD can be used to make the server execute arbitrary code. -Thanks to NGS Software for reporting this. -Check that creator of an aggregate function has the right to -execute the specified transition functions - -This oversight made it possible to bypass denial of EXECUTE -permission on a function. -Fix security and 64-bit issues in -contrib/intagg -Add needed STRICT marking to some contrib functions (Kris +Check that SID is enabled while checking for Win32 admin +privileges (Magnus) + +Properly reject out-of-range date inputs (Kris Jurka) -Avoid buffer overrun when plpgsql cursor declaration has too -many parameters (Neil) -Make ALTER TABLE ADD COLUMN enforce domain -constraints in all cases -Fix planning error for FULL and RIGHT outer joins - -The result of the join was mistakenly supposed to be sorted the same as the -left input. This could not only deliver mis-sorted output to the user, but -in case of nested merge joins could give outright wrong answers. - -Improve planning of grouped aggregate queries -ROLLBACK TO savepoint -closes cursors created since the savepoint -Fix inadequate backend stack size on Windows -Avoid SHGetSpecialFolderPath() on Windows -(Magnus) -Fix some problems in running pg_autovacuum as a Windows -service (Dave Page) -Multiple minor bug fixes in -pg_dump/pg_restore -Fix ecpg segfault with named structs used in -typedefs (Michael) - - - +Portability fix for testing presence of finite +and isinf during configure (Tom) - - Release 8.0 + - - Release date - 2005-01-19 - + + - - Overview + + Release 8.0.6 - - Major changes in this release: - + + Release date + 2006-01-09 + - - - - Microsoft Windows Native Server - + + This release contains a variety of fixes from 8.0.5. + - - - This is the first PostgreSQL release - to run natively on Microsoft Windows as - a server. It can run as a Windows service. This - release supports NT-based Windows releases like - Windows 2000 SP4, Windows XP, and - Windows 2003. Older releases like - Windows 95, Windows 98, and - Windows ME are not supported because these operating - systems do not have the infrastructure to support - PostgreSQL. A separate installer - project has been created to ease installation on - Windows — see . - + + Migration to Version 8.0.6 - - Although tested throughout our release cycle, the Windows port - does not have the benefit of years of use in production - environments that PostgreSQL has on - Unix platforms. Therefore it should be treated with the same - level of caution as you would a new product. - + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.3, see the release + notes for 8.0.3. + Also, you might need to REINDEX indexes on textual + columns after updating, if you are affected by the locale or + plperl issues described below. + + - - Previous releases required the Unix emulation toolkit - Cygwin in order to run the server on Windows - operating systems. PostgreSQL has - supported native clients on Windows for many years. - - - + + Changes - - - Savepoints - + - - - Savepoints allow specific parts of a transaction to be aborted - without affecting the remainder of the transaction. Prior - releases had no such capability; there was no way to recover - from a statement failure within a transaction except by - aborting the whole transaction. This feature is valuable for - application writers who require error recovery within a - complex transaction. - - - +Fix Windows code so that postmaster will continue rather +than exit if there is no more room in ShmemBackendArray (Magnus) +The previous behavior could lead to a denial-of-service situation if too +many connection requests arrive close together. This applies +only to the Windows port. - - - Point-In-Time Recovery - +Fix bug introduced in 8.0 that could allow ReadBuffer +to return an already-used page as new, potentially causing loss of +recently-committed data (Tom) - - - In previous releases there was no way to recover from disk - drive failure except to restore from a previous backup or use - a standby replication server. Point-in-time recovery allows - continuous backup of the server. You can recover either to - the point of failure or to some transaction in the past. - - - +Fix for protocol-level Describe messages issued +outside a transaction or in a failed transaction (Tom) - - - Tablespaces - +Fix character string comparison for locales that consider +different character combinations as equal, such as Hungarian (Tom) +This might require REINDEX to fix existing indexes on +textual columns. - - - Tablespaces allow administrators to select different file systems - for storage of individual tables, indexes, and databases. - This improves performance and control over disk space - usage. Prior releases used initlocation and - manual symlink management for such tasks. - - - +Set locale environment variables during postmaster startup +to ensure that plperl won't change the locale later +This fixes a problem that occurred if the postmaster was +started with environment variables specifying a different locale than what +initdb had been told. Under these conditions, any use of +plperl was likely to lead to corrupt indexes. You might need +REINDEX to fix existing indexes on +textual columns if this has happened to you. - - - Improved Buffer Management, CHECKPOINT, - VACUUM - +Allow more flexible relocation of installation +directories (Tom) +Previous releases supported relocation only if all installation +directory paths were the same except for the last component. - - - This release has a more intelligent buffer replacement strategy, - which will make better use of available shared buffers and - improve performance. The performance impact of vacuum and - checkpoints is also lessened. - - - +Fix longstanding bug in strpos() and regular expression +handling in certain rarely used Asian multi-byte character sets (Tatsuo) + - - - Change Column Types - +Various fixes for functions returning RECORDs +(Tom) - - - A column's data type can now be changed with ALTER - TABLE. - - - +Fix bug in /contrib/pgcrypto gen_salt, +which caused it not to use all available salt space for MD5 and +XDES algorithms (Marko Kreen, Solar Designer) +Salts for Blowfish and standard DES are unaffected. - - - New Perl Server-Side Language - +Fix /contrib/dblink to throw an error, +rather than crashing, when the number of columns specified is different from +what's actually returned by the query (Joe) - - - A new version of the plperl server-side language now - supports a persistent shared storage area, triggers, returning records - and arrays of records, and SPI calls to access the database. - - - + - - - Comma-separated-value (CSV) support in COPY - + + - - - COPY can now read and write - comma-separated-value files. It has the flexibility to - interpret nonstandard quoting and separation characters too. - - - + + Release 8.0.5 - - + + Release date + 2005-12-12 + - - Migration to version 8.0 + + This release contains a variety of fixes from 8.0.4. + - - A dump/restore using pg_dump is - required for those wishing to migrate data from any previous - release. - + + Migration to Version 8.0.5 - - Observe the following incompatibilities: - + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.3, see the release + notes for 8.0.3. + + - + + Changes - - - In - + - - - Functions declared - +Fix race condition in transaction log management +There was a narrow window in which an I/O operation could be initiated +for the wrong page, leading to an Assert failure or data +corruption. + - - - Nondeferred - +Fix bgwriter problems after recovering from errors +(Tom) + +The background writer was found to leak buffer pins after write errors. +While not fatal in itself, this might lead to mysterious blockages of +later VACUUM commands. + + - - - Server configuration parameters virtual_host and - tcpip_socket have been replaced with a more general - parameter listen_addresses. Also, the server now listens on - localhost by default, which eliminates the need for the - -i postmaster switch in many scenarios. - - +Prevent failure if client sends Bind protocol message +when current transaction is already aborted - - - Server configuration parameters SortMem and - VacuumMem have been renamed to work_mem - and maintenance_work_mem to better reflect their - use. The original names are still supported in - SET and SHOW. - - +/contrib/ltree fixes (Teodor) - - - Server configuration parameters log_pid, - log_timestamp, and log_source_port have been - replaced with a more general parameter log_line_prefix. - - +AIX and HPUX compile fixes (Tom) - - - Server configuration parameter syslog has been - replaced with a more logical log_destination variable to - control the log output destination. - - +Retry file reads and writes after Windows +NO_SYSTEM_RESOURCES error (Qingqing Zhou) - - - Server configuration parameter log_statement has been - changed so it can selectively log just database modification or - data definition statements. Server configuration parameter - log_duration now prints only when log_statement - prints the query. - - +Fix intermittent failure when log_line_prefix +includes %i - - - Server configuration parameter max_expr_depth parameter has - been replaced with max_stack_depth which measures the - physical stack size rather than the expression nesting depth. This - helps prevent session termination due to stack overflow caused by - recursive functions. - - +Fix psql performance issue with long scripts +on Windows (Merlin Moncure) - - - The length() function no longer counts trailing spaces in - CHAR(n) values. - - +Fix missing updates of pg_group flat +file - - - Casting an integer to BIT(N) selects the rightmost N bits of the - integer, not the leftmost N bits as before. - - +Fix longstanding planning error for outer joins +This bug sometimes caused a bogus error RIGHT JOIN is +only supported with merge-joinable join conditions. - - - Updating an element or slice of a NULL array value now produces - a nonnull array result, namely an array containing - just the assigned-to positions. - - +Postpone timezone initialization until after +postmaster.pid is created +This avoids confusing startup scripts that expect the pid file to appear +quickly. - - - Syntax checking of array input values has been tightened up - considerably. Junk that was previously allowed in odd places with - odd results now causes an error. Empty-string element values - must now be written as "", rather than writing nothing. - Also changed behavior with respect to whitespace surrounding - array elements: trailing whitespace is now ignored, for symmetry - with leading whitespace (which has always been ignored). - - +Prevent core dump in pg_autovacuum when a +table has been dropped - - - Overflow in integer arithmetic operations is now detected and - reported as an error. - - +Fix problems with whole-row references (foo.*) +to subquery results + - - - The arithmetic operators associated with the single-byte - "char" data type have been removed. - - + + - - - The extract() function (also called - date_part) now returns the proper year for BC dates. - It previously returned one less than the correct year. The - function now also returns the proper values for millennium and - century. - - + + Release 8.0.4 - - - CIDR values now must have their nonmasked bits be zero. - For example, we no longer allow - 204.248.199.1/31 as a CIDR value. Such - values should never have been accepted by - PostgreSQL and will now be rejected. - - + + Release date + 2005-10-04 + - - - EXECUTE now returns a completion tag that - matches the executed statement. - - + + This release contains a variety of fixes from 8.0.3. + - - - psql's \copy command now reads or - writes to the query's stdin/stdout, rather than - psql's stdin/stdout. The previous - behavior can be accessed via new - - + + Migration to Version 8.0.4 - - - The JDBC client interface has been removed from the core - distribution, and is now hosted at . - - + + A dump/restore is not required for those running 8.0.X. However, + if you are upgrading from a version earlier than 8.0.3, see the release + notes for 8.0.3. + + - - - The Tcl client interface has also been removed. There are several - Tcl interfaces now hosted at . - - + + Changes - - - The server now uses its own time zone database, rather than the - one supplied by the operating system. This will provide consistent - behavior across all platforms. In most cases, there should be - little noticeable difference in time zone behavior, except that - the time zone names used by SET/SHOW - TimeZone might be different from what your platform provides. - - + +Fix error that allowed VACUUM to remove +ctid chains too soon, and add more checking in code that follows +ctid links +This fixes a long-standing problem that could cause crashes in very rare +circumstances. +Fix CHAR() to properly pad spaces to the specified +length when using a multiple-byte character set (Yoshiyuki Asaba) +In prior releases, the padding of CHAR() was incorrect +because it only padded to the specified number of bytes without +considering how many characters were stored. +Force a checkpoint before committing CREATE +DATABASE +This should fix recent reports of index is not a btree +failures when a crash occurs shortly after CREATE +DATABASE. +Fix the sense of the test for read-only transaction +in COPY +The code formerly prohibited COPY TO, where it should +prohibit COPY FROM. + +Handle consecutive embedded newlines in COPY +CSV-mode input +Fix date_trunc(week) for dates near year +end +Fix planning problem with outer-join ON clauses that reference +only the inner-side relation +Further fixes for x FULL JOIN y ON true corner +cases +Fix overenthusiastic optimization of x IN (SELECT +DISTINCT ...) and related cases +Fix mis-planning of queries with small LIMIT +values due to poorly thought out fuzzy cost +comparison +Make array_in and array_recv more +paranoid about validating their OID parameter +Fix missing rows in queries like UPDATE a=... WHERE +a... with GiST index on column a +Improve robustness of datetime parsing +Improve checking for partially-written WAL +pages +Improve robustness of signal handling when SSL is +enabled +Improve MIPS and M68K spinlock code +Don't try to open more than max_files_per_process +files during postmaster startup +Various memory leakage fixes +Various portability improvements +Update timezone data files +Improve handling of DLL load failures on Windows +Improve random-number generation on Windows +Make psql -f filename return a nonzero exit code +when opening the file fails +Change pg_dump to handle inherited check +constraints more reliably +Fix password prompting in pg_restore on +Windows +Fix PL/PgSQL to handle var := var correctly when +the variable is of pass-by-reference type +Fix PL/Perl %_SHARED so it's actually +shared +Fix contrib/pg_autovacuum to allow sleep +intervals over 2000 sec +Update contrib/tsearch2 to use current Snowball +code + - - - Configure's threading option no longer requires - users to run tests or edit configuration files; threading options - are now detected automatically. - - + + - - - Now that tablespaces have been implemented, - initlocation has been removed. - - + + Release 8.0.3 - - - The API for user-defined GiST indexes has been changed. The - Union and PickSplit methods are now passed a pointer to a - special GistEntryVector structure, - rather than a bytea. - - + + Release date + 2005-05-09 + - - + + This release contains a variety of fixes from 8.0.2, including several + security-related issues. + - Deprecated Features + Migration to Version 8.0.3 - Some aspects of PostgreSQL's behavior - have been determined to be suboptimal. For the sake of backward - compatibility these have not been removed in 8.0, but they are - considered deprecated and will be removed in the next major - release. - - - - - - The 8.1 release will remove the to_char() function - for intervals. - - + A dump/restore is not required for those running 8.0.X. However, + it is one possible way of handling two significant security problems + that have been found in the initial contents of 8.0.X system + catalogs. A dump/initdb/reload sequence using 8.0.3's initdb will + automatically correct these problems. + - - - The server now warns of empty strings passed to - oid/float4/float8 data - types, but continues to interpret them as zeroes as before. - In the next major release, empty strings will be considered - invalid input for these data types. - - + + The larger security problem is that the built-in character set encoding + conversion functions can be invoked from SQL commands by unprivileged + users, but the functions were not designed for such use and are not + secure against malicious choices of arguments. The fix involves changing + the declared parameter list of these functions so that they can no longer + be invoked from SQL commands. (This does not affect their normal use + by the encoding conversion machinery.) + - - - By default, tables in PostgreSQL 8.0 - and earlier are created with OIDs. In the next release, - this will not be the case: to create a table - that contains OIDs, the - + + The lesser problem is that the contrib/tsearch2 module + creates several functions that are improperly declared to return + internal when they do not accept internal arguments. + This breaks type safety for all functions using internal + arguments. + - - + + It is strongly recommended that all installations repair these errors, + either by initdb or by following the manual repair procedure given + below. The errors at least allow unprivileged database users to crash + their server process, and might allow unprivileged users to gain the + privileges of a database superuser. + - - Changes + + If you wish not to do an initdb, perform the same manual repair + procedures shown in the 7.4.8 release + notes. + + - - Below you will find a detailed account of the changes between - release 8.0 and the previous major release. - + + Changes - - Performance Improvements - + +Change encoding function signature to prevent +misuse +Change contrib/tsearch2 to avoid unsafe use of +INTERNAL function results +Guard against incorrect second parameter to +record_out +Repair ancient race condition that allowed a transaction to be +seen as committed for some purposes (eg SELECT FOR UPDATE) slightly sooner +than for other purposes +This is an extremely serious bug since it could lead to apparent +data inconsistencies being briefly visible to applications. +Repair race condition between relation extension and +VACUUM +This could theoretically have caused loss of a page's worth of +freshly-inserted data, although the scenario seems of very low probability. +There are no known cases of it having caused more than an Assert failure. + +Fix comparisons of TIME WITH TIME ZONE values + +The comparison code was wrong in the case where the +--enable-integer-datetimes configuration switch had been used. +NOTE: if you have an index on a TIME WITH TIME ZONE column, +it will need to be REINDEXed after installing this update, because +the fix corrects the sort order of column values. + +Fix EXTRACT(EPOCH) for +TIME WITH TIME ZONE values +Fix mis-display of negative fractional seconds in +INTERVAL values + +This error only occurred when the +--enable-integer-datetimes configuration switch had been used. + +Fix pg_dump to dump trigger names containing % +correctly (Neil) +Still more 64-bit fixes for +contrib/intagg +Prevent incorrect optimization of functions returning +RECORD +Prevent crash on COALESCE(NULL,NULL) +Fix Borland makefile for libpq +Fix contrib/btree_gist for timetz type +(Teodor) +Make pg_ctl check the PID found in +postmaster.pid to see if it is still a live +process +Fix pg_dump/pg_restore problems caused +by addition of dump timestamps +Fix interaction between materializing holdable cursors and +firing deferred triggers during transaction commit +Fix memory leak in SQL functions returning pass-by-reference +data types + - - - Support cross-data-type index usage (Tom) - - - Before this change, many queries would not use an index if the data - types did not match exactly. This improvement makes index usage more - intuitive and consistent. - - + + - - - New buffer replacement strategy that improves caching (Jan) - - - Prior releases used a least-recently-used (LRU) cache to keep - recently referenced pages in memory. The LRU algorithm - did not consider the number of times a specific cache entry was - accessed, so large table scans could force out useful cache pages. - The new cache algorithm uses four separate lists to track most - recently used and most frequently used cache pages and dynamically - optimize their replacement based on the work load. This should - lead to much more efficient use of the shared buffer cache. - Administrators who have tested shared buffer sizes in the past - should retest with this new cache replacement policy. - - + + Release 8.0.2 - - - Add subprocess to write dirty buffers periodically to reduce - checkpoint writes (Jan) - - - In previous releases, the checkpoint process, which runs every few - minutes, would write all dirty buffers to the operating system's - buffer cache then flush all dirty operating system buffers to - disk. This resulted in a periodic spike in disk usage that often - hurt performance. The new code uses a background writer to trickle - disk writes at a steady pace so checkpoints have far fewer dirty - pages to write to disk. Also, the new code does not issue a global - sync() call, but instead fsync()s just - the files written since the last checkpoint. This should improve - performance and minimize degradation during checkpoints. - - + + Release date + 2005-04-07 + - - - Add ability to prolong vacuum to reduce performance impact (Jan) - - - On busy systems, VACUUM performs many I/O - requests which can hurt performance for other users. This - release allows you to slow down VACUUM to - reduce its impact on other users, though this increases the - total duration of VACUUM. - - + + This release contains a variety of fixes from 8.0.1. + - - - Improve B-tree index performance for duplicate keys (Dmitry Tkach, Tom) - - - This improves the way indexes are scanned when many duplicate - values exist in the index. - - + + Migration to Version 8.0.2 - - - Use dynamically-generated table size estimates while planning (Tom) - - - Formerly the planner estimated table sizes using the values seen - by the last VACUUM or ANALYZE, - both as to physical table size (number of pages) and number of rows. - Now, the current physical table size is obtained from the kernel, - and the number of rows is estimated by multiplying the table size - by the row density (rows per page) seen by the last - VACUUM or ANALYZE. This should - produce more reliable estimates in cases where the table size has - changed significantly since the last housekeeping command. - - + + A dump/restore is not required for those running 8.0.*. + This release updates the major version number of the + PostgreSQL libraries, so it might be + necessary to re-link some user applications if they cannot + find the properly-numbered shared library. + + - - - Improved index usage with OR clauses (Tom) - - - This allows the optimizer to use indexes in statements with many OR - clauses that would not have been indexed in the past. It can also use - multi-column indexes where the first column is specified and the second - column is part of an OR clause. - - + + Changes - - - Improve matching of partial index clauses (Tom) - - - The server is now smarter about using partial indexes in queries - involving complex - + +Increment the major version number of all interface +libraries (Bruce) + +This should have been done in 8.0.0. It is required so 7.4.X versions +of PostgreSQL client applications, like psql, +can be used on the same machine as 8.0.X applications. This might require +re-linking user applications that use these libraries. + +Add Windows-only wal_sync_method setting of + + +This setting causes PostgreSQL to write through +any disk-drive write cache when writing to WAL. +This behavior was formerly called + +Enable the wal_sync_method setting of + + +Because the default is no longer + +New cache management algorithm 2Q replaces +ARC (Tom) + +This was done to avoid a pending US patent on ARC. The +2Q code might be a few percentage points slower than +ARC for some work loads. A better cache management algorithm +will appear in 8.1. + +Planner adjustments to improve behavior on freshly-created +tables (Tom) +Allow plpgsql to assign to an element of an array that is +initially NULL (Tom) + +Formerly the array would remain NULL, but now it becomes a +single-element array. The main SQL engine was changed to handle +UPDATE of a null array value this way in 8.0, but the similar +case in plpgsql was overlooked. + + +Convert \r\n and \r to \n +in plpython function bodies (Michael Fuhr) + + This prevents syntax errors when plpython code is written on a Windows or + Mac client. + + +Allow SPI cursors to handle utility commands that return rows, +such as EXPLAIN (Tom) +Fix CLUSTER failure after ALTER TABLE +SET WITHOUT OIDS (Tom) +Reduce memory usage of ALTER TABLE ADD COLUMN +(Neil) +Fix ALTER LANGUAGE RENAME (Tom) +Document the Windows-only register and +unregister options of pg_ctl (Magnus) +Ensure operations done during backend shutdown are counted by +statistics collector + +This is expected to resolve reports of pg_autovacuum +not vacuuming the system catalogs often enough — it was not being +told about catalog deletions caused by temporary table removal during +backend exit. + +Change the Windows default for configuration parameter +log_destination to + +By default, a server running on Windows will now send log output to the +Windows event logger rather than standard error. + +Make Kerberos authentication work on Windows (Magnus) +Allow ALTER DATABASE RENAME by superusers +who aren't flagged as having CREATEDB privilege (Tom) +Modify WAL log entries for CREATE and +DROP DATABASE to not specify absolute paths (Tom) +This allows point-in-time recovery on a different machine with possibly +different database location. Note that CREATE TABLESPACE still +poses a hazard in such situations. + +Fix crash from a backend exiting with an open transaction +that created a table and opened a cursor on it (Tom) +Fix array_map() so it can call PL functions +(Tom) +Several contrib/tsearch2 and +contrib/btree_gist fixes (Teodor) + +Fix crash of some contrib/pgcrypto +functions on some platforms (Marko Kreen) +Fix contrib/intagg for 64-bit platforms +(Tom) +Fix ecpg bugs in parsing of CREATE statement +(Michael) +Work around gcc bug on powerpc and amd64 causing problems in +ecpg (Christof Petig) +Do not use locale-aware versions of upper(), +lower(), and initcap() when the locale is +C (Bruce) + + This allows these functions to work on platforms that generate errors + for non-7-bit data when the locale is C. + +Fix quote_ident() to quote names that match keywords (Tom) +Fix to_date() to behave reasonably when +CC and YY fields are both used (Karel) +Prevent to_char(interval) from failing +when given a zero-month interval (Tom) +Fix wrong week returned by date_trunc('week') +(Bruce) + +date_trunc('week') +returned the wrong year for the first few days of January in some years. + +Use the correct default mask length for class D +addresses in INET data types (Tom) + - - - Improve performance of the GEQO optimizer (Tom) - - - The GEQO optimizer is used to plan queries involving many tables (by - default, twelve or more). This release speeds up the way queries are - analyzed to decrease time spent in optimization. - - + + - - - Miscellaneous optimizer improvements - - - There is not room here to list all the minor improvements made, but - numerous special cases work better than in prior releases. - - + + Release 8.0.1 - - - Improve lookup speed for C functions (Tom) - - - This release uses a hash table to lookup information for dynamically - loaded C functions. This improves their speed so they perform nearly as - quickly as functions that are built into the server executable. - - + + Release date + 2005-01-31 + - - - Add type-specific ANALYZE statistics - capability (Mark Cave-Ayland) - - - This feature allows more flexibility in generating statistics - for nonstandard data types. - - + + This release contains a variety of fixes from 8.0.0, including several + security-related issues. + - - - ANALYZE now collects statistics for - expression indexes (Tom) - - - Expression indexes (also called functional indexes) allow users to - index not just columns but the results of expressions and function - calls. With this release, the optimizer can gather and use statistics - about the contents of expression indexes. This will greatly improve - the quality of planning for queries in which an expression index is - relevant. - - + + Migration to Version 8.0.1 - - - New two-stage sampling method for ANALYZE - (Manfred Koizar) - - - This gives better statistics when the density of valid rows is very - different in different regions of a table. - - + + A dump/restore is not required for those running 8.0.0. + + - - - Speed up TRUNCATE (Tom) - - - This buys back some of the performance loss observed in 7.4, while still - keeping TRUNCATE transaction-safe. - - + + Changes - - + +Disallow LOAD to non-superusers + +On platforms that will automatically execute initialization functions of a +shared library (this includes at least Windows and ELF-based Unixen), +LOAD can be used to make the server execute arbitrary code. +Thanks to NGS Software for reporting this. +Check that creator of an aggregate function has the right to +execute the specified transition functions + +This oversight made it possible to bypass denial of EXECUTE +permission on a function. +Fix security and 64-bit issues in +contrib/intagg +Add needed STRICT marking to some contrib functions (Kris +Jurka) +Avoid buffer overrun when plpgsql cursor declaration has too +many parameters (Neil) +Make ALTER TABLE ADD COLUMN enforce domain +constraints in all cases +Fix planning error for FULL and RIGHT outer joins + +The result of the join was mistakenly supposed to be sorted the same as the +left input. This could not only deliver mis-sorted output to the user, but +in case of nested merge joins could give outright wrong answers. + +Improve planning of grouped aggregate queries +ROLLBACK TO savepoint +closes cursors created since the savepoint +Fix inadequate backend stack size on Windows +Avoid SHGetSpecialFolderPath() on Windows +(Magnus) +Fix some problems in running pg_autovacuum as a Windows +service (Dave Page) +Multiple minor bug fixes in +pg_dump/pg_restore +Fix ecpg segfault with named structs used in +typedefs (Michael) + + + - - Server Changes - + + Release 8.0 - - - Add WAL file archiving and point-in-time recovery (Simon Riggs) - - + + Release date + 2005-01-19 + - - - Add tablespaces so admins can control disk layout (Gavin) - - + + Overview - - - Add a built-in log rotation program (Andreas Pflug) - - - It is now possible to log server messages conveniently without - relying on either syslog or an external log - rotation program. - - + + Major changes in this release: + - - - Add new read-only server configuration parameters to show server - compile-time settings: block_size, - integer_datetimes, max_function_args, - max_identifier_length, max_index_keys (Joe) - - + + + + Microsoft Windows Native Server + - - - Make quoting of sameuser, samegroup, and - all remove special meaning of these terms in - pg_hba.conf (Andrew) - - + + + This is the first PostgreSQL release + to run natively on Microsoft Windows as + a server. It can run as a Windows service. This + release supports NT-based Windows releases like + Windows 2000 SP4, Windows XP, and + Windows 2003. Older releases like + Windows 95, Windows 98, and + Windows ME are not supported because these operating + systems do not have the infrastructure to support + PostgreSQL. A separate installer + project has been created to ease installation on + Windows — see . + - - - Use clearer IPv6 name ::1/128 for - localhost in default pg_hba.conf (Andrew) - - + + Although tested throughout our release cycle, the Windows port + does not have the benefit of years of use in production + environments that PostgreSQL has on + Unix platforms. Therefore it should be treated with the same + level of caution as you would a new product. + - - - Use CIDR format in pg_hba.conf examples (Andrew) - - + + Previous releases required the Unix emulation toolkit + Cygwin in order to run the server on Windows + operating systems. PostgreSQL has + supported native clients on Windows for many years. + + + - - - Rename server configuration parameters SortMem and - VacuumMem to work_mem and - maintenance_work_mem (Old names still supported) (Tom) - - - This change was made to clarify that bulk operations such as index and - foreign key creation use maintenance_work_mem, while - work_mem is for workspaces used during query execution. - - + + + Savepoints + - - - Allow logging of session disconnections using server configuration - log_disconnections (Andrew) - - + + + Savepoints allow specific parts of a transaction to be aborted + without affecting the remainder of the transaction. Prior + releases had no such capability; there was no way to recover + from a statement failure within a transaction except by + aborting the whole transaction. This feature is valuable for + application writers who require error recovery within a + complex transaction. + + + - - - Add new server configuration parameter log_line_prefix to - allow control of information emitted in each log line (Andrew) - - - Available information includes user name, database name, remote IP - address, and session start time. - - + + + Point-In-Time Recovery + - - - Remove server configuration parameters log_pid, - log_timestamp, log_source_port; functionality - superseded by log_line_prefix (Andrew) - - + + + In previous releases there was no way to recover from disk + drive failure except to restore from a previous backup or use + a standby replication server. Point-in-time recovery allows + continuous backup of the server. You can recover either to + the point of failure or to some transaction in the past. + + + - - - Replace the virtual_host and tcpip_socket - parameters with a unified listen_addresses parameter - (Andrew, Tom) - - - virtual_host could only specify a single IP address to - listen on. listen_addresses allows multiple addresses - to be specified. - - + + + Tablespaces + - - - Listen on localhost by default, which eliminates the need for the - - - Listening on localhost (127.0.0.1) opens no new - security holes but allows configurations like Windows and JDBC, - which do not support local sockets, to work without special - adjustments. - - + + + Tablespaces allow administrators to select different file systems + for storage of individual tables, indexes, and databases. + This improves performance and control over disk space + usage. Prior releases used initlocation and + manual symlink management for such tasks. + + + - - - Remove syslog server configuration parameter, and add more - logical log_destination variable to control log output - location (Magnus) - - + + + Improved Buffer Management, CHECKPOINT, + VACUUM + - - - Change server configuration parameter log_statement to take - values all, mod, ddl, or - none to select which queries are logged (Bruce) - - - This allows administrators to log only data definition changes or - only data modification statements. - - + + + This release has a more intelligent buffer replacement strategy, + which will make better use of available shared buffers and + improve performance. The performance impact of vacuum and + checkpoints is also lessened. + + + - - - Some logging-related configuration parameters could formerly be adjusted - by ordinary users, but only in the more verbose direction. - They are now treated more strictly: only superusers can set them. - However, a superuser can use ALTER USER to provide per-user - settings of these values for non-superusers. Also, it is now possible - for superusers to set values of superuser-only configuration parameters - via PGOPTIONS. - - + + + Change Column Types + - - - Allow configuration files to be placed outside the data directory (mlw) - - - By default, configuration files are kept in the cluster's top directory. - With this addition, configuration files can be placed outside the - data directory, easing administration. - - + + + A column's data type can now be changed with ALTER + TABLE. + + + - - - Plan prepared queries only when first executed so constants can be - used for statistics (Oliver Jowett) - - - Prepared statements plan queries once and execute them many - times. While prepared queries avoid the overhead of re-planning - on each use, the quality of the plan suffers from not knowing the exact - parameters to be used in the query. In this release, planning of - unnamed prepared statements is delayed until the first execution, - and the actual parameter values of that execution are used as - optimization hints. This allows use of out-of-line parameter passing - without incurring a performance penalty. - - + + + New Perl Server-Side Language + - - - Allow DECLARE CURSOR to take parameters - (Oliver Jowett) - - - It is now useful to issue DECLARE CURSOR in a - Parse message with parameters. The parameter values - sent at Bind time will be substituted into the - execution of the cursor's query. - - + + + A new version of the plperl server-side language now + supports a persistent shared storage area, triggers, returning records + and arrays of records, and SPI calls to access the database. + + + - - - Fix hash joins and aggregates of inet and - cidr data types (Tom) - - - Release 7.4 handled hashing of mixed inet and - cidr values incorrectly. (This bug did not exist - in prior releases because they wouldn't try to hash either - data type.) - - + + + Comma-separated-value (CSV) support in COPY + - - - Make log_duration print only when log_statement - prints the query (Ed L.) - - + + + COPY can now read and write + comma-separated-value files. It has the flexibility to + interpret nonstandard quoting and separation characters too. + + + - - + + + + Migration to Version 8.0 - - Query Changes - + + A dump/restore using pg_dump is + required for those wishing to migrate data from any previous + release. + - - - Add savepoints (nested transactions) (Alvaro) - - + + Observe the following incompatibilities: + - - - Unsupported isolation levels are now accepted and promoted to the - nearest supported level (Peter) - - - The SQL specification states that if a database doesn't support a - specific isolation level, it should use the next more restrictive level. - This change complies with that recommendation. - - + - - - Allow BEGIN WORK to specify transaction - isolation levels like START TRANSACTION does - (Bruce) - - + + + In + - - - Fix table permission checking for cases in which rules generate - a query type different from the originally submitted query (Tom) - - + + + Functions declared + - - - Implement dollar quoting to simplify single-quote usage (Andrew, Tom, - David Fetter) - - - In previous releases, because single quotes had to be used to - quote a function's body, the use of single quotes inside the - function text required use of two single quotes or other error-prone - notations. With this release we add the ability to use "dollar - quoting" to quote a block of text. The ability to use different - quoting delimiters at different nesting levels greatly simplifies - the task of quoting correctly, especially in complex functions. - Dollar quoting can be used anywhere quoted text is needed. - - + + + Nondeferred + - - - Make CASE val WHEN compval1 THEN ... evaluate val only once (Tom) - - - - + + + Server configuration parameters virtual_host and + tcpip_socket have been replaced with a more general + parameter listen_addresses. Also, the server now listens on + localhost by default, which eliminates the need for the + -i postmaster switch in many scenarios. + + - - - Test - - Fixes improper failure of cases such as SELECT SUM(win)/SUM(lose) - ... GROUP BY ... HAVING SUM(lose) > 0. This should work but formerly - could fail with divide-by-zero. - - + + + Server configuration parameters SortMem and + VacuumMem have been renamed to work_mem + and maintenance_work_mem to better reflect their + use. The original names are still supported in + SET and SHOW. + + - - - Replace max_expr_depth parameter with - max_stack_depth parameter, measured in kilobytes of stack - size (Tom) - - - This gives us a fairly bulletproof defense against crashing due to - runaway recursive functions. Instead of measuring the depth of expression - nesting, we now directly measure the size of the execution stack. - - + + + Server configuration parameters log_pid, + log_timestamp, and log_source_port have been + replaced with a more general parameter log_line_prefix. + + - - - Allow arbitrary row expressions (Tom) - - - This release allows SQL expressions to contain arbitrary composite - types, that is, row values. It also allows functions to more easily - take rows as arguments and return row values. - - + + + Server configuration parameter syslog has been + replaced with a more logical log_destination variable to + control the log output destination. + + - - - Allow - + + + Server configuration parameter log_statement has been + changed so it can selectively log just database modification or + data definition statements. Server configuration parameter + log_duration now prints only when log_statement + prints the query. + + - - - Avoid locale-specific case conversion of basic ASCII letters in - identifiers and keywords (Tom) - - - This solves the Turkish problem with mangling of words - containing I and i. Folding of characters - outside the 7-bit-ASCII set is still locale-aware. - - + + + Server configuration parameter max_expr_depth parameter has + been replaced with max_stack_depth which measures the + physical stack size rather than the expression nesting depth. This + helps prevent session termination due to stack overflow caused by + recursive functions. + + - - - Improve syntax error reporting (Fabien, Tom) - - - Syntax error reports are more useful than before. - - + + + The length() function no longer counts trailing spaces in + CHAR(n) values. + + - - - Change EXECUTE to return a completion tag - matching the executed statement (Kris Jurka) - - - Previous releases return an EXECUTE tag for - any EXECUTE call. In this release, the tag - returned will reflect the command executed. - - + + + Casting an integer to BIT(N) selects the rightmost N bits of the + integer, not the leftmost N bits as before. + + - - - Avoid emitting - - Such a clause makes no logical sense, but in some cases the rule - decompiler formerly produced this syntax. - - + + + Updating an element or slice of a NULL array value now produces + a nonnull array result, namely an array containing + just the assigned-to positions. + + - - + + + Syntax checking of array input values has been tightened up + considerably. Junk that was previously allowed in odd places with + odd results now causes an error. Empty-string element values + must now be written as "", rather than writing nothing. + Also changed behavior with respect to whitespace surrounding + array elements: trailing whitespace is now ignored, for symmetry + with leading whitespace (which has always been ignored). + + + + + Overflow in integer arithmetic operations is now detected and + reported as an error. + + - - Object Manipulation Changes - + + + The arithmetic operators associated with the single-byte + "char" data type have been removed. + + - - - Add COMMENT ON for casts, conversions, languages, - operator classes, and large objects (Christopher) - - + + + The extract() function (also called + date_part) now returns the proper year for BC dates. + It previously returned one less than the correct year. The + function now also returns the proper values for millennium and + century. + + - - - Add new server configuration parameter default_with_oids to - control whether tables are created with OIDs by default (Neil) - - - This allows administrators to control whether CREATE - TABLE commands create tables with or without OID - columns by default. (Note: the current factory default setting for - default_with_oids is TRUE, but the default - will become FALSE in future releases.) - - + + + CIDR values now must have their nonmasked bits be zero. + For example, we no longer allow + 204.248.199.1/31 as a CIDR value. Such + values should never have been accepted by + PostgreSQL and will now be rejected. + + - - - Add - + + + EXECUTE now returns a completion tag that + matches the executed statement. + + - - - Allow ALTER TABLE DROP COLUMN to drop an OID - column (ALTER TABLE SET WITHOUT OIDS still works) - (Tom) - - + + + psql's \copy command now reads or + writes to the query's stdin/stdout, rather than + psql's stdin/stdout. The previous + behavior can be accessed via new + + - - - Allow composite types as table columns (Tom) - - + + + The JDBC client interface has been removed from the core + distribution, and is now hosted at . + + - - - Allow ALTER ... ADD COLUMN with defaults and - - - It is now possible for - + + + The Tcl client interface has also been removed. There are several + Tcl interfaces now hosted at . + + - - - Add ALTER COLUMN TYPE to change column's type (Rod) - - - It is now possible to alter a column's data type without dropping - and re-adding the column. - - + + + The server now uses its own time zone database, rather than the + one supplied by the operating system. This will provide consistent + behavior across all platforms. In most cases, there should be + little noticeable difference in time zone behavior, except that + the time zone names used by SET/SHOW + TimeZone might be different from what your platform provides. + + - - - Allow multiple ALTER actions in a single ALTER - TABLE command (Rod) - - - This is particularly useful for ALTER commands that - rewrite the table (which include - + + + Configure's threading option no longer requires + users to run tests or edit configuration files; threading options + are now detected automatically. + + - - - Allow ALTER TABLE to add SERIAL - columns (Tom) - - - This falls out from the new capability of specifying defaults for new - columns. - - + + + Now that tablespaces have been implemented, + initlocation has been removed. + + - - - Allow changing the owners of aggregates, conversions, databases, - functions, operators, operator classes, schemas, types, and tablespaces - (Christopher, Euler Taveira de Oliveira) - - - Previously this required modifying the system tables directly. - - + + + The API for user-defined GiST indexes has been changed. The + Union and PickSplit methods are now passed a pointer to a + special GistEntryVector structure, + rather than a bytea. + + - - - Allow temporary object creation to be limited to - + + - - - Add - - Prior to this release, there was no way to clear an auto-cluster - specification except to modify the system tables. - - + + Deprecated Features - - - Constraint/Index/SERIAL names are now - table_column_type - with numbers appended to guarantee uniqueness within the schema - (Tom) - - - The SQL specification states that such names should be unique - within a schema. - - + + Some aspects of PostgreSQL's behavior + have been determined to be suboptimal. For the sake of backward + compatibility these have not been removed in 8.0, but they are + considered deprecated and will be removed in the next major + release. + - - - Add pg_get_serial_sequence() to return a - SERIAL column's sequence name (Christopher) - - - This allows automated scripts to reliably find the SERIAL - sequence name. - - + + + + The 8.1 release will remove the to_char() function + for intervals. + + - - - Warn when primary/foreign key data type mismatch requires costly lookup - - + + + The server now warns of empty strings passed to + oid/float4/float8 data + types, but continues to interpret them as zeroes as before. + In the next major release, empty strings will be considered + invalid input for these data types. + + - - - New ALTER INDEX command to allow moving of indexes - between tablespaces (Gavin) - - + + + By default, tables in PostgreSQL 8.0 + and earlier are created with OIDs. In the next release, + this will not be the case: to create a table + that contains OIDs, the + - - - Make ALTER TABLE OWNER change dependent sequence - ownership too (Alvaro) - - + + + + Changes - - + + Below you will find a detailed account of the changes between + release 8.0 and the previous major release. + + + Performance Improvements + - - Utility Command Changes - + + + Support cross-data-type index usage (Tom) + + + Before this change, many queries would not use an index if the data + types did not match exactly. This improvement makes index usage more + intuitive and consistent. + + - - - Allow CREATE SCHEMA to create triggers, - indexes, and sequences (Neil) - - + + + New buffer replacement strategy that improves caching (Jan) + + + Prior releases used a least-recently-used (LRU) cache to keep + recently referenced pages in memory. The LRU algorithm + did not consider the number of times a specific cache entry was + accessed, so large table scans could force out useful cache pages. + The new cache algorithm uses four separate lists to track most + recently used and most frequently used cache pages and dynamically + optimize their replacement based on the work load. This should + lead to much more efficient use of the shared buffer cache. + Administrators who have tested shared buffer sizes in the past + should retest with this new cache replacement policy. + + - - - Add - - This allows - + + + Add subprocess to write dirty buffers periodically to reduce + checkpoint writes (Jan) + + + In previous releases, the checkpoint process, which runs every few + minutes, would write all dirty buffers to the operating system's + buffer cache then flush all dirty operating system buffers to + disk. This resulted in a periodic spike in disk usage that often + hurt performance. The new code uses a background writer to trickle + disk writes at a steady pace so checkpoints have far fewer dirty + pages to write to disk. Also, the new code does not issue a global + sync() call, but instead fsync()s just + the files written since the last checkpoint. This should improve + performance and minimize degradation during checkpoints. + + - - - Add - - This allows the LOCK command to fail if it - would have to wait for the requested lock. - - + + + Add ability to prolong vacuum to reduce performance impact (Jan) + + + On busy systems, VACUUM performs many I/O + requests which can hurt performance for other users. This + release allows you to slow down VACUUM to + reduce its impact on other users, though this increases the + total duration of VACUUM. + + - - - Allow COPY to read and write - comma-separated-value (CSV) files (Andrew, Bruce) - - + + + Improve B-tree index performance for duplicate keys (Dmitry Tkach, Tom) + + + This improves the way indexes are scanned when many duplicate + values exist in the index. + + - - - Generate error if the COPY delimiter and NULL - string conflict (Bruce) - - + + + Use dynamically-generated table size estimates while planning (Tom) + + + Formerly the planner estimated table sizes using the values seen + by the last VACUUM or ANALYZE, + both as to physical table size (number of pages) and number of rows. + Now, the current physical table size is obtained from the kernel, + and the number of rows is estimated by multiplying the table size + by the row density (rows per page) seen by the last + VACUUM or ANALYZE. This should + produce more reliable estimates in cases where the table size has + changed significantly since the last housekeeping command. + + - - - GRANT/REVOKE behavior - follows the SQL spec more closely - - + + + Improved index usage with OR clauses (Tom) + + + This allows the optimizer to use indexes in statements with many OR + clauses that would not have been indexed in the past. It can also use + multi-column indexes where the first column is specified and the second + column is part of an OR clause. + + - - - Avoid locking conflict between CREATE INDEX - and CHECKPOINT (Tom) - - - In 7.3 and 7.4, a long-running B-tree index build could block concurrent - CHECKPOINTs from completing, thereby causing WAL bloat because the - WAL log could not be recycled. - - + + + Improve matching of partial index clauses (Tom) + + + The server is now smarter about using partial indexes in queries + involving complex + - - - Database-wide ANALYZE does not hold locks - across tables (Tom) - - - This reduces the potential for deadlocks against other backends - that want exclusive locks on tables. To get the benefit of this - change, do not execute database-wide ANALYZE - inside a transaction block (BEGIN block); it - must be able to commit and start a new transaction for each - table. - - + + + Improve performance of the GEQO optimizer (Tom) + + + The GEQO optimizer is used to plan queries involving many tables (by + default, twelve or more). This release speeds up the way queries are + analyzed to decrease time spent in optimization. + + - - - REINDEX does not exclusively lock the index's - parent table anymore - - - The index itself is still exclusively locked, but readers of the - table can continue if they are not using the particular index - being rebuilt. - - + + + Miscellaneous optimizer improvements + + + There is not room here to list all the minor improvements made, but + numerous special cases work better than in prior releases. + + - - - Erase MD5 user passwords when a user is renamed (Bruce) - - - PostgreSQL uses the user name as salt - when encrypting passwords via MD5. When a user's name is changed, - the salt will no longer match the stored MD5 password, so the - stored password becomes useless. In this release a notice is - generated and the password is cleared. A new password must then - be assigned if the user is to be able to log in with a password. - - + + + Improve lookup speed for C functions (Tom) + + + This release uses a hash table to lookup information for dynamically + loaded C functions. This improves their speed so they perform nearly as + quickly as functions that are built into the server executable. + + - - - New pg_ctl - - Windows does not have a kill command to send signals to - backends so this capability was added to pg_ctl. - - + + + Add type-specific ANALYZE statistics + capability (Mark Cave-Ayland) + + + This feature allows more flexibility in generating statistics + for nonstandard data types. + + - - - Information schema improvements - - + + + ANALYZE now collects statistics for + expression indexes (Tom) + + + Expression indexes (also called functional indexes) allow users to + index not just columns but the results of expressions and function + calls. With this release, the optimizer can gather and use statistics + about the contents of expression indexes. This will greatly improve + the quality of planning for queries in which an expression index is + relevant. + + - - - Add - + + + New two-stage sampling method for ANALYZE + (Manfred Koizar) + + + This gives better statistics when the density of valid rows is very + different in different regions of a table. + + - - - Detect locale/encoding mismatch in - initdb (Peter) - - + + + Speed up TRUNCATE (Tom) + + + This buys back some of the performance loss observed in 7.4, while still + keeping TRUNCATE transaction-safe. + + - - - Add - + + - - + + Server Changes + - - Data Type and Function Changes - + + + Add WAL file archiving and point-in-time recovery (Simon Riggs) + + - - - More complete support for composite types (row types) (Tom) - - - Composite values can be used in many places where only scalar values - worked before. - - + + + Add tablespaces so admins can control disk layout (Gavin) + + - - - Reject nonrectangular array values as erroneous (Joe) - - - Formerly, array_in would silently build a - surprising result. - - + + + Add a built-in log rotation program (Andreas Pflug) + + + It is now possible to log server messages conveniently without + relying on either syslog or an external log + rotation program. + + - - - Overflow in integer arithmetic operations is now detected (Tom) - - + + + Add new read-only server configuration parameters to show server + compile-time settings: block_size, + integer_datetimes, max_function_args, + max_identifier_length, max_index_keys (Joe) + + - - - The arithmetic operators associated with the single-byte - "char" data type have been removed. - - - Formerly, the parser would select these operators in many situations - where an unable to select an operator error would be more - appropriate, such as null * null. If you actually want - to do arithmetic on a "char" column, you can cast it to - integer explicitly. - - + + + Make quoting of sameuser, samegroup, and + all remove special meaning of these terms in + pg_hba.conf (Andrew) + + - - - Syntax checking of array input values considerably tightened up (Joe) - - - Junk that was previously allowed in odd places with odd results - now causes an ERROR, for example, non-whitespace - after the closing right brace. - - + + + Use clearer IPv6 name ::1/128 for + localhost in default pg_hba.conf (Andrew) + + - - - Empty-string array element values must now be written as - "", rather than writing nothing (Joe) - - - Formerly, both ways of writing an empty-string element value were - allowed, but now a quoted empty string is required. The case where - nothing at all appears will probably be considered to be a NULL - element value in some future release. - - + + + Use CIDR format in pg_hba.conf examples (Andrew) + + - - - Array element trailing whitespace is now ignored (Joe) - - - Formerly leading whitespace was ignored, but trailing whitespace - between an element value and the delimiter or right brace was - significant. Now trailing whitespace is also ignored. - - + + + Rename server configuration parameters SortMem and + VacuumMem to work_mem and + maintenance_work_mem (Old names still supported) (Tom) + + + This change was made to clarify that bulk operations such as index and + foreign key creation use maintenance_work_mem, while + work_mem is for workspaces used during query execution. + + - - - Emit array values with explicit array bounds when lower bound is not one - (Joe) - - + + + Allow logging of session disconnections using server configuration + log_disconnections (Andrew) + + - - - Accept YYYY-monthname-DD as a date string (Tom) - - + + + Add new server configuration parameter log_line_prefix to + allow control of information emitted in each log line (Andrew) + + + Available information includes user name, database name, remote IP + address, and session start time. + + - - - Make netmask and hostmask functions - return maximum-length mask length (Tom) - - + + + Remove server configuration parameters log_pid, + log_timestamp, log_source_port; functionality + superseded by log_line_prefix (Andrew) + + - - - Change factorial function to return numeric (Gavin) - - - Returning numeric allows the factorial function to - work for a wider range of input values. - - + + + Replace the virtual_host and tcpip_socket + parameters with a unified listen_addresses parameter + (Andrew, Tom) + + + virtual_host could only specify a single IP address to + listen on. listen_addresses allows multiple addresses + to be specified. + + - - - to_char/to_date() date conversion - improvements (Kurt Roeckx, Fabien Coelho) - - + + + Listen on localhost by default, which eliminates the need for the + + + Listening on localhost (127.0.0.1) opens no new + security holes but allows configurations like Windows and JDBC, + which do not support local sockets, to work without special + adjustments. + + - - - Make length() disregard trailing spaces in - CHAR(n) (Gavin) - - - This change was made to improve consistency: trailing spaces are - semantically insignificant in CHAR(n) data, so they - should not be counted by length(). - - + + + Remove syslog server configuration parameter, and add more + logical log_destination variable to control log output + location (Magnus) + + - - - Warn about empty string being passed to - OID/float4/float8 data types (Neil) - - - 8.1 will throw an error instead. - - + + + Change server configuration parameter log_statement to take + values all, mod, ddl, or + none to select which queries are logged (Bruce) + + + This allows administrators to log only data definition changes or + only data modification statements. + + - - - Allow leading or trailing whitespace in - int2/int4/int8/float4/float8 - input routines - (Neil) - - + + + Some logging-related configuration parameters could formerly be adjusted + by ordinary users, but only in the more verbose direction. + They are now treated more strictly: only superusers can set them. + However, a superuser can use ALTER USER to provide per-user + settings of these values for non-superusers. Also, it is now possible + for superusers to set values of superuser-only configuration parameters + via PGOPTIONS. + + - - - Better support for IEEE Infinity and NaN - values in float4/float8 (Neil) - - - These should now work on all platforms that support IEEE-compliant - floating point arithmetic. - - + + + Allow configuration files to be placed outside the data directory (mlw) + + + By default, configuration files are kept in the cluster's top directory. + With this addition, configuration files can be placed outside the + data directory, easing administration. + + - - - Add - + + + Plan prepared queries only when first executed so constants can be + used for statistics (Oliver Jowett) + + + Prepared statements plan queries once and execute them many + times. While prepared queries avoid the overhead of re-planning + on each use, the quality of the plan suffers from not knowing the exact + parameters to be used in the query. In this release, planning of + unnamed prepared statements is delayed until the first execution, + and the actual parameter values of that execution are used as + optimization hints. This allows use of out-of-line parameter passing + without incurring a performance penalty. + + - - - Fix to_char for 1 BC - (previously it returned 1 AD) (Bruce) - - + + + Allow DECLARE CURSOR to take parameters + (Oliver Jowett) + + + It is now useful to issue DECLARE CURSOR in a + Parse message with parameters. The parameter values + sent at Bind time will be substituted into the + execution of the cursor's query. + + - - - Fix date_part(year) for BC dates (previously it - returned one less than the correct year) (Bruce) - - + + + Fix hash joins and aggregates of inet and + cidr data types (Tom) + + + Release 7.4 handled hashing of mixed inet and + cidr values incorrectly. (This bug did not exist + in prior releases because they wouldn't try to hash either + data type.) + + - - - Fix date_part() to return the proper millennium and - century (Fabien Coelho) - - - In previous versions, the century and millennium results had a wrong - number and started in the wrong year, as compared to standard - reckoning of such things. - - + + + Make log_duration print only when log_statement + prints the query (Ed L.) + + - - - Add ceiling() as an alias for ceil(), - and power() as an alias for pow() for - standards compliance (Neil) - - + + - - - Change ln(), log(), - power(), and sqrt() to emit the correct - SQLSTATE error codes for certain error conditions, as - specified by SQL:2003 (Neil) - - - - - Add width_bucket() function as defined by SQL:2003 (Neil) - - + + Query Changes + - - - Add generate_series() functions to simplify working - with numeric sets (Joe) - - + + + Add savepoints (nested transactions) (Alvaro) + + - - - Fix upper/lower/initcap() functions to work with - multibyte encodings (Tom) - - + + + Unsupported isolation levels are now accepted and promoted to the + nearest supported level (Peter) + + + The SQL specification states that if a database doesn't support a + specific isolation level, it should use the next more restrictive level. + This change complies with that recommendation. + + - - - Add boolean and bitwise integer - + + + Allow BEGIN WORK to specify transaction + isolation levels like START TRANSACTION does + (Bruce) + + - - - New session information functions to return network addresses for client - and server (Sean Chittenden) - - + + + Fix table permission checking for cases in which rules generate + a query type different from the originally submitted query (Tom) + + - - - Add function to determine the area of a closed path (Sean Chittenden) - - + + + Implement dollar quoting to simplify single-quote usage (Andrew, Tom, + David Fetter) + + + In previous releases, because single quotes had to be used to + quote a function's body, the use of single quotes inside the + function text required use of two single quotes or other error-prone + notations. With this release we add the ability to use "dollar + quoting" to quote a block of text. The ability to use different + quoting delimiters at different nesting levels greatly simplifies + the task of quoting correctly, especially in complex functions. + Dollar quoting can be used anywhere quoted text is needed. + + - - - Add function to send cancel request to other backends (Magnus) - - + + + Make CASE val WHEN compval1 THEN ... evaluate val only once (Tom) + + + + - - - Add interval plus datetime operators (Tom) - - - The reverse ordering, datetime plus interval, - was already supported, but both are required by the SQL standard. - - + + + Test + + Fixes improper failure of cases such as SELECT SUM(win)/SUM(lose) + ... GROUP BY ... HAVING SUM(lose) > 0. This should work but formerly + could fail with divide-by-zero. + + - - - Casting an integer to BIT(N) selects the rightmost N bits - of the integer - (Tom) - - - In prior releases, the leftmost N bits were selected, but this was - deemed unhelpful, not to mention inconsistent with casting from bit - to int. - - + + + Replace max_expr_depth parameter with + max_stack_depth parameter, measured in kilobytes of stack + size (Tom) + + + This gives us a fairly bulletproof defense against crashing due to + runaway recursive functions. Instead of measuring the depth of expression + nesting, we now directly measure the size of the execution stack. + + - - - Require CIDR values to have all nonmasked bits be zero - (Kevin Brintnall) - - + + + Allow arbitrary row expressions (Tom) + + + This release allows SQL expressions to contain arbitrary composite + types, that is, row values. It also allows functions to more easily + take rows as arguments and return row values. + + - - + + + Allow + + + + Avoid locale-specific case conversion of basic ASCII letters in + identifiers and keywords (Tom) + + + This solves the Turkish problem with mangling of words + containing I and i. Folding of characters + outside the 7-bit-ASCII set is still locale-aware. + + - - Server-Side Language Changes - + + + Improve syntax error reporting (Fabien, Tom) + + + Syntax error reports are more useful than before. + + - - - In READ COMMITTED serialization mode, volatile functions - now see the results of concurrent transactions committed up to the - beginning of each statement within the function, rather than up to the - beginning of the interactive command that called the function. - - + + + Change EXECUTE to return a completion tag + matching the executed statement (Kris Jurka) + + + Previous releases return an EXECUTE tag for + any EXECUTE call. In this release, the tag + returned will reflect the command executed. + + - - - Functions declared STABLE or IMMUTABLE always - use the snapshot of the calling query, and therefore do not see the - effects of actions taken after the calling query starts, whether in - their own transaction or other transactions. Such a function must be - read-only, too, meaning that it cannot use any SQL commands other than - SELECT. There is a considerable performance gain from - declaring a function STABLE or IMMUTABLE - rather than VOLATILE. - - + + + Avoid emitting + + Such a clause makes no logical sense, but in some cases the rule + decompiler formerly produced this syntax. + + - - - Nondeferred - + + - - - Allow function parameters to be declared with names (Dennis Björklund) - - - This allows better documentation of functions. Whether the names - actually do anything depends on the specific function language - being used. - - - - - Allow PL/pgSQL parameter names to be referenced in the function (Dennis Björklund) - - - This basically creates an automatic alias for each named parameter. - - + + Object Manipulation Changes + - - - Do minimal syntax checking of PL/pgSQL functions at creation time (Tom) - - - This allows us to catch simple syntax errors sooner. - - + + + Add COMMENT ON for casts, conversions, languages, + operator classes, and large objects (Christopher) + + - - - More support for composite types (row and record variables) in PL/pgSQL - - - For example, it now works to pass a rowtype variable to another function - as a single variable. - - + + + Add new server configuration parameter default_with_oids to + control whether tables are created with OIDs by default (Neil) + + + This allows administrators to control whether CREATE + TABLE commands create tables with or without OID + columns by default. (Note: the current factory default setting for + default_with_oids is TRUE, but the default + will become FALSE in future releases.) + + - - - Default values for PL/pgSQL variables can now reference previously - declared variables - - + + + Add + - - - Improve parsing of PL/pgSQL FOR loops (Tom) - - - Parsing is now driven by presence of ".." rather than - data type of - + + + Allow ALTER TABLE DROP COLUMN to drop an OID + column (ALTER TABLE SET WITHOUT OIDS still works) + (Tom) + + - - - Major overhaul of PL/Perl server-side language (Command Prompt, Andrew Dunstan) - - + + + Allow composite types as table columns (Tom) + + - - - In PL/Tcl, SPI commands are now run in subtransactions. If an error - occurs, the subtransaction is cleaned up and the error is reported - as an ordinary Tcl error, which can be trapped with catch. - Formerly, it was not possible to catch such errors. - - + + + Allow ALTER ... ADD COLUMN with defaults and + + + It is now possible for + + + + + Add ALTER COLUMN TYPE to change column's type (Rod) + + + It is now possible to alter a column's data type without dropping + and re-adding the column. + + - - - Accept ELSEIF in PL/pgSQL (Neil) - - - Previously PL/pgSQL only allowed ELSIF, but many people - are accustomed to spelling this keyword ELSEIF. - - + + + Allow multiple ALTER actions in a single ALTER + TABLE command (Rod) + + + This is particularly useful for ALTER commands that + rewrite the table (which include + - - + + + Allow ALTER TABLE to add SERIAL + columns (Tom) + + + This falls out from the new capability of specifying defaults for new + columns. + + + + + Allow changing the owners of aggregates, conversions, databases, + functions, operators, operator classes, schemas, types, and tablespaces + (Christopher, Euler Taveira de Oliveira) + + + Previously this required modifying the system tables directly. + + - - <application>psql</> Changes - + + + Allow temporary object creation to be limited to + - - - Improve psql information display about database - objects (Christopher) - - + + + Add + + Prior to this release, there was no way to clear an auto-cluster + specification except to modify the system tables. + + - - - Allow psql to display group membership in - \du and \dg (Markus Bertheau) - - + + + Constraint/Index/SERIAL names are now + table_column_type + with numbers appended to guarantee uniqueness within the schema + (Tom) + + + The SQL specification states that such names should be unique + within a schema. + + - - - Prevent psql \dn from showing - temporary schemas (Bruce) - - + + + Add pg_get_serial_sequence() to return a + SERIAL column's sequence name (Christopher) + + + This allows automated scripts to reliably find the SERIAL + sequence name. + + - - - Allow psql to handle tilde user expansion for file - names (Zach Irmen) - - + + + Warn when primary/foreign key data type mismatch requires costly lookup + + - - - Allow psql to display fancy prompts, including - color, via readline (Reece Hart, Chet Ramey) - - + + + New ALTER INDEX command to allow moving of indexes + between tablespaces (Gavin) + + - - - Make psql \copy match COPY command syntax - fully (Tom) - - + + + Make ALTER TABLE OWNER change dependent sequence + ownership too (Alvaro) + + - - - Show the location of syntax errors (Fabien Coelho, Tom) - - - - - Add CLUSTER information to psql - \d display - (Bruce) - - + + - - - Change psql \copy stdin/stdout to read - from command input/output (Bruce) - - - - - Add - + + Utility Command Changes + - - - Add global psql configuration file, psqlrc.sample - (Bruce) - - - This allows a central file where global psql startup commands can - be stored. - - + + + Allow CREATE SCHEMA to create triggers, + indexes, and sequences (Neil) + + - - - Have psql \d+ indicate if the table - has an OID column (Neil) - - + + + Add + + This allows + - - - On Windows, use binary mode in psql when reading files so control-Z - is not seen as end-of-file - - + + + Add + + This allows the LOCK command to fail if it + would have to wait for the requested lock. + + - - - Have \dn+ show permissions and description for schemas (Dennis - Björklund) - - + + + Allow COPY to read and write + comma-separated-value (CSV) files (Andrew, Bruce) + + - - - Improve tab completion support (Stefan Kaltenbrunn, Greg Sabino Mullane) - - + + + Generate error if the COPY delimiter and NULL + string conflict (Bruce) + + - - - Allow boolean settings to be set using upper or lower case (Michael Paesold) - - + + + GRANT/REVOKE behavior + follows the SQL spec more closely + + - - + + + Avoid locking conflict between CREATE INDEX + and CHECKPOINT (Tom) + + + In 7.3 and 7.4, a long-running B-tree index build could block concurrent + CHECKPOINTs from completing, thereby causing WAL bloat because the + WAL log could not be recycled. + + + + + Database-wide ANALYZE does not hold locks + across tables (Tom) + + + This reduces the potential for deadlocks against other backends + that want exclusive locks on tables. To get the benefit of this + change, do not execute database-wide ANALYZE + inside a transaction block (BEGIN block); it + must be able to commit and start a new transaction for each + table. + + - - <application>pg_dump</> Changes - + + + REINDEX does not exclusively lock the index's + parent table anymore + + + The index itself is still exclusively locked, but readers of the + table can continue if they are not using the particular index + being rebuilt. + + - - - Use dependency information to improve the reliability of - pg_dump (Tom) - - - This should solve the longstanding problems with related objects - sometimes being dumped in the wrong order. - - + + + Erase MD5 user passwords when a user is renamed (Bruce) + + + PostgreSQL uses the user name as salt + when encrypting passwords via MD5. When a user's name is changed, + the salt will no longer match the stored MD5 password, so the + stored password becomes useless. In this release a notice is + generated and the password is cleared. A new password must then + be assigned if the user is to be able to log in with a password. + + - - - Have pg_dump output objects in alphabetical order if possible (Tom) - - - This should make it easier to identify changes between - dump files. - - + + + New pg_ctl + + Windows does not have a kill command to send signals to + backends so this capability was added to pg_ctl. + + - - - Allow pg_restore to ignore some SQL errors (Fabien Coelho) - - - This makes pg_restore's behavior similar to the - results of feeding a pg_dump output script to - psql. In most cases, ignoring errors and plowing - ahead is the most useful thing to do. Also added was a pg_restore - option to give the old behavior of exiting on an error. - - + + + Information schema improvements + + - - - pg_restore - + + + Add + - - - New begin/end markers in pg_dump text output (Bruce) - - + + + Detect locale/encoding mismatch in + initdb (Peter) + + - - - Add start/stop times for - pg_dump/pg_dumpall in verbose mode - (Bruce) - - + + + Add + - - - Allow most pg_dump options in - pg_dumpall (Christopher) - - + + - - - Have pg_dump use ALTER OWNER rather - than SET SESSION AUTHORIZATION by default - (Christopher) - - - - + + Data Type and Function Changes + + + + More complete support for composite types (row types) (Tom) + + + Composite values can be used in many places where only scalar values + worked before. + + - - libpq Changes - + + + Reject nonrectangular array values as erroneous (Joe) + + + Formerly, array_in would silently build a + surprising result. + + - Make libpq's - Add PQmbdsplen() which returns the display length - of a character (Tatsuo) + The arithmetic operators associated with the single-byte + "char" data type have been removed. - - - - Add thread locking to SSL and - Kerberos connections (Manfred Spraul) + Formerly, the parser would select these operators in many situations + where an unable to select an operator error would be more + appropriate, such as null * null. If you actually want + to do arithmetic on a "char" column, you can cast it to + integer explicitly. - + - Allow PQoidValue(), PQcmdTuples(), and - PQoidStatus() to work on EXECUTE - commands (Neil) + Syntax checking of array input values considerably tightened up (Joe) - - - - - Add PQserverVersion() to provide more convenient - access to the server version number (Greg Sabino Mullane) + + Junk that was previously allowed in odd places with odd results + now causes an ERROR, for example, non-whitespace + after the closing right brace. - + - + - Add PQprepare/PQsendPrepared() functions to support - preparing statements without necessarily specifying the data types - of their parameters (Abhijit Menon-Sen) + Empty-string array element values must now be written as + "", rather than writing nothing (Joe) - + + Formerly, both ways of writing an empty-string element value were + allowed, but now a quoted empty string is required. The case where + nothing at all appears will probably be considered to be a NULL + element value in some future release. + + - + - Many ECPG improvements, including SET DESCRIPTOR (Michael) + Array element trailing whitespace is now ignored (Joe) - + + Formerly leading whitespace was ignored, but trailing whitespace + between an element value and the delimiter or right brace was + significant. Now trailing whitespace is also ignored. + + - - + + + Emit array values with explicit array bounds when lower bound is not one + (Joe) + + + + + Accept YYYY-monthname-DD as a date string (Tom) + + - - Source Code Changes - + + + Make netmask and hostmask functions + return maximum-length mask length (Tom) + + - - - Allow the database server to run natively on Windows (Claudio, Magnus, Andrew) - - + + + Change factorial function to return numeric (Gavin) + + + Returning numeric allows the factorial function to + work for a wider range of input values. + + - - - Shell script commands converted to C versions for Windows support (Andrew) - - + + + to_char/to_date() date conversion + improvements (Kurt Roeckx, Fabien Coelho) + + - - - Create an extension makefile framework (Fabien Coelho, Peter) - - - This simplifies the task of building extensions outside the original - source tree. - - + + + Make length() disregard trailing spaces in + CHAR(n) (Gavin) + + + This change was made to improve consistency: trailing spaces are + semantically insignificant in CHAR(n) data, so they + should not be counted by length(). + + - - - Support relocatable installations (Bruce) - - - Directory paths for installed files (such as the - /share directory) are now computed relative to the - actual location of the executables, so that an installation tree - can be moved to another place without reconfiguring and - rebuilding. - - + + + Warn about empty string being passed to + OID/float4/float8 data types (Neil) + + + 8.1 will throw an error instead. + + - - - Use - + + + Allow leading or trailing whitespace in + int2/int4/int8/float4/float8 + input routines + (Neil) + + - - - Add - + + + Better support for IEEE Infinity and NaN + values in float4/float8 (Neil) + + + These should now work on all platforms that support IEEE-compliant + floating point arithmetic. + + - - - Upgrade to DocBook V4.2 SGML (Peter) - - + + + Add + - - - New PostgreSQL CVS tag (Marc) - - - This was done to make it easier for organizations to manage their - own copies of the PostgreSQL - CVS repository. File version stamps from the master - repository will not get munged by checking into or out of a copied - repository. - - + + + Fix to_char for 1 BC + (previously it returned 1 AD) (Bruce) + + - - - Clarify locking code (Manfred Koizar) - - + + + Fix date_part(year) for BC dates (previously it + returned one less than the correct year) (Bruce) + + + + + + Fix date_part() to return the proper millennium and + century (Fabien Coelho) + + + In previous versions, the century and millennium results had a wrong + number and started in the wrong year, as compared to standard + reckoning of such things. + + + + + + Add ceiling() as an alias for ceil(), + and power() as an alias for pow() for + standards compliance (Neil) + + + + + + Change ln(), log(), + power(), and sqrt() to emit the correct + SQLSTATE error codes for certain error conditions, as + specified by SQL:2003 (Neil) + + + + + + Add width_bucket() function as defined by SQL:2003 (Neil) + + + + + + Add generate_series() functions to simplify working + with numeric sets (Joe) + + + + + + Fix upper/lower/initcap() functions to work with + multibyte encodings (Tom) + + + + + + Add boolean and bitwise integer + + + + + New session information functions to return network addresses for client + and server (Sean Chittenden) + + + + + + Add function to determine the area of a closed path (Sean Chittenden) + + + + + + Add function to send cancel request to other backends (Magnus) + + + + + + Add interval plus datetime operators (Tom) + + + The reverse ordering, datetime plus interval, + was already supported, but both are required by the SQL standard. + + + + + + Casting an integer to BIT(N) selects the rightmost N bits + of the integer + (Tom) + + + In prior releases, the leftmost N bits were selected, but this was + deemed unhelpful, not to mention inconsistent with casting from bit + to int. + + + + + + Require CIDR values to have all nonmasked bits be zero + (Kevin Brintnall) + + + + + + + + + Server-Side Language Changes + + + + + In READ COMMITTED serialization mode, volatile functions + now see the results of concurrent transactions committed up to the + beginning of each statement within the function, rather than up to the + beginning of the interactive command that called the function. + + + + + + Functions declared STABLE or IMMUTABLE always + use the snapshot of the calling query, and therefore do not see the + effects of actions taken after the calling query starts, whether in + their own transaction or other transactions. Such a function must be + read-only, too, meaning that it cannot use any SQL commands other than + SELECT. There is a considerable performance gain from + declaring a function STABLE or IMMUTABLE + rather than VOLATILE. + + + + + + Nondeferred + + + + + Allow function parameters to be declared with names (Dennis Björklund) + + + This allows better documentation of functions. Whether the names + actually do anything depends on the specific function language + being used. + + + + + + Allow PL/pgSQL parameter names to be referenced in the function (Dennis Björklund) + + + This basically creates an automatic alias for each named parameter. + + + + + + Do minimal syntax checking of PL/pgSQL functions at creation time (Tom) + + + This allows us to catch simple syntax errors sooner. + + - - - Buffer manager cleanup (Neil) - - + + + More support for composite types (row and record variables) in PL/pgSQL + + + For example, it now works to pass a rowtype variable to another function + as a single variable. + + - - - Decouple platform tests from CPU spinlock code (Bruce, Tom) - - + + + Default values for PL/pgSQL variables can now reference previously + declared variables + + - - - Add inlined test-and-set code on PA-RISC for gcc - (ViSolve, Tom) - - + + + Improve parsing of PL/pgSQL FOR loops (Tom) + + + Parsing is now driven by presence of ".." rather than + data type of + - - - Improve i386 spinlock code (Manfred Spraul) - - + + + Major overhaul of PL/Perl server-side language (Command Prompt, Andrew Dunstan) + + - - - Clean up spinlock assembly code to avoid warnings from newer - gcc releases (Tom) - - + + + In PL/Tcl, SPI commands are now run in subtransactions. If an error + occurs, the subtransaction is cleaned up and the error is reported + as an ordinary Tcl error, which can be trapped with catch. + Formerly, it was not possible to catch such errors. + + - - - Remove JDBC from source tree; now a separate project - - + + + Accept ELSEIF in PL/pgSQL (Neil) + + + Previously PL/pgSQL only allowed ELSIF, but many people + are accustomed to spelling this keyword ELSEIF. + + - - - Remove the libpgtcl client interface; now a separate project - - + + - - - More accurately estimate memory and file descriptor usage (Tom) - - - - - Improvements to the Mac OS X startup scripts (Ray A.) - - + + <application>psql</> Changes + - - - New fsync() test program (Bruce) - - + + + Improve psql information display about database + objects (Christopher) + + - - - Major documentation improvements (Neil, Peter) - - + + + Allow psql to display group membership in + \du and \dg (Markus Bertheau) + + - - - Remove pg_encoding; not needed - anymore - - + + + Prevent psql \dn from showing + temporary schemas (Bruce) + + - - - Remove pg_id; not needed anymore - - + + + Allow psql to handle tilde user expansion for file + names (Zach Irmen) + + - - - Remove initlocation; not needed - anymore - - + + + Allow psql to display fancy prompts, including + color, via readline (Reece Hart, Chet Ramey) + + - - - Auto-detect thread flags (no more manual testing) (Bruce) - - + + + Make psql \copy match COPY command syntax + fully (Tom) + + - - - Use Olson's public domain timezone library (Magnus) - - + + + Show the location of syntax errors (Fabien Coelho, Tom) + + - - - With threading enabled, use thread flags on Unixware for - backend executables too (Bruce) - - - Unixware cannot mix threaded and nonthreaded object files in the - same executable, so everything must be compiled as threaded. - - + + + Add CLUSTER information to psql + \d display + (Bruce) + + - - - psql now uses a flex-generated - lexical analyzer to process command strings - - + + + Change psql \copy stdin/stdout to read + from command input/output (Bruce) + + - - - Reimplement the linked list data structure used throughout the - backend (Neil) - - - This improves performance by allowing list append and length - operations to be more efficient. - - + + + Add + - - - Allow dynamically loaded modules to create their own server configuration - parameters (Thomas Hallgren) - - + + + Add global psql configuration file, psqlrc.sample + (Bruce) + + + This allows a central file where global psql startup commands can + be stored. + + - - - New Brazilian version of FAQ (Euler Taveira de Oliveira) - - + + + Have psql \d+ indicate if the table + has an OID column (Neil) + + - - - Add French FAQ (Guillaume Lelarge) - - + + + On Windows, use binary mode in psql when reading files so control-Z + is not seen as end-of-file + + - - - New pgevent for Windows logging - - + + + Have \dn+ show permissions and description for schemas (Dennis + Björklund) + + - - - Make libpq and ECPG build as proper shared libraries on OS X (Tom) - - + + + Improve tab completion support (Stefan Kaltenbrunn, Greg Sabino Mullane) + + - - + + + Allow boolean settings to be set using upper or lower case (Michael Paesold) + + + + - - Contrib Changes - - - - Overhaul of contrib/dblink (Joe) - - + + <application>pg_dump</> Changes + - - - contrib/dbmirror improvements (Steven Singer) - - + + + Use dependency information to improve the reliability of + pg_dump (Tom) + + + This should solve the longstanding problems with related objects + sometimes being dumped in the wrong order. + + - - - New contrib/xml2 (John Gray, Torchbox) - - + + + Have pg_dump output objects in alphabetical order if possible (Tom) + + + This should make it easier to identify changes between + dump files. + + - - - Updated contrib/mysql - - + + + Allow pg_restore to ignore some SQL errors (Fabien Coelho) + + + This makes pg_restore's behavior similar to the + results of feeding a pg_dump output script to + psql. In most cases, ignoring errors and plowing + ahead is the most useful thing to do. Also added was a pg_restore + option to give the old behavior of exiting on an error. + + - - - New version of contrib/btree_gist (Teodor) - - + + + pg_restore + - - - New contrib/trgm, trigram matching for - PostgreSQL (Teodor) - - + + + New begin/end markers in pg_dump text output (Bruce) + + - - - Many contrib/tsearch2 improvements (Teodor) - - + + + Add start/stop times for + pg_dump/pg_dumpall in verbose mode + (Bruce) + + - - - Add double metaphone to contrib/fuzzystrmatch (Andrew) - - + + + Allow most pg_dump options in + pg_dumpall (Christopher) + + - - - Allow contrib/pg_autovacuum to run as a Windows service (Dave Page) - - + + + Have pg_dump use ALTER OWNER rather + than SET SESSION AUTHORIZATION by default + (Christopher) + + - - - Add functions to contrib/dbsize (Andreas Pflug) - - + + - - - Removed contrib/pg_logger: obsoleted by integrated logging - subprocess - - - - - Removed contrib/rserv: obsoleted by various separate projects - - + + libpq Changes + - - + + + Make libpq's + - - + + + Add PQmbdsplen() which returns the display length + of a character (Tatsuo) + + - - Release 7.4.18 + + + Add thread locking to SSL and + Kerberos connections (Manfred Spraul) + + - - Release date - 2007-09-17 - + + + Allow PQoidValue(), PQcmdTuples(), and + PQoidStatus() to work on EXECUTE + commands (Neil) + + - - This release contains fixes from 7.4.17. - + + + Add PQserverVersion() to provide more convenient + access to the server version number (Greg Sabino Mullane) + + - - Migration to version 7.4.18 + + + Add PQprepare/PQsendPrepared() functions to support + preparing statements without necessarily specifying the data types + of their parameters (Abhijit Menon-Sen) + + - - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.11, see the release - notes for 7.4.11. - + + + Many ECPG improvements, including SET DESCRIPTOR (Michael) + + - + + - - Changes + + Source Code Changes - Prevent index corruption when a transaction inserts rows and - then aborts close to the end of a concurrent VACUUM - on the same table (Tom) + Allow the database server to run natively on Windows (Claudio, Magnus, Andrew) - Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) + Shell script commands converted to C versions for Windows support (Andrew) - Fix excessive logging of SSL error messages (Tom) + Create an extension makefile framework (Fabien Coelho, Peter) + + + This simplifies the task of building extensions outside the original + source tree. - Fix crash when log_min_error_statement logging runs out - of memory (Tom) + Support relocatable installations (Bruce) + + + Directory paths for installed files (such as the + /share directory) are now computed relative to the + actual location of the executables, so that an installation tree + can be moved to another place without reconfiguring and + rebuilding. - Prevent CLUSTER from failing - due to attempting to process temporary tables of other sessions (Alvaro) + Use - Require non-superusers who use /contrib/dblink to use only - password authentication, as a security measure (Joe) + Add - - - - - - - Release 7.4.17 - - - Release date - 2007-04-23 - - - - This release contains fixes from 7.4.16, - including a security fix. - - - - Migration to version 7.4.17 + + + Upgrade to DocBook V4.2 SGML (Peter) + + - - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.11, see the release - notes for 7.4.11. - + + + New PostgreSQL CVS tag (Marc) + + + This was done to make it easier for organizations to manage their + own copies of the PostgreSQL + CVS repository. File version stamps from the master + repository will not get munged by checking into or out of a copied + repository. + + - + + + Clarify locking code (Manfred Koizar) + + - - Changes + + + Buffer manager cleanup (Neil) + + - + + + Decouple platform tests from CPU spinlock code (Bruce, Tom) + + - - Support explicit placement of the temporary-table schema within - search_path, and disable searching it for functions - and operators (Tom) - - - This is needed to allow a security-definer function to set a - truly secure value of search_path. Without it, - an unprivileged SQL user can use temporary objects to execute code - with the privileges of the security-definer function (CVE-2007-2138). - See CREATE FUNCTION for more information. - + + Add inlined test-and-set code on PA-RISC for gcc + (ViSolve, Tom) + - - /contrib/tsearch2 crash fixes (Teodor) - + + Improve i386 spinlock code (Manfred Spraul) + - - Fix potential-data-corruption bug in how VACUUM FULL handles - UPDATE chains (Tom, Pavan Deolasee) - + + Clean up spinlock assembly code to avoid warnings from newer + gcc releases (Tom) + - - Fix PANIC during enlargement of a hash index (bug introduced in 7.4.15) - (Tom) - + + Remove JDBC from source tree; now a separate project + - + + + Remove the libpgtcl client interface; now a separate project + + - - - - - Release 7.4.16 + + + More accurately estimate memory and file descriptor usage (Tom) + + - - Release date - 2007-02-05 - + + + Improvements to the Mac OS X startup scripts (Ray A.) + + - - This release contains a variety of fixes from 7.4.15, including - a security fix. - + + + New fsync() test program (Bruce) + + - - Migration to version 7.4.16 + + + Major documentation improvements (Neil, Peter) + + - - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.11, see the release - notes for 7.4.11. - + + + Remove pg_encoding; not needed + anymore + + - + + + Remove pg_id; not needed anymore + + - - Changes + + + Remove initlocation; not needed + anymore + + - + + + Auto-detect thread flags (no more manual testing) (Bruce) + + - - Remove security vulnerability that allowed connected users - to read backend memory (Tom) - - - The vulnerability involves suppressing the normal check that a SQL - function returns the data type it's declared to, or changing the - data type of a table column used in a SQL function (CVE-2007-0555). - This error can easily be exploited to cause a backend crash, and in - principle might be used to read database content that the user - should not be able to access. - + + Use Olson's public domain timezone library (Magnus) + - - Fix rare bug wherein btree index page splits could fail - due to choosing an infeasible split point (Heikki Linnakangas) - + + With threading enabled, use thread flags on Unixware for + backend executables too (Bruce) + + + Unixware cannot mix threaded and nonthreaded object files in the + same executable, so everything must be compiled as threaded. + - - Fix for rare Assert() crash triggered by UNION (Tom) - + + psql now uses a flex-generated + lexical analyzer to process command strings + - - Tighten security of multi-byte character processing for UTF8 sequences - over three bytes long (Tom) - + + Reimplement the linked list data structure used throughout the + backend (Neil) + + + This improves performance by allowing list append and length + operations to be more efficient. + - + + + Allow dynamically loaded modules to create their own server configuration + parameters (Thomas Hallgren) + + - - + + + New Brazilian version of FAQ (Euler Taveira de Oliveira) + + - - Release 7.4.15 + + + Add French FAQ (Guillaume Lelarge) + + - - Release date - 2007-01-08 - + + + New pgevent for Windows logging + + - - This release contains a variety of fixes from 7.4.14. - + + + Make libpq and ECPG build as proper shared libraries on OS X (Tom) + + - - Migration to version 7.4.15 + + - - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.11, see the release - notes for 7.4.11. - - + + Contrib Changes + - - Changes + + + Overhaul of contrib/dblink (Joe) + + - + + + contrib/dbmirror improvements (Steven Singer) + + - Improve handling of getaddrinfo() on AIX (Tom) + New contrib/xml2 (John Gray, Torchbox) + + - This fixes a problem with starting the statistics collector, - among other things. + Updated contrib/mysql - - - Fix failed to re-find parent key errors in - VACUUM (Tom) - - + + + New version of contrib/btree_gist (Teodor) + + - - - Fix bugs affecting multi-gigabyte hash indexes (Tom) - - + + + New contrib/trgm, trigram matching for + PostgreSQL (Teodor) + + + + + + Many contrib/tsearch2 improvements (Teodor) + + - Fix error when constructing an ARRAY[] made up of multiple - empty elements (Tom) + Add double metaphone to contrib/fuzzystrmatch (Andrew) - to_number() and to_char(numeric) - are now STABLE, not IMMUTABLE, for - new initdb installs (Tom) + Allow contrib/pg_autovacuum to run as a Windows service (Dave Page) + + - This is because lc_numeric can potentially - change the output of these functions. + Add functions to contrib/dbsize (Andreas Pflug) - Improve index usage of regular expressions that use parentheses (Tom) + Removed contrib/pg_logger: obsoleted by integrated logging + subprocess + + - This improves psql \d performance also. + Removed contrib/rserv: obsoleted by various separate projects + - - + + - - Release 7.4.14 + + Release 7.4.19 - - Release date - 2006-10-16 - + + Release date + 2008-01-07 + + + + This release contains a variety of fixes from 7.4.18, + including fixes for significant security issues. + + + + Migration to Version 7.4.19 - This release contains a variety of fixes from 7.4.13. + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.11, see the release + notes for 7.4.11. - - Migration to version 7.4.14 + - - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.11, see the release - notes for 7.4.11. - + + Changes - + - - Changes + + + Prevent functions in indexes from executing with the privileges of + the user running VACUUM, ANALYZE, etc (Tom) + + + + Functions used in index expressions and partial-index + predicates are evaluated whenever a new table entry is made. It has + long been understood that this poses a risk of trojan-horse code + execution if one modifies a table owned by an untrustworthy user. + (Note that triggers, defaults, check constraints, etc. pose the + same type of risk.) But functions in indexes pose extra danger + because they will be executed by routine maintenance operations + such as VACUUM FULL, which are commonly performed + automatically under a superuser account. For example, a nefarious user + can execute code with superuser privileges by setting up a + trojan-horse index definition and waiting for the next routine vacuum. + The fix arranges for standard maintenance operations + (including VACUUM, ANALYZE, REINDEX, + and CLUSTER) to execute as the table owner rather than + the calling user, using the same privilege-switching mechanism already + used for SECURITY DEFINER functions. To prevent bypassing + this security measure, execution of SET SESSION + AUTHORIZATION and SET ROLE is now forbidden within a + SECURITY DEFINER context. (CVE-2007-6600) + + - -Fix core dump when an untyped literal is taken as -ANYARRAY -Fix string_to_array() to handle overlapping - matches for the separator string -For example, string_to_array('123xx456xxx789', 'xx'). - -Fix corner cases in pattern matching for - psql's \d commands -Fix index-corrupting bugs in /contrib/ltree - (Teodor) -Fix backslash escaping in /contrib/dbmirror -Adjust regression tests for recent changes in US DST laws - - + + + Repair assorted bugs in the regular-expression package (Tom, Will Drewry) + - - + + Suitably crafted regular-expression patterns could cause crashes, + infinite or near-infinite looping, and/or massive memory consumption, + all of which pose denial-of-service hazards for applications that + accept regex search patterns from untrustworthy sources. + (CVE-2007-4769, CVE-2007-4772, CVE-2007-6067) + + - - Release 7.4.13 + + + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) + - - Release date - 2006-05-23 - + + The fix that appeared for this in 7.4.18 was incomplete, as it plugged + the hole for only some dblink functions. (CVE-2007-6601, + CVE-2007-3278) + + - - This release contains a variety of fixes from 7.4.12, - including patches for extremely serious security issues. - + + + Fix planner failure in some cases of WHERE false AND var IN + (SELECT ...) (Tom) + + - - Migration to version 7.4.13 + + + Fix potential crash in translate() when using a multibyte + database encoding (Tom) + + - - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.11, see the release - notes for 7.4.11. - + + + Fix PL/Python to not crash on long exception messages (Alvaro) + + - - Full security against the SQL-injection attacks described in - CVE-2006-2313 and CVE-2006-2314 might require changes in application - code. If you have applications that embed untrustworthy strings - into SQL commands, you should examine them as soon as possible to - ensure that they are using recommended escaping techniques. In - most cases, applications should be using subroutines provided by - libraries or drivers (such as libpq's - PQescapeStringConn()) to perform string escaping, - rather than relying on ad hoc code to do it. - - + + + ecpg parser fixes (Michael) + + - - Changes + + + Make contrib/tablefunc's crosstab() handle + NULL rowid as a category in its own right, rather than crashing (Joe) + + - -Change the server to reject invalidly-encoded multibyte -characters in all cases (Tatsuo, Tom) -While PostgreSQL has been moving in this direction for -some time, the checks are now applied uniformly to all encodings and all -textual input, and are now always errors not merely warnings. This change -defends against SQL-injection attacks of the type described in CVE-2006-2313. - + + + Fix tsvector and tsquery output routines to + escape backslashes correctly (Teodor, Bruce) + + -Reject unsafe uses of \' in string literals -As a server-side defense against SQL-injection attacks of the type -described in CVE-2006-2314, the server now only accepts '' and not -\' as a representation of ASCII single quote in SQL string -literals. By default, \' is rejected only when -client_encoding is set to a client-only encoding (SJIS, BIG5, GBK, -GB18030, or UHC), which is the scenario in which SQL injection is possible. -A new configuration parameter backslash_quote is available to -adjust this behavior when needed. Note that full security against -CVE-2006-2314 might require client-side changes; the purpose of -backslash_quote is in part to make it obvious that insecure -clients are insecure. - + + + Fix crash of to_tsvector() on huge input strings (Teodor) + + -Modify libpq's string-escaping routines to be -aware of encoding considerations and -standard_conforming_strings -This fixes libpq-using applications for the security -issues described in CVE-2006-2313 and CVE-2006-2314, and also future-proofs -them against the planned changeover to SQL-standard string literal syntax. -Applications that use multiple PostgreSQL connections -concurrently should migrate to PQescapeStringConn() and -PQescapeByteaConn() to ensure that escaping is done correctly -for the settings in use in each database connection. Applications that -do string escaping by hand should be modified to rely on library -routines instead. - + + + Require a specific version of Autoconf to be used + when re-generating the configure script (Peter) + -Fix some incorrect encoding conversion functions -win1251_to_iso, alt_to_iso, -euc_tw_to_big5, euc_tw_to_mic, -mic_to_euc_tw were all broken to varying -extents. - + + This affects developers and packagers only. The change was made + to prevent accidental use of untested combinations of + Autoconf and PostgreSQL versions. + You can remove the version check if you really want to use a + different Autoconf version, but it's + your responsibility whether the result works or not. + + -Clean up stray remaining uses of \' in strings -(Bruce, Jan) + -Fix bug that sometimes caused OR'd index scans to -miss rows they should have returned + + -Fix WAL replay for case where a btree index has been -truncated + + Release 7.4.18 -Fix SIMILAR TO for patterns involving -| (Tom) + + Release date + 2007-09-17 + -Fix server to use custom DH SSL parameters correctly (Michael -Fuhr) + + This release contains fixes from 7.4.17. + -Fix for Bonjour on Intel Macs (Ashley Clark) + + Migration to Version 7.4.18 -Fix various minor memory leaks - + + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.11, see the release + notes for 7.4.11. + + + + + + Changes + + + + + + Prevent index corruption when a transaction inserts rows and + then aborts close to the end of a concurrent VACUUM + on the same table (Tom) + + + + + + Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) + + + + + + Fix excessive logging of SSL error messages (Tom) + + + + + + Fix crash when log_min_error_statement logging runs out + of memory (Tom) + + + + + + Prevent CLUSTER from failing + due to attempting to process temporary tables of other sessions (Alvaro) + + + + + + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) + + + + + + + + + + Release 7.4.17 - - + + Release date + 2007-04-23 + - - Release 7.4.12 + + This release contains fixes from 7.4.16, + including a security fix. + - - Release date - 2006-02-14 - + + Migration to Version 7.4.17 - This release contains a variety of fixes from 7.4.11. + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.11, see the release + notes for 7.4.11. - - Migration to version 7.4.12 + + + + Changes + + + - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.11, see the release - notes for 7.4.11. + Support explicit placement of the temporary-table schema within + search_path, and disable searching it for functions + and operators (Tom) - + + This is needed to allow a security-definer function to set a + truly secure value of search_path. Without it, + an unprivileged SQL user can use temporary objects to execute code + with the privileges of the security-definer function (CVE-2007-2138). + See CREATE FUNCTION for more information. + + - - Changes + + + /contrib/tsearch2 crash fixes (Teodor) + + - + + + Fix potential-data-corruption bug in how VACUUM FULL handles + UPDATE chains (Tom, Pavan Deolasee) + + -Fix potential crash in SET -SESSION AUTHORIZATION (CVE-2006-0553) -An unprivileged user could crash the server process, resulting in -momentary denial of service to other users, if the server has been compiled -with Asserts enabled (which is not the default). -Thanks to Akio Ishida for reporting this problem. - + + + Fix PANIC during enlargement of a hash index (bug introduced in 7.4.15) + (Tom) + + -Fix bug with row visibility logic in self-inserted -rows (Tom) -Under rare circumstances a row inserted by the current command -could be seen as already valid, when it should not be. Repairs bug -created in 7.4.9 and 7.3.11 releases. - + -Fix race condition that could lead to file already -exists errors during pg_clog file creation -(Tom) + + -Properly check DOMAIN constraints for -UNKNOWN parameters in prepared statements -(Neil) + + Release 7.4.16 -Fix to allow restoring dumps that have cross-schema -references to custom operators (Tom) + + Release date + 2007-02-05 + -Portability fix for testing presence of finite -and isinf during configure (Tom) + + This release contains a variety of fixes from 7.4.15, including + a security fix. + - + + Migration to Version 7.4.16 - - + + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.11, see the release + notes for 7.4.11. + - - Release 7.4.11 + - - Release date - 2006-01-09 - + + Changes - - This release contains a variety of fixes from 7.4.10. - + - - Migration to version 7.4.11 + + + Remove security vulnerability that allowed connected users + to read backend memory (Tom) + + + The vulnerability involves suppressing the normal check that a SQL + function returns the data type it's declared to, or changing the + data type of a table column used in a SQL function (CVE-2007-0555). + This error can easily be exploited to cause a backend crash, and in + principle might be used to read database content that the user + should not be able to access. + + + - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.8, see the release - notes for 7.4.8. - Also, you might need to REINDEX indexes on textual - columns after updating, if you are affected by the locale or - plperl issues described below. + Fix rare bug wherein btree index page splits could fail + due to choosing an infeasible split point (Heikki Linnakangas) - + - - Changes + + + Fix for rare Assert() crash triggered by UNION (Tom) + + - + + + Tighten security of multi-byte character processing for UTF8 sequences + over three bytes long (Tom) + + -Fix for protocol-level Describe messages issued -outside a transaction or in a failed transaction (Tom) + -Fix character string comparison for locales that consider -different character combinations as equal, such as Hungarian (Tom) -This might require REINDEX to fix existing indexes on -textual columns. + + -Set locale environment variables during postmaster startup -to ensure that plperl won't change the locale later -This fixes a problem that occurred if the postmaster was -started with environment variables specifying a different locale than what -initdb had been told. Under these conditions, any use of -plperl was likely to lead to corrupt indexes. You might need -REINDEX to fix existing indexes on -textual columns if this has happened to you. + + Release 7.4.15 -Fix longstanding bug in strpos() and regular expression -handling in certain rarely used Asian multi-byte character sets (Tatsuo) - + + Release date + 2007-01-08 + -Fix bug in /contrib/pgcrypto gen_salt, -which caused it not to use all available salt space for MD5 and -XDES algorithms (Marko Kreen, Solar Designer) -Salts for Blowfish and standard DES are unaffected. + + This release contains a variety of fixes from 7.4.14. + -Fix /contrib/dblink to throw an error, -rather than crashing, when the number of columns specified is different from -what's actually returned by the query (Joe) + + Migration to Version 7.4.15 - + + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.11, see the release + notes for 7.4.11. + - - + - - Release 7.4.10 + + Changes - - Release date - 2005-12-12 - + - - This release contains a variety of fixes from 7.4.9. - + + + Improve handling of getaddrinfo() on AIX (Tom) + - - Migration to version 7.4.10 + + This fixes a problem with starting the statistics collector, + among other things. + + - - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.8, see the release - notes for 7.4.8. - - + + + Fix failed to re-find parent key errors in + VACUUM (Tom) + + - - Changes + + + Fix bugs affecting multi-gigabyte hash indexes (Tom) + + - + + + Fix error when constructing an ARRAY[] made up of multiple + empty elements (Tom) + + -Fix race condition in transaction log management -There was a narrow window in which an I/O operation could be initiated -for the wrong page, leading to an Assert failure or data -corruption. - + + + to_number() and to_char(numeric) + are now STABLE, not IMMUTABLE, for + new initdb installs (Tom) + -Prevent failure if client sends Bind protocol message -when current transaction is already aborted + + This is because lc_numeric can potentially + change the output of these functions. + + -/contrib/ltree fixes (Teodor) + + + Improve index usage of regular expressions that use parentheses (Tom) + -AIX and HPUX compile fixes (Tom) + + This improves psql \d performance also. + + -Fix longstanding planning error for outer joins -This bug sometimes caused a bogus error RIGHT JOIN is -only supported with merge-joinable join conditions. + -Prevent core dump in pg_autovacuum when a -table has been dropped - + + - - + + Release 7.4.14 + + + Release date + 2006-10-16 + - - Release 7.4.9 + + This release contains a variety of fixes from 7.4.13. + - - Release date - 2005-10-04 - + + Migration to Version 7.4.14 - This release contains a variety of fixes from 7.4.8. + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.11, see the release + notes for 7.4.11. - - Migration to version 7.4.9 - - - A dump/restore is not required for those running 7.4.X. However, - if you are upgrading from a version earlier than 7.4.8, see the release - notes for 7.4.8. - - + - - Changes + + Changes -Fix error that allowed VACUUM to remove -ctid chains too soon, and add more checking in code that follows -ctid links -This fixes a long-standing problem that could cause crashes in very rare -circumstances. -Fix CHAR() to properly pad spaces to the specified -length when using a multiple-byte character set (Yoshiyuki Asaba) -In prior releases, the padding of CHAR() was incorrect -because it only padded to the specified number of bytes without -considering how many characters were stored. -Fix the sense of the test for read-only transaction -in COPY -The code formerly prohibited COPY TO, where it should -prohibit COPY FROM. - -Fix planning problem with outer-join ON clauses that reference -only the inner-side relation -Further fixes for x FULL JOIN y ON true corner -cases -Make array_in and array_recv more -paranoid about validating their OID parameter -Fix missing rows in queries like UPDATE a=... WHERE -a... with GiST index on column a -Improve robustness of datetime parsing -Improve checking for partially-written WAL -pages -Improve robustness of signal handling when SSL is -enabled -Don't try to open more than max_files_per_process -files during postmaster startup -Various memory leakage fixes -Various portability improvements -Fix PL/PgSQL to handle var := var correctly when -the variable is of pass-by-reference type -Update contrib/tsearch2 to use current Snowball -code +Fix core dump when an untyped literal is taken as +ANYARRAY +Fix string_to_array() to handle overlapping + matches for the separator string +For example, string_to_array('123xx456xxx789', 'xx'). + +Fix corner cases in pattern matching for + psql's \d commands +Fix index-corrupting bugs in /contrib/ltree + (Teodor) +Fix backslash escaping in /contrib/dbmirror +Adjust regression tests for recent changes in US DST laws + - - + + - - Release 7.4.8 + + Release 7.4.13 - - Release date - 2005-05-09 - + + Release date + 2006-05-23 + + + + This release contains a variety of fixes from 7.4.12, + including patches for extremely serious security issues. + + + + Migration to Version 7.4.13 - This release contains a variety of fixes from 7.4.7, including several - security-related issues. + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.11, see the release + notes for 7.4.11. - - Migration to version 7.4.8 + + Full security against the SQL-injection attacks described in + CVE-2006-2313 and CVE-2006-2314 might require changes in application + code. If you have applications that embed untrustworthy strings + into SQL commands, you should examine them as soon as possible to + ensure that they are using recommended escaping techniques. In + most cases, applications should be using subroutines provided by + libraries or drivers (such as libpq's + PQescapeStringConn()) to perform string escaping, + rather than relying on ad hoc code to do it. + + - - A dump/restore is not required for those running 7.4.X. However, - it is one possible way of handling two significant security problems - that have been found in the initial contents of 7.4.X system - catalogs. A dump/initdb/reload sequence using 7.4.8's initdb will - automatically correct these problems. - + + Changes - - The larger security problem is that the built-in character set encoding - conversion functions can be invoked from SQL commands by unprivileged - users, but the functions were not designed for such use and are not - secure against malicious choices of arguments. The fix involves changing - the declared parameter list of these functions so that they can no longer - be invoked from SQL commands. (This does not affect their normal use - by the encoding conversion machinery.) - + +Change the server to reject invalidly-encoded multibyte +characters in all cases (Tatsuo, Tom) +While PostgreSQL has been moving in this direction for +some time, the checks are now applied uniformly to all encodings and all +textual input, and are now always errors not merely warnings. This change +defends against SQL-injection attacks of the type described in CVE-2006-2313. + - - The lesser problem is that the contrib/tsearch2 module - creates several functions that are misdeclared to return - internal when they do not accept internal arguments. - This breaks type safety for all functions using internal - arguments. - +Reject unsafe uses of \' in string literals +As a server-side defense against SQL-injection attacks of the type +described in CVE-2006-2314, the server now only accepts '' and not +\' as a representation of ASCII single quote in SQL string +literals. By default, \' is rejected only when +client_encoding is set to a client-only encoding (SJIS, BIG5, GBK, +GB18030, or UHC), which is the scenario in which SQL injection is possible. +A new configuration parameter backslash_quote is available to +adjust this behavior when needed. Note that full security against +CVE-2006-2314 might require client-side changes; the purpose of +backslash_quote is in part to make it obvious that insecure +clients are insecure. + - - It is strongly recommended that all installations repair these errors, - either by initdb or by following the manual repair procedures given - below. The errors at least allow unprivileged database users to crash - their server process, and might allow unprivileged users to gain the - privileges of a database superuser. - +Modify libpq's string-escaping routines to be +aware of encoding considerations and +standard_conforming_strings +This fixes libpq-using applications for the security +issues described in CVE-2006-2313 and CVE-2006-2314, and also future-proofs +them against the planned changeover to SQL-standard string literal syntax. +Applications that use multiple PostgreSQL connections +concurrently should migrate to PQescapeStringConn() and +PQescapeByteaConn() to ensure that escaping is done correctly +for the settings in use in each database connection. Applications that +do string escaping by hand should be modified to rely on library +routines instead. + - - If you wish not to do an initdb, perform the following procedures instead. - As the database superuser, do: +Fix some incorrect encoding conversion functions +win1251_to_iso, alt_to_iso, +euc_tw_to_big5, euc_tw_to_mic, +mic_to_euc_tw were all broken to varying +extents. + - -BEGIN; -UPDATE pg_proc SET proargtypes[3] = 'internal'::regtype -WHERE pronamespace = 11 AND pronargs = 5 - AND proargtypes[2] = 'cstring'::regtype; --- The command should report having updated 90 rows; --- if not, rollback and investigate instead of committing! -COMMIT; - +Clean up stray remaining uses of \' in strings +(Bruce, Jan) - Next, if you have installed contrib/tsearch2, do: +Fix bug that sometimes caused OR'd index scans to +miss rows they should have returned - -BEGIN; -UPDATE pg_proc SET proargtypes[0] = 'internal'::regtype -WHERE oid IN ( - 'dex_init(text)'::regprocedure, - 'snb_en_init(text)'::regprocedure, - 'snb_ru_init(text)'::regprocedure, - 'spell_init(text)'::regprocedure, - 'syn_init(text)'::regprocedure -); --- The command should report having updated 5 rows; --- if not, rollback and investigate instead of committing! -COMMIT; - +Fix WAL replay for case where a btree index has been +truncated - If this command fails with a message like function - "dex_init(text)" does not exist, then either tsearch2 - is not installed in this database, or you already did the update. - +Fix SIMILAR TO for patterns involving +| (Tom) - - The above procedures must be carried out in each database - of an installation, including template1, and ideally - including template0 as well. If you do not fix the - template databases then any subsequently created databases will contain - the same errors. template1 can be fixed in the same way - as any other database, but fixing template0 requires - additional steps. First, from any database issue: - -UPDATE pg_database SET datallowconn = true WHERE datname = 'template0'; - - Next connect to template0 and perform the above repair - procedures. Finally, do: - --- re-freeze template0: -VACUUM FREEZE; --- and protect it against future alterations: -UPDATE pg_database SET datallowconn = false WHERE datname = 'template0'; - - - +Fix server to use custom DH SSL parameters correctly (Michael +Fuhr) - - Changes +Fix for Bonjour on Intel Macs (Ashley Clark) - -Change encoding function signature to prevent -misuse -Change contrib/tsearch2 to avoid unsafe use of -INTERNAL function results -Repair ancient race condition that allowed a transaction to be -seen as committed for some purposes (eg SELECT FOR UPDATE) slightly sooner -than for other purposes -This is an extremely serious bug since it could lead to apparent -data inconsistencies being briefly visible to applications. -Repair race condition between relation extension and -VACUUM -This could theoretically have caused loss of a page's worth of -freshly-inserted data, although the scenario seems of very low probability. -There are no known cases of it having caused more than an Assert failure. - -Fix comparisons of TIME WITH TIME ZONE values - -The comparison code was wrong in the case where the ---enable-integer-datetimes configuration switch had been used. -NOTE: if you have an index on a TIME WITH TIME ZONE column, -it will need to be REINDEXed after installing this update, because -the fix corrects the sort order of column values. - -Fix EXTRACT(EPOCH) for -TIME WITH TIME ZONE values -Fix mis-display of negative fractional seconds in -INTERVAL values - -This error only occurred when the ---enable-integer-datetimes configuration switch had been used. - -Ensure operations done during backend shutdown are counted by -statistics collector - - This is expected to resolve reports of pg_autovacuum - not vacuuming the system catalogs often enough — it was not being - told about catalog deletions caused by temporary table removal during - backend exit. - -Additional buffer overrun checks in plpgsql -(Neil) -Fix pg_dump to dump trigger names containing % -correctly (Neil) -Fix contrib/pgcrypto for newer OpenSSL builds -(Marko Kreen) -Still more 64-bit fixes for -contrib/intagg -Prevent incorrect optimization of functions returning -RECORD -Prevent to_char(interval) from dumping core for -month-related formats -Prevent crash on COALESCE(NULL,NULL) -Fix array_map to call PL functions correctly -Fix permission checking in ALTER DATABASE RENAME -Fix ALTER LANGUAGE RENAME -Make RemoveFromWaitQueue clean up after itself - -This fixes a lock management error that would only be visible if a transaction -was kicked out of a wait for a lock (typically by query cancel) and then the -holder of the lock released it within a very narrow window. - -Fix problem with untyped parameter appearing in -INSERT ... SELECT -Fix CLUSTER failure after -ALTER TABLE SET WITHOUT OIDS +Fix various minor memory leaks - - + + - - Release 7.4.7 + + Release 7.4.12 - - Release date - 2005-01-31 - + + Release date + 2006-02-14 + - - This release contains a variety of fixes from 7.4.6, including several - security-related issues. - + + This release contains a variety of fixes from 7.4.11. + - - Migration to version 7.4.7 + + Migration to Version 7.4.12 - - A dump/restore is not required for those running 7.4.X. - - + + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.11, see the release + notes for 7.4.11. + + - - Changes + + Changes -Disallow LOAD to non-superusers - -On platforms that will automatically execute initialization functions of a -shared library (this includes at least Windows and ELF-based Unixen), -LOAD can be used to make the server execute arbitrary code. -Thanks to NGS Software for reporting this. -Check that creator of an aggregate function has the right to -execute the specified transition functions - -This oversight made it possible to bypass denial of EXECUTE -permission on a function. -Fix security and 64-bit issues in -contrib/intagg -Add needed STRICT marking to some contrib functions (Kris -Jurka) -Avoid buffer overrun when plpgsql cursor declaration has too -many parameters (Neil) -Fix planning error for FULL and RIGHT outer joins - -The result of the join was mistakenly supposed to be sorted the same as the -left input. This could not only deliver mis-sorted output to the user, but -in case of nested merge joins could give outright wrong answers. - -Fix plperl for quote marks in tuple fields -Fix display of negative intervals in SQL and GERMAN -datestyles -Make age(timestamptz) do calculation in local timezone not -GMT - - - +Fix potential crash in SET +SESSION AUTHORIZATION (CVE-2006-0553) +An unprivileged user could crash the server process, resulting in +momentary denial of service to other users, if the server has been compiled +with Asserts enabled (which is not the default). +Thanks to Akio Ishida for reporting this problem. + - - Release 7.4.6 +Fix bug with row visibility logic in self-inserted +rows (Tom) +Under rare circumstances a row inserted by the current command +could be seen as already valid, when it should not be. Repairs bug +created in 7.4.9 and 7.3.11 releases. + - - Release date - 2004-10-22 - +Fix race condition that could lead to file already +exists errors during pg_clog file creation +(Tom) - - This release contains a variety of fixes from 7.4.5. - +Properly check DOMAIN constraints for +UNKNOWN parameters in prepared statements +(Neil) +Fix to allow restoring dumps that have cross-schema +references to custom operators (Tom) - - Migration to version 7.4.6 +Portability fix for testing presence of finite +and isinf during configure (Tom) - - A dump/restore is not required for those running 7.4.X. - - + - - Changes + + - -Repair possible failure to update hint bits on disk - -Under rare circumstances this oversight could lead to -could not access transaction status failures, which qualifies -it as a potential-data-loss bug. - -Ensure that hashed outer join does not miss tuples - -Very large left joins using a hash join plan could fail to output unmatched -left-side rows given just the right data distribution. - -Disallow running pg_ctl as root - -This is to guard against any possible security issues. - -Avoid using temp files in /tmp in make_oidjoins_check - -This has been reported as a security issue, though it's hardly worthy of -concern since there is no reason for non-developers to use this script anyway. - -Prevent forced backend shutdown from re-emitting prior command -result - -In rare cases, a client might think that its last command had succeeded when -it really had been aborted by forced database shutdown. - -Repair bug in pg_stat_get_backend_idset - -This could lead to misbehavior in some of the system-statistics views. - -Fix small memory leak in postmaster -Fix expected both swapped tables to have TOAST -tables bug - -This could arise in cases such as CLUSTER after ALTER TABLE DROP COLUMN. - -Prevent pg_ctl restart from adding -D multiple times -Fix problem with NULL values in GiST indexes -:: is no longer interpreted as a variable in an -ECPG prepare statement - + + Release 7.4.11 - - + + Release date + 2006-01-09 + - - Release 7.4.5 + + This release contains a variety of fixes from 7.4.10. + - - Release date - 2004-08-18 - + + Migration to Version 7.4.11 - This release contains one serious bug fix over 7.4.4. + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.8, see the release + notes for 7.4.8. + Also, you might need to REINDEX indexes on textual + columns after updating, if you are affected by the locale or + plperl issues described below. + + + Changes - - Migration to version 7.4.5 + - - A dump/restore is not required for those running 7.4.X. - - +Fix for protocol-level Describe messages issued +outside a transaction or in a failed transaction (Tom) - - Changes +Fix character string comparison for locales that consider +different character combinations as equal, such as Hungarian (Tom) +This might require REINDEX to fix existing indexes on +textual columns. - -Repair possible crash during concurrent B-tree index insertions - -This patch fixes a rare case in which concurrent insertions into a B-tree index -could result in a server panic. No permanent damage would result, but it's -still worth a re-release. The bug does not exist in pre-7.4 releases. +Set locale environment variables during postmaster startup +to ensure that plperl won't change the locale later +This fixes a problem that occurred if the postmaster was +started with environment variables specifying a different locale than what +initdb had been told. Under these conditions, any use of +plperl was likely to lead to corrupt indexes. You might need +REINDEX to fix existing indexes on +textual columns if this has happened to you. + +Fix longstanding bug in strpos() and regular expression +handling in certain rarely used Asian multi-byte character sets (Tatsuo) + +Fix bug in /contrib/pgcrypto gen_salt, +which caused it not to use all available salt space for MD5 and +XDES algorithms (Marko Kreen, Solar Designer) +Salts for Blowfish and standard DES are unaffected. + +Fix /contrib/dblink to throw an error, +rather than crashing, when the number of columns specified is different from +what's actually returned by the query (Joe) + - - + + - - Release 7.4.4 + + Release 7.4.10 - - Release date - 2004-08-16 - + + Release date + 2005-12-12 + + + + This release contains a variety of fixes from 7.4.9. + + + + Migration to Version 7.4.10 - This release contains a variety of fixes from 7.4.3. + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.8, see the release + notes for 7.4.8. + + + Changes - - Migration to version 7.4.4 + - - A dump/restore is not required for those running 7.4.X. - - +Fix race condition in transaction log management +There was a narrow window in which an I/O operation could be initiated +for the wrong page, leading to an Assert failure or data +corruption. + - - Changes +Prevent failure if client sends Bind protocol message +when current transaction is already aborted - -Prevent possible loss of committed transactions during crash - -Due to insufficient interlocking between transaction commit and checkpointing, -it was possible for transactions committed just before the most recent -checkpoint to be lost, in whole or in part, following a database crash and -restart. This is a serious bug that has existed -since PostgreSQL 7.1. - -Check HAVING restriction before evaluating result list of an -aggregate plan -Avoid crash when session's current user ID is deleted -Fix hashed crosstab for zero-rows case (Joe) -Force cache update after renaming a column in a foreign key -Pretty-print UNION queries correctly -Make psql handle \r\n newlines properly in COPY IN -pg_dump handled ACLs with grant options incorrectly -Fix thread support for OS X and Solaris -Updated JDBC driver (build 215) with various fixes -ECPG fixes -Translation updates (various contributors) - +/contrib/ltree fixes (Teodor) - - +AIX and HPUX compile fixes (Tom) - - Release 7.4.3 +Fix longstanding planning error for outer joins +This bug sometimes caused a bogus error RIGHT JOIN is +only supported with merge-joinable join conditions. - - Release date - 2004-06-14 - +Prevent core dump in pg_autovacuum when a +table has been dropped + - - This release contains a variety of fixes from 7.4.2. - + + + + Release 7.4.9 - - Migration to version 7.4.3 + + Release date + 2005-10-04 + - - A dump/restore is not required for those running 7.4.X. - - + + This release contains a variety of fixes from 7.4.8. + - - Changes + + Migration to Version 7.4.9 + + + A dump/restore is not required for those running 7.4.X. However, + if you are upgrading from a version earlier than 7.4.8, see the release + notes for 7.4.8. + + + + + Changes -Fix temporary memory leak when using non-hashed aggregates (Tom) -ECPG fixes, including some for Informix compatibility (Michael) -Fixes for compiling with thread-safety, particularly Solaris (Bruce) -Fix error in COPY IN termination when using the old network protocol (ljb) -Several important fixes in pg_autovacuum, including fixes for -large tables, unsigned oids, stability, temp tables, and debug mode -(Matthew T. O'Connor) -Fix problem with reading tar-format dumps on NetBSD and BSD/OS (Bruce) -Several JDBC fixes -Fix ALTER SEQUENCE RESTART where last_value equals the restart value (Tom) -Repair failure to recalculate nested sub-selects (Tom) -Fix problems with non-constant expressions in LIMIT/OFFSET -Support FULL JOIN with no join clause, such as X FULL JOIN Y ON TRUE (Tom) -Fix another zero-column table bug (Tom) -Improve handling of non-qualified identifiers in GROUP BY clauses in sub-selects (Tom) - -Select-list aliases within the sub-select will now take precedence over -names from outer query levels. - -Do not generate NATURAL CROSS JOIN when decompiling rules (Tom) -Add checks for invalid field length in binary COPY (Tom) - - This fixes a difficult-to-exploit security hole. +Fix error that allowed VACUUM to remove +ctid chains too soon, and add more checking in code that follows +ctid links +This fixes a long-standing problem that could cause crashes in very rare +circumstances. +Fix CHAR() to properly pad spaces to the specified +length when using a multiple-byte character set (Yoshiyuki Asaba) +In prior releases, the padding of CHAR() was incorrect +because it only padded to the specified number of bytes without +considering how many characters were stored. +Fix the sense of the test for read-only transaction +in COPY +The code formerly prohibited COPY TO, where it should +prohibit COPY FROM. -Avoid locking conflict between ANALYZE and LISTEN/NOTIFY -Numerous translation updates (various contributors) +Fix planning problem with outer-join ON clauses that reference +only the inner-side relation +Further fixes for x FULL JOIN y ON true corner +cases +Make array_in and array_recv more +paranoid about validating their OID parameter +Fix missing rows in queries like UPDATE a=... WHERE +a... with GiST index on column a +Improve robustness of datetime parsing +Improve checking for partially-written WAL +pages +Improve robustness of signal handling when SSL is +enabled +Don't try to open more than max_files_per_process +files during postmaster startup +Various memory leakage fixes +Various portability improvements +Fix PL/PgSQL to handle var := var correctly when +the variable is of pass-by-reference type +Update contrib/tsearch2 to use current Snowball +code - - + + + + + Release 7.4.8 + + + Release date + 2005-05-09 + - - Release 7.4.2 + + This release contains a variety of fixes from 7.4.7, including several + security-related issues. + - - Release date - 2004-03-08 - + + Migration to Version 7.4.8 - This release contains a variety of fixes from 7.4.1. + A dump/restore is not required for those running 7.4.X. However, + it is one possible way of handling two significant security problems + that have been found in the initial contents of 7.4.X system + catalogs. A dump/initdb/reload sequence using 7.4.8's initdb will + automatically correct these problems. + + The larger security problem is that the built-in character set encoding + conversion functions can be invoked from SQL commands by unprivileged + users, but the functions were not designed for such use and are not + secure against malicious choices of arguments. The fix involves changing + the declared parameter list of these functions so that they can no longer + be invoked from SQL commands. (This does not affect their normal use + by the encoding conversion machinery.) + - - Migration to version 7.4.2 - - - A dump/restore is not required for those running 7.4.X. However, - it might be advisable as the easiest method of incorporating fixes for - two errors that have been found in the initial contents of 7.4.X system - catalogs. A dump/initdb/reload sequence using 7.4.2's initdb will - automatically correct these problems. - - - - The more severe of the two errors is that data type anyarray - has the wrong alignment label; this is a problem because the - pg_statistic system catalog uses anyarray - columns. The mislabeling can cause planner misestimations and even - crashes when planning queries that involve WHERE clauses on - double-aligned columns (such as float8 and timestamp). - It is strongly recommended that all installations repair this error, - either by initdb or by following the manual repair procedure given - below. - + + The lesser problem is that the contrib/tsearch2 module + creates several functions that are misdeclared to return + internal when they do not accept internal arguments. + This breaks type safety for all functions using internal + arguments. + - - The lesser error is that the system view pg_settings - ought to be marked as having public update access, to allow - UPDATE pg_settings to be used as a substitute for - SET. This can also be fixed either by initdb or manually, - but it is not necessary to fix unless you want to use UPDATE - pg_settings. - + + It is strongly recommended that all installations repair these errors, + either by initdb or by following the manual repair procedures given + below. The errors at least allow unprivileged database users to crash + their server process, and might allow unprivileged users to gain the + privileges of a database superuser. + - - If you wish not to do an initdb, the following procedure will work - for fixing pg_statistic. As the database superuser, - do: + + If you wish not to do an initdb, perform the following procedures instead. + As the database superuser, do: --- clear out old data in pg_statistic: -DELETE FROM pg_statistic; -VACUUM pg_statistic; --- this should update 1 row: -UPDATE pg_type SET typalign = 'd' WHERE oid = 2277; --- this should update 6 rows: -UPDATE pg_attribute SET attalign = 'd' WHERE atttypid = 2277; --- --- At this point you MUST start a fresh backend to avoid a crash! --- --- repopulate pg_statistic: -ANALYZE; +BEGIN; +UPDATE pg_proc SET proargtypes[3] = 'internal'::regtype +WHERE pronamespace = 11 AND pronargs = 5 + AND proargtypes[2] = 'cstring'::regtype; +-- The command should report having updated 90 rows; +-- if not, rollback and investigate instead of committing! +COMMIT; - This can be done in a live database, but beware that all backends - running in the altered database must be restarted before it is safe to - repopulate pg_statistic. - + Next, if you have installed contrib/tsearch2, do: - - To repair the pg_settings error, simply do: -GRANT SELECT, UPDATE ON pg_settings TO PUBLIC; +BEGIN; +UPDATE pg_proc SET proargtypes[0] = 'internal'::regtype +WHERE oid IN ( + 'dex_init(text)'::regprocedure, + 'snb_en_init(text)'::regprocedure, + 'snb_ru_init(text)'::regprocedure, + 'spell_init(text)'::regprocedure, + 'syn_init(text)'::regprocedure +); +-- The command should report having updated 5 rows; +-- if not, rollback and investigate instead of committing! +COMMIT; - - - The above procedures must be carried out in each database - of an installation, including template1, and ideally - including template0 as well. If you do not fix the - template databases then any subsequently created databases will contain - the same errors. template1 can be fixed in the same way - as any other database, but fixing template0 requires - additional steps. First, from any database issue: + If this command fails with a message like function + "dex_init(text)" does not exist, then either tsearch2 + is not installed in this database, or you already did the update. + + + + The above procedures must be carried out in each database + of an installation, including template1, and ideally + including template0 as well. If you do not fix the + template databases then any subsequently created databases will contain + the same errors. template1 can be fixed in the same way + as any other database, but fixing template0 requires + additional steps. First, from any database issue: UPDATE pg_database SET datallowconn = true WHERE datname = 'template0'; - Next connect to template0 and perform the above repair - procedures. Finally, do: + Next connect to template0 and perform the above repair + procedures. Finally, do: -- re-freeze template0: VACUUM FREEZE; -- and protect it against future alterations: UPDATE pg_database SET datallowconn = false WHERE datname = 'template0'; - - - - - Changes + + - - Release 7.4.2 incorporates all the fixes included in release 7.3.6, - plus the following fixes: - + + Changes -Fix pg_statistics alignment bug that could crash optimizer -See above for details about this problem. -Allow non-super users to update pg_settings -Fix several optimizer bugs, most of which led to -variable not found in subplan target lists errors -Avoid out-of-memory failure during startup of large multiple -index scan -Fix multibyte problem that could lead to out of -memory error during COPY IN -Fix problems with SELECT INTO / CREATE -TABLE AS from tables without OIDs -Fix problems with alter_table regression test -during parallel testing -Fix problems with hitting open file limit, especially on OS X (Tom) -Partial fix for Turkish-locale issues -initdb will succeed now in Turkish locale, but there are still some -inconveniences associated with the i/I problem. -Make pg_dump set client encoding on restore -Other minor pg_dump fixes -Allow ecpg to again use C keywords as column names (Michael) -Added ecpg WHENEVER NOT_FOUND to -SELECT/INSERT/UPDATE/DELETE (Michael) -Fix ecpg crash for queries calling set-returning functions (Michael) -Various other ecpg fixes (Michael) -Fixes for Borland compiler -Thread build improvements (Bruce) -Various other build fixes -Various JDBC fixes +Change encoding function signature to prevent +misuse +Change contrib/tsearch2 to avoid unsafe use of +INTERNAL function results +Repair ancient race condition that allowed a transaction to be +seen as committed for some purposes (eg SELECT FOR UPDATE) slightly sooner +than for other purposes +This is an extremely serious bug since it could lead to apparent +data inconsistencies being briefly visible to applications. +Repair race condition between relation extension and +VACUUM +This could theoretically have caused loss of a page's worth of +freshly-inserted data, although the scenario seems of very low probability. +There are no known cases of it having caused more than an Assert failure. + +Fix comparisons of TIME WITH TIME ZONE values + +The comparison code was wrong in the case where the +--enable-integer-datetimes configuration switch had been used. +NOTE: if you have an index on a TIME WITH TIME ZONE column, +it will need to be REINDEXed after installing this update, because +the fix corrects the sort order of column values. + +Fix EXTRACT(EPOCH) for +TIME WITH TIME ZONE values +Fix mis-display of negative fractional seconds in +INTERVAL values + +This error only occurred when the +--enable-integer-datetimes configuration switch had been used. + +Ensure operations done during backend shutdown are counted by +statistics collector + +This is expected to resolve reports of pg_autovacuum +not vacuuming the system catalogs often enough — it was not being +told about catalog deletions caused by temporary table removal during +backend exit. + +Additional buffer overrun checks in plpgsql +(Neil) +Fix pg_dump to dump trigger names containing % +correctly (Neil) +Fix contrib/pgcrypto for newer OpenSSL builds +(Marko Kreen) +Still more 64-bit fixes for +contrib/intagg +Prevent incorrect optimization of functions returning +RECORD +Prevent to_char(interval) from dumping core for +month-related formats +Prevent crash on COALESCE(NULL,NULL) +Fix array_map to call PL functions correctly +Fix permission checking in ALTER DATABASE RENAME +Fix ALTER LANGUAGE RENAME +Make RemoveFromWaitQueue clean up after itself + +This fixes a lock management error that would only be visible if a transaction +was kicked out of a wait for a lock (typically by query cancel) and then the +holder of the lock released it within a very narrow window. + +Fix problem with untyped parameter appearing in +INSERT ... SELECT +Fix CLUSTER failure after +ALTER TABLE SET WITHOUT OIDS - - - - - Release 7.4.1 - - - Release date - 2003-12-22 - - - - This release contains a variety of fixes from 7.4. - + + + + Release 7.4.7 - - Migration to version 7.4.1 + + Release date + 2005-01-31 + - - A dump/restore is not required for those - running 7.4. - + + This release contains a variety of fixes from 7.4.6, including several + security-related issues. + - - If you want to install the fixes in the information schema - you need to reload it into the database. - This is either accomplished by initializing a new cluster - by running initdb, or by running the following - sequence of SQL commands in each database (ideally including - template1) as a superuser in - psql, after installing the new release: - -DROP SCHEMA information_schema CASCADE; -\i /usr/local/pgsql/share/information_schema.sql - - Substitute your installation path in the second command. - + + Migration to Version 7.4.7 - + + A dump/restore is not required for those running 7.4.X. + + - - Changes + + Changes -Fixed bug in CREATE SCHEMA parsing in ECPG (Michael) -Fix compile error when and are used together (Peter) -Fix for subqueries that used hash joins (Tom) - - Certain subqueries that used hash joins would crash because of - improperly shared structures. - -Fix free space map compaction bug (Tom) - - This fixes a bug where compaction of the free space map could lead - to a database server shutdown. - - -Fix for Borland compiler build of libpq (Bruce) -Fix netmask() and hostmask() to return the maximum-length masklen (Tom) - - Fix these functions to return values consistent with pre-7.4 - releases. - - -Several contrib/pg_autovacuum fixes - - Fixes include improper variable initialization, missing vacuum after - TRUNCATE, and duration computation overflow for long vacuums. - - -Allow compile of contrib/cube under Cygwin (Jason Tishler) -Fix Solaris use of password file when no passwords are defined (Tom) - - Fix crash on Solaris caused by use of any type of password - authentication when no passwords were defined. - - -JDBC fix for thread problems, other fixes -Fix for bytea index lookups (Joe) -Fix information schema for bit data types (Peter) -Force zero_damaged_pages to be on during recovery from WAL -Prevent some obscure cases of variable not in subplan target lists -Make PQescapeBytea and byteaout consistent with each other (Joe) -Escape bytea output for bytes > 0x7e(Joe) +Disallow LOAD to non-superusers - If different client encodings are used for bytea output and input, it - is possible for bytea values to be corrupted by the differing - encodings. This fix escapes all bytes that might be affected. - - -Added missing SPI_finish() calls to dblink's get_tuple_of_interest() (Joe) -New Czech FAQ -Fix information schema view constraint_column_usage for foreign keys (Peter) -ECPG fixes (Michael) -Fix bug with multiple IN subqueries and joins in the subqueries (Tom) -Allow COUNT('x') to work (Tom) -Install ECPG include files for Informix compatibility into separate directory (Peter) +On platforms that will automatically execute initialization functions of a +shared library (this includes at least Windows and ELF-based Unixen), +LOAD can be used to make the server execute arbitrary code. +Thanks to NGS Software for reporting this. +Check that creator of an aggregate function has the right to +execute the specified transition functions - Some names of ECPG include files for Informix compatibility conflicted with operating system include files. - By installing them in their own directory, name conflicts have been reduced. - - -Fix SSL memory leak (Neil) +This oversight made it possible to bypass denial of EXECUTE +permission on a function. +Fix security and 64-bit issues in +contrib/intagg +Add needed STRICT marking to some contrib functions (Kris +Jurka) +Avoid buffer overrun when plpgsql cursor declaration has too +many parameters (Neil) +Fix planning error for FULL and RIGHT outer joins - This release fixes a bug in 7.4 where SSL didn't free all memory it allocated. - - -Prevent pg_service.conf from using service name as default dbname (Bruce) -Fix local ident authentication on FreeBSD (Tom) +The result of the join was mistakenly supposed to be sorted the same as the +left input. This could not only deliver mis-sorted output to the user, but +in case of nested merge joins could give outright wrong answers. + +Fix plperl for quote marks in tuple fields +Fix display of negative intervals in SQL and GERMAN +datestyles +Make age(timestamptz) do calculation in local timezone not +GMT - - Release 7.4 + + Release 7.4.6 - Release date - 2003-11-17 + Release date + 2004-10-22 + + This release contains a variety of fixes from 7.4.5. + + + - Overview + Migration to Version 7.4.6 - Major changes in this release: + A dump/restore is not required for those running 7.4.X. + - - - - IN / NOT IN subqueries are - now much more efficient - - - - - In previous releases, IN/NOT - IN subqueries were joined to the upper query by - sequentially scanning the subquery looking for a match. The - 7.4 code uses the same sophisticated techniques used by - ordinary joins and so is much faster. An - IN will now usually be as fast as or faster - than an equivalent EXISTS subquery; this - reverses the conventional wisdom that applied to previous - releases. - - - + + Changes - - - Improved GROUP BY processing by using hash buckets - + +Repair possible failure to update hint bits on disk + +Under rare circumstances this oversight could lead to +could not access transaction status failures, which qualifies +it as a potential-data-loss bug. + +Ensure that hashed outer join does not miss tuples + +Very large left joins using a hash join plan could fail to output unmatched +left-side rows given just the right data distribution. + +Disallow running pg_ctl as root + +This is to guard against any possible security issues. + +Avoid using temp files in /tmp in make_oidjoins_check + +This has been reported as a security issue, though it's hardly worthy of +concern since there is no reason for non-developers to use this script anyway. + +Prevent forced backend shutdown from re-emitting prior command +result + +In rare cases, a client might think that its last command had succeeded when +it really had been aborted by forced database shutdown. + +Repair bug in pg_stat_get_backend_idset + +This could lead to misbehavior in some of the system-statistics views. + +Fix small memory leak in postmaster +Fix expected both swapped tables to have TOAST +tables bug + +This could arise in cases such as CLUSTER after ALTER TABLE DROP COLUMN. + +Prevent pg_ctl restart from adding -D multiple times +Fix problem with NULL values in GiST indexes +:: is no longer interpreted as a variable in an +ECPG prepare statement + - - - In previous releases, rows to be grouped had to be sorted - first. The 7.4 code can do GROUP BY - without sorting, by accumulating results into a hash table - with one entry per group. It will still use the sort - technique, however, if the hash table is estimated to be too - large to fit in sort_mem. - - - + + - - - New multikey hash join capability - + + Release 7.4.5 - - - In previous releases, hash joins could only occur on single - keys. This release allows multicolumn hash joins. - - - + + Release date + 2004-08-18 + - - - Queries using the explicit JOIN syntax are - now better optimized - + + This release contains one serious bug fix over 7.4.4. + - - - Prior releases evaluated queries using the explicit - JOIN syntax only in the order implied by - the syntax. 7.4 allows full optimization of these queries, - meaning the optimizer considers all possible join orderings - and chooses the most efficient. Outer joins, however, must - still follow the declared ordering. - - - - - - Faster and more powerful regular expression code - + + Migration to Version 7.4.5 - - - The entire regular expression module has been replaced with a - new version by Henry Spencer, originally written for Tcl. The - code greatly improves performance and supports several flavors - of regular expressions. - - - + + A dump/restore is not required for those running 7.4.X. + + - - - Function-inlining for simple SQL functions - + + Changes - - - Simple SQL functions can now be inlined by including their SQL - in the main query. This improves performance by eliminating - per-call overhead. That means simple SQL functions now - behave like macros. - - - + +Repair possible crash during concurrent B-tree index insertions + +This patch fixes a rare case in which concurrent insertions into a B-tree index +could result in a server panic. No permanent damage would result, but it's +still worth a re-release. The bug does not exist in pre-7.4 releases. + + - - - Full support for IPv6 connections and IPv6 address data types - + + - - - Previous releases allowed only IPv4 connections, and the IP - data types only supported IPv4 addresses. This release adds - full IPv6 support in both of these areas. - - - + + Release 7.4.4 - - - Major improvements in SSL performance and reliability - + + Release date + 2004-08-16 + - - - Several people very familiar with the SSL API have overhauled - our SSL code to improve SSL key negotiation and error - recovery. - - - + + This release contains a variety of fixes from 7.4.3. + - - - Make free space map efficiently reuse empty index pages, - and other free space management improvements - - - - In previous releases, B-tree index pages that were left empty - because of deleted rows could only be reused by rows with - index values similar to the rows originally indexed on that - page. In 7.4, VACUUM records empty index - pages and allows them to be reused for any future index rows. - - - + + Migration to Version 7.4.4 - - - SQL-standard information schema - + + A dump/restore is not required for those running 7.4.X. + + - - - The information schema provides a standardized and stable way - to access information about the schema objects defined in a - database. - - - + + Changes - - - Cursors conform more closely to the SQL standard - + +Prevent possible loss of committed transactions during crash + +Due to insufficient interlocking between transaction commit and checkpointing, +it was possible for transactions committed just before the most recent +checkpoint to be lost, in whole or in part, following a database crash and +restart. This is a serious bug that has existed +since PostgreSQL 7.1. + +Check HAVING restriction before evaluating result list of an +aggregate plan +Avoid crash when session's current user ID is deleted +Fix hashed crosstab for zero-rows case (Joe) +Force cache update after renaming a column in a foreign key +Pretty-print UNION queries correctly +Make psql handle \r\n newlines properly in COPY IN +pg_dump handled ACLs with grant options incorrectly +Fix thread support for OS X and Solaris +Updated JDBC driver (build 215) with various fixes +ECPG fixes +Translation updates (various contributors) + - - - The commands FETCH and - MOVE have been overhauled to conform more - closely to the SQL standard. - - - + + - - - Cursors can exist outside transactions - + + Release 7.4.3 - - - These cursors are also called holdable cursors. - - - + + Release date + 2004-06-14 + - - - New client-to-server protocol - + + This release contains a variety of fixes from 7.4.2. + - - - The new protocol adds error codes, more status information, - faster startup, better support for binary data transmission, - parameter values separated from SQL commands, prepared - statements available at the protocol level, and cleaner - recovery from COPY failures. The older - protocol is still supported by both server and clients. - - - - - - libpq and - ECPG applications are now fully - thread-safe - + + Migration to Version 7.4.3 - - - While previous libpq releases - already supported threads, this release improves thread safety - by fixing some non-thread-safe code that was used during - database connection startup. The configure - option must be used to - enable this feature. - - - + + A dump/restore is not required for those running 7.4.X. + + - - - New version of full-text indexing - + + Changes - - - A new full-text indexing suite is available in - contrib/tsearch2. - - - + +Fix temporary memory leak when using non-hashed aggregates (Tom) +ECPG fixes, including some for Informix compatibility (Michael) +Fixes for compiling with thread-safety, particularly Solaris (Bruce) +Fix error in COPY IN termination when using the old network protocol (ljb) +Several important fixes in pg_autovacuum, including fixes for +large tables, unsigned oids, stability, temp tables, and debug mode +(Matthew T. O'Connor) +Fix problem with reading tar-format dumps on NetBSD and BSD/OS (Bruce) +Several JDBC fixes +Fix ALTER SEQUENCE RESTART where last_value equals the restart value (Tom) +Repair failure to recalculate nested sub-selects (Tom) +Fix problems with non-constant expressions in LIMIT/OFFSET +Support FULL JOIN with no join clause, such as X FULL JOIN Y ON TRUE (Tom) +Fix another zero-column table bug (Tom) +Improve handling of non-qualified identifiers in GROUP BY clauses in sub-selects (Tom) + +Select-list aliases within the sub-select will now take precedence over +names from outer query levels. + +Do not generate NATURAL CROSS JOIN when decompiling rules (Tom) +Add checks for invalid field length in binary COPY (Tom) + + This fixes a difficult-to-exploit security hole. + +Avoid locking conflict between ANALYZE and LISTEN/NOTIFY +Numerous translation updates (various contributors) + - - - New autovacuum tool - + + - - - The new autovacuum tool in - contrib/autovacuum monitors the database - statistics tables for - INSERT/UPDATE/DELETE - activity and automatically vacuums tables when needed. - - - + + Release 7.4.2 - - - Array handling has been improved and moved into the server core - + + Release date + 2004-03-08 + - - - Many array limitations have been removed, and arrays behave - more like fully-supported data types. - - - + + This release contains a variety of fixes from 7.4.1. + - - - Migration to version 7.4 + Migration to Version 7.4.2 - A dump/restore using pg_dump is - required for those wishing to migrate data from any previous - release. + A dump/restore is not required for those running 7.4.X. However, + it might be advisable as the easiest method of incorporating fixes for + two errors that have been found in the initial contents of 7.4.X system + catalogs. A dump/initdb/reload sequence using 7.4.2's initdb will + automatically correct these problems. - Observe the following incompatibilities: + The more severe of the two errors is that data type anyarray + has the wrong alignment label; this is a problem because the + pg_statistic system catalog uses anyarray + columns. The mislabeling can cause planner misestimations and even + crashes when planning queries that involve WHERE clauses on + double-aligned columns (such as float8 and timestamp). + It is strongly recommended that all installations repair this error, + either by initdb or by following the manual repair procedure given + below. - - - - The server-side autocommit setting was removed and - reimplemented in client applications and languages. - Server-side autocommit was causing too many problems with - languages and applications that wanted to control their own - autocommit behavior, so autocommit was removed from the server - and added to individual client APIs as appropriate. - - + + The lesser error is that the system view pg_settings + ought to be marked as having public update access, to allow + UPDATE pg_settings to be used as a substitute for + SET. This can also be fixed either by initdb or manually, + but it is not necessary to fix unless you want to use UPDATE + pg_settings. + - - - Error message wording has changed substantially in this - release. Significant effort was invested to make the messages - more consistent and user-oriented. If your applications try to - detect different error conditions by parsing the error message, - you are strongly encouraged to use the new error code facility instead. - - + + If you wish not to do an initdb, the following procedure will work + for fixing pg_statistic. As the database superuser, + do: - - - Inner joins using the explicit JOIN syntax - might behave differently because they are now better - optimized. - - + +-- clear out old data in pg_statistic: +DELETE FROM pg_statistic; +VACUUM pg_statistic; +-- this should update 1 row: +UPDATE pg_type SET typalign = 'd' WHERE oid = 2277; +-- this should update 6 rows: +UPDATE pg_attribute SET attalign = 'd' WHERE atttypid = 2277; +-- +-- At this point you MUST start a fresh backend to avoid a crash! +-- +-- repopulate pg_statistic: +ANALYZE; + - - - A number of server configuration parameters have been renamed - for clarity, primarily those related to - logging. - - + This can be done in a live database, but beware that all backends + running in the altered database must be restarted before it is safe to + repopulate pg_statistic. + - - - FETCH 0 or MOVE 0 now - does nothing. In prior releases, FETCH 0 - would fetch all remaining rows, and MOVE 0 - would move to the end of the cursor. - - + + To repair the pg_settings error, simply do: + +GRANT SELECT, UPDATE ON pg_settings TO PUBLIC; + + - - - FETCH and MOVE now return - the actual number of rows fetched/moved, or zero if at the - beginning/end of the cursor. Prior releases would return the - row count passed to the command, not the number of rows - actually fetched or moved. - - + + The above procedures must be carried out in each database + of an installation, including template1, and ideally + including template0 as well. If you do not fix the + template databases then any subsequently created databases will contain + the same errors. template1 can be fixed in the same way + as any other database, but fixing template0 requires + additional steps. First, from any database issue: + +UPDATE pg_database SET datallowconn = true WHERE datname = 'template0'; + + Next connect to template0 and perform the above repair + procedures. Finally, do: + +-- re-freeze template0: +VACUUM FREEZE; +-- and protect it against future alterations: +UPDATE pg_database SET datallowconn = false WHERE datname = 'template0'; + + + - - - COPY now can process files that use - carriage-return or carriage-return/line-feed end-of-line - sequences. Literal carriage-returns and line-feeds are no - longer accepted in data values; use \r and - \n instead. - - + + Changes - - - Trailing spaces are now trimmed when converting from type - char(n) to - varchar(n) or text. - This is what most people always expected to happen anyway. - - + + Release 7.4.2 incorporates all the fixes included in release 7.3.6, + plus the following fixes: + - - - The data type float(p) now - measures p in binary digits, not decimal - digits. The new behavior follows the SQL standard. - - + +Fix pg_statistics alignment bug that could crash optimizer +See above for details about this problem. +Allow non-super users to update pg_settings +Fix several optimizer bugs, most of which led to +variable not found in subplan target lists errors +Avoid out-of-memory failure during startup of large multiple +index scan +Fix multibyte problem that could lead to out of +memory error during COPY IN +Fix problems with SELECT INTO / CREATE +TABLE AS from tables without OIDs +Fix problems with alter_table regression test +during parallel testing +Fix problems with hitting open file limit, especially on OS X (Tom) +Partial fix for Turkish-locale issues +initdb will succeed now in Turkish locale, but there are still some +inconveniences associated with the i/I problem. +Make pg_dump set client encoding on restore +Other minor pg_dump fixes +Allow ecpg to again use C keywords as column names (Michael) +Added ecpg WHENEVER NOT_FOUND to +SELECT/INSERT/UPDATE/DELETE (Michael) +Fix ecpg crash for queries calling set-returning functions (Michael) +Various other ecpg fixes (Michael) +Fixes for Borland compiler +Thread build improvements (Bruce) +Various other build fixes +Various JDBC fixes + - - - Ambiguous date values now must match the ordering specified by - the datestyle setting. In prior releases, a - date specification of 10/20/03 was interpreted as a - date in October even if datestyle specified that - the day should be first. 7.4 will throw an error if a date - specification is invalid for the current setting of - datestyle. - - + + - - - The functions oidrand, - oidsrand, and - userfntest have been removed. These - functions were determined to be no longer useful. - - + + Release 7.4.1 - - - String literals specifying time-varying date/time values, such - as 'now' or 'today' will - no longer work as expected in column default expressions; they - now cause the time of the table creation to be the default, not - the time of the insertion. Functions such as - now(), current_timestamp, or - current_date should be used instead. - + + Release date + 2003-12-22 + - - In previous releases, there was special code so that strings - such as 'now' were interpreted at - INSERT time and not at table creation time, but - this work around didn't cover all cases. Release 7.4 now - requires that defaults be defined properly using functions such - as now() or current_timestamp. These - will work in all situations. - - + + This release contains a variety of fixes from 7.4. + - - - The dollar sign ($) is no longer allowed in - operator names. It can instead be a non-first character in - identifiers. This was done to improve compatibility with other - database systems, and to avoid syntax problems when parameter - placeholders ($n) are written - adjacent to operators. - - - + + Migration to Version 7.4.1 + + + A dump/restore is not required for those + running 7.4. + + + + If you want to install the fixes in the information schema + you need to reload it into the database. + This is either accomplished by initializing a new cluster + by running initdb, or by running the following + sequence of SQL commands in each database (ideally including + template1) as a superuser in + psql, after installing the new release: + +DROP SCHEMA information_schema CASCADE; +\i /usr/local/pgsql/share/information_schema.sql + + Substitute your installation path in the second command. + + Changes - - Below you will find a detailed account of the changes between - release 7.4 and the previous major release. - + +Fixed bug in CREATE SCHEMA parsing in ECPG (Michael) +Fix compile error when and are used together (Peter) +Fix for subqueries that used hash joins (Tom) + + Certain subqueries that used hash joins would crash because of + improperly shared structures. + +Fix free space map compaction bug (Tom) + + This fixes a bug where compaction of the free space map could lead + to a database server shutdown. + + +Fix for Borland compiler build of libpq (Bruce) +Fix netmask() and hostmask() to return the maximum-length masklen (Tom) + + Fix these functions to return values consistent with pre-7.4 + releases. + + +Several contrib/pg_autovacuum fixes + + Fixes include improper variable initialization, missing vacuum after + TRUNCATE, and duration computation overflow for long vacuums. + + +Allow compile of contrib/cube under Cygwin (Jason Tishler) +Fix Solaris use of password file when no passwords are defined (Tom) + + Fix crash on Solaris caused by use of any type of password + authentication when no passwords were defined. + + +JDBC fix for thread problems, other fixes +Fix for bytea index lookups (Joe) +Fix information schema for bit data types (Peter) +Force zero_damaged_pages to be on during recovery from WAL +Prevent some obscure cases of variable not in subplan target lists +Make PQescapeBytea and byteaout consistent with each other (Joe) +Escape bytea output for bytes > 0x7e(Joe) + + If different client encodings are used for bytea output and input, it + is possible for bytea values to be corrupted by the differing + encodings. This fix escapes all bytes that might be affected. + + +Added missing SPI_finish() calls to dblink's get_tuple_of_interest() (Joe) +New Czech FAQ +Fix information schema view constraint_column_usage for foreign keys (Peter) +ECPG fixes (Michael) +Fix bug with multiple IN subqueries and joins in the subqueries (Tom) +Allow COUNT('x') to work (Tom) +Install ECPG include files for Informix compatibility into separate directory (Peter) + + Some names of ECPG include files for Informix compatibility conflicted with operating system include files. + By installing them in their own directory, name conflicts have been reduced. + + +Fix SSL memory leak (Neil) + + This release fixes a bug in 7.4 where SSL didn't free all memory it allocated. + + +Prevent pg_service.conf from using service name as default dbname (Bruce) +Fix local ident authentication on FreeBSD (Tom) + - - Server Operation Changes + + - - - - Allow IPv6 server connections (Nigel Kukard, Johan Jordaan, - Bruce, Tom, Kurt Roeckx, Andrew Dunstan) - - + + Release 7.4 - - - Fix SSL to handle errors cleanly (Nathan Mueller) - - - In prior releases, certain SSL API error reports were not - handled correctly. This release fixes those problems. - - + + Release date + 2003-11-17 + + + + Overview + + + Major changes in this release: + - - - SSL protocol security and performance improvements (Sean Chittenden) - - - SSL key renegotiation was happening too frequently, causing poor - SSL performance. Also, initial key handling was improved. - - + + + + IN / NOT IN subqueries are + now much more efficient + - Print lock information when a deadlock is detected (Tom) - - - This allows easier debugging of deadlock situations. + In previous releases, IN/NOT + IN subqueries were joined to the upper query by + sequentially scanning the subquery looking for a match. The + 7.4 code uses the same sophisticated techniques used by + ordinary joins and so is much faster. An + IN will now usually be as fast as or faster + than an equivalent EXISTS subquery; this + reverses the conventional wisdom that applied to previous + releases. + + + + + Improved GROUP BY processing by using hash buckets + - Update /tmp socket modification times - regularly to avoid their removal (Tom) - - - This should help prevent /tmp directory - cleaner administration scripts from removing server socket - files. + In previous releases, rows to be grouped had to be sorted + first. The 7.4 code can do GROUP BY + without sorting, by accumulating results into a hash table + with one entry per group. It will still use the sort + technique, however, if the hash table is estimated to be too + large to fit in sort_mem. + - Enable PAM for Mac OS X (Aaron Hillegass) + + + New multikey hash join capability + - Make B-tree indexes fully WAL-safe (Tom) - In prior releases, under certain rare cases, a server crash - could cause B-tree indexes to become corrupt. This release - removes those last few rare cases. + In previous releases, hash joins could only occur on single + keys. This release allows multicolumn hash joins. + - Allow B-tree index compaction and empty page reuse (Tom) + + + Queries using the explicit JOIN syntax are + now better optimized + - Fix inconsistent index lookups during split of first root page (Tom) - - - In prior releases, when a single-page index split into two - pages, there was a brief period when another database session - could miss seeing an index entry. This release fixes that rare - failure case. + Prior releases evaluated queries using the explicit + JOIN syntax only in the order implied by + the syntax. 7.4 allows full optimization of these queries, + meaning the optimizer considers all possible join orderings + and chooses the most efficient. Outer joins, however, must + still follow the declared ordering. + - Improve free space map allocation logic (Tom) + + + Faster and more powerful regular expression code + - Preserve free space information between server restarts (Tom) - In prior releases, the free space map was not saved when the - postmaster was stopped, so newly started servers had no free - space information. This release saves the free space map, and - reloads it when the server is restarted. + The entire regular expression module has been replaced with a + new version by Henry Spencer, originally written for Tcl. The + code greatly improves performance and supports several flavors + of regular expressions. + - Add start time to pg_stat_activity (Neil) - New code to detect corrupt disk pages; erase with zero_damaged_pages (Tom) - New client/server protocol: faster, no username length limit, allow clean exit from COPY (Tom) - Add transaction status, table ID, column ID to client/server protocol (Tom) - Add binary I/O to client/server protocol (Tom) - Remove autocommit server setting; move to client applications (Tom) - New error message wording, error codes, and three levels of error detail (Tom, Joe, Peter) - - - - - Performance Improvements - - - Add hashing for GROUP BY aggregates (Tom) - Make nested-loop joins be smarter about multicolumn indexes (Tom) - Allow multikey hash joins (Tom) - Improve constant folding (Tom) - Add ability to inline simple SQL functions (Tom) + + + Function-inlining for simple SQL functions + - Reduce memory usage for queries using complex functions (Tom) - In prior releases, functions returning allocated memory would - not free it until the query completed. This release allows the - freeing of function-allocated memory when the function call - completes, reducing the total memory used by functions. + Simple SQL functions can now be inlined by including their SQL + in the main query. This improves performance by eliminating + per-call overhead. That means simple SQL functions now + behave like macros. + - - Improve GEQO optimizer performance (Tom) - - This release fixes several inefficiencies in the way the GEQO optimizer - manages potential query paths. - - + + + Full support for IPv6 connections and IPv6 address data types + - Allow IN/NOT IN to be handled via hash - tables (Tom) + Previous releases allowed only IPv4 connections, and the IP + data types only supported IPv4 addresses. This release adds + full IPv6 support in both of these areas. + - - - Improve NOT IN (subquery) - performance (Tom) - - + + + Major improvements in SSL performance and reliability + - Allow most IN subqueries to be processed as - joins (Tom) + Several people very familiar with the SSL API have overhauled + our SSL code to improve SSL key negotiation and error + recovery. + - - - Pattern matching operations can use indexes regardless of - locale (Peter) - - - There is no way for non-ASCII locales to use the standard - indexes for LIKE comparisons. This release - adds a way to create a special index for - LIKE. - - + + + Make free space map efficiently reuse empty index pages, + and other free space management improvements + - Allow the postmaster to preload libraries using preload_libraries (Joe) - For shared libraries that require a long time to load, this - option is available so the library can be preloaded in the - postmaster and inherited by all database sessions. + In previous releases, B-tree index pages that were left empty + because of deleted rows could only be reused by rows with + index values similar to the rows originally indexed on that + page. In 7.4, VACUUM records empty index + pages and allows them to be reused for any future index rows. + - - - Improve optimizer cost computations, particularly for subqueries (Tom) - - + + + SQL-standard information schema + - Avoid sort when subquery ORDER BY matches upper query (Tom) + The information schema provides a standardized and stable way + to access information about the schema objects defined in a + database. + - - - Deduce that WHERE a.x = b.y AND b.y = 42 also - means a.x = 42 (Tom) - - + + + Cursors conform more closely to the SQL standard + - Allow hash/merge joins on complex joins (Tom) + The commands FETCH and + MOVE have been overhauled to conform more + closely to the SQL standard. + - - - Allow hash joins for more data types (Tom) - - + + + Cursors can exist outside transactions + - Allow join optimization of explicit inner joins, disable with - join_collapse_limit (Tom) + These cursors are also called holdable cursors. + + + + + New client-to-server protocol + - Add parameter from_collapse_limit to control - conversion of subqueries to joins (Tom) + The new protocol adds error codes, more status information, + faster startup, better support for binary data transmission, + parameter values separated from SQL commands, prepared + statements available at the protocol level, and cleaner + recovery from COPY failures. The older + protocol is still supported by both server and clients. + + + + + libpq and + ECPG applications are now fully + thread-safe + - Use faster and more powerful regular expression code from Tcl - (Henry Spencer, Tom) + While previous libpq releases + already supported threads, this release improves thread safety + by fixing some non-thread-safe code that was used during + database connection startup. The configure + option must be used to + enable this feature. + + + + + New version of full-text indexing + - Use bit-mapped relation sets in the optimizer (Tom) + A new full-text indexing suite is available in + contrib/tsearch2. + + + + + New autovacuum tool + - Improve connection startup time (Tom) - The new client/server protocol requires fewer network packets to - start a database session. + The new autovacuum tool in + contrib/autovacuum monitors the database + statistics tables for + INSERT/UPDATE/DELETE + activity and automatically vacuums tables when needed. + + + + + Array handling has been improved and moved into the server core + - Improve trigger/constraint performance (Stephan) + Many array limitations have been removed, and arrays behave + more like fully-supported data types. + + + + + + + Migration to Version 7.4 + + + A dump/restore using pg_dump is + required for those wishing to migrate data from any previous + release. + + + + Observe the following incompatibilities: + + + + + + The server-side autocommit setting was removed and + reimplemented in client applications and languages. + Server-side autocommit was causing too many problems with + languages and applications that wanted to control their own + autocommit behavior, so autocommit was removed from the server + and added to individual client APIs as appropriate. + + + + + + Error message wording has changed substantially in this + release. Significant effort was invested to make the messages + more consistent and user-oriented. If your applications try to + detect different error conditions by parsing the error message, + you are strongly encouraged to use the new error code facility instead. + + + + + + Inner joins using the explicit JOIN syntax + might behave differently because they are now better + optimized. + + + + + + A number of server configuration parameters have been renamed + for clarity, primarily those related to + logging. + + + + + + FETCH 0 or MOVE 0 now + does nothing. In prior releases, FETCH 0 + would fetch all remaining rows, and MOVE 0 + would move to the end of the cursor. + + + + + + FETCH and MOVE now return + the actual number of rows fetched/moved, or zero if at the + beginning/end of the cursor. Prior releases would return the + row count passed to the command, not the number of rows + actually fetched or moved. + + + + + + COPY now can process files that use + carriage-return or carriage-return/line-feed end-of-line + sequences. Literal carriage-returns and line-feeds are no + longer accepted in data values; use \r and + \n instead. + + + + + + Trailing spaces are now trimmed when converting from type + char(n) to + varchar(n) or text. + This is what most people always expected to happen anyway. + + + + + + The data type float(p) now + measures p in binary digits, not decimal + digits. The new behavior follows the SQL standard. + + + + + + Ambiguous date values now must match the ordering specified by + the datestyle setting. In prior releases, a + date specification of 10/20/03 was interpreted as a + date in October even if datestyle specified that + the day should be first. 7.4 will throw an error if a date + specification is invalid for the current setting of + datestyle. + + + + + + The functions oidrand, + oidsrand, and + userfntest have been removed. These + functions were determined to be no longer useful. + + + + + + String literals specifying time-varying date/time values, such + as 'now' or 'today' will + no longer work as expected in column default expressions; they + now cause the time of the table creation to be the default, not + the time of the insertion. Functions such as + now(), current_timestamp, or + current_date should be used instead. + + + + In previous releases, there was special code so that strings + such as 'now' were interpreted at + INSERT time and not at table creation time, but + this work around didn't cover all cases. Release 7.4 now + requires that defaults be defined properly using functions such + as now() or current_timestamp. These + will work in all situations. + + + + + + The dollar sign ($) is no longer allowed in + operator names. It can instead be a non-first character in + identifiers. This was done to improve compatibility with other + database systems, and to avoid syntax problems when parameter + placeholders ($n) are written + adjacent to operators. + + + + + + + + Changes + + + Below you will find a detailed account of the changes between + release 7.4 and the previous major release. + + + + Server Operation Changes + + + + + Allow IPv6 server connections (Nigel Kukard, Johan Jordaan, + Bruce, Tom, Kurt Roeckx, Andrew Dunstan) + + + + + + Fix SSL to handle errors cleanly (Nathan Mueller) + + + In prior releases, certain SSL API error reports were not + handled correctly. This release fixes those problems. + + + + + + SSL protocol security and performance improvements (Sean Chittenden) + + + SSL key renegotiation was happening too frequently, causing poor + SSL performance. Also, initial key handling was improved. + + + + + + Print lock information when a deadlock is detected (Tom) + + + This allows easier debugging of deadlock situations. + + + + + + Update /tmp socket modification times + regularly to avoid their removal (Tom) + + + This should help prevent /tmp directory + cleaner administration scripts from removing server socket + files. + + + + Enable PAM for Mac OS X (Aaron Hillegass) + + + Make B-tree indexes fully WAL-safe (Tom) + + In prior releases, under certain rare cases, a server crash + could cause B-tree indexes to become corrupt. This release + removes those last few rare cases. + + + + Allow B-tree index compaction and empty page reuse (Tom) + + + + Fix inconsistent index lookups during split of first root page (Tom) + + + In prior releases, when a single-page index split into two + pages, there was a brief period when another database session + could miss seeing an index entry. This release fixes that rare + failure case. + + + + Improve free space map allocation logic (Tom) + + + Preserve free space information between server restarts (Tom) + + In prior releases, the free space map was not saved when the + postmaster was stopped, so newly started servers had no free + space information. This release saves the free space map, and + reloads it when the server is restarted. + + + + Add start time to pg_stat_activity (Neil) + New code to detect corrupt disk pages; erase with zero_damaged_pages (Tom) + New client/server protocol: faster, no username length limit, allow clean exit from COPY (Tom) + Add transaction status, table ID, column ID to client/server protocol (Tom) + Add binary I/O to client/server protocol (Tom) + Remove autocommit server setting; move to client applications (Tom) + New error message wording, error codes, and three levels of error detail (Tom, Joe, Peter) + + + + + Performance Improvements + + + Add hashing for GROUP BY aggregates (Tom) + Make nested-loop joins be smarter about multicolumn indexes (Tom) + Allow multikey hash joins (Tom) + Improve constant folding (Tom) + Add ability to inline simple SQL functions (Tom) + + + Reduce memory usage for queries using complex functions (Tom) + + In prior releases, functions returning allocated memory would + not free it until the query completed. This release allows the + freeing of function-allocated memory when the function call + completes, reducing the total memory used by functions. + + + + + Improve GEQO optimizer performance (Tom) + + This release fixes several inefficiencies in the way the GEQO optimizer + manages potential query paths. + + + + + + Allow IN/NOT IN to be handled via hash + tables (Tom) + + + + + + Improve NOT IN (subquery) + performance (Tom) + + + + + + Allow most IN subqueries to be processed as + joins (Tom) + + + + + + Pattern matching operations can use indexes regardless of + locale (Peter) + + + There is no way for non-ASCII locales to use the standard + indexes for LIKE comparisons. This release + adds a way to create a special index for + LIKE. + + + + + Allow the postmaster to preload libraries using preload_libraries (Joe) + + For shared libraries that require a long time to load, this + option is available so the library can be preloaded in the + postmaster and inherited by all database sessions. + + + + + + Improve optimizer cost computations, particularly for subqueries (Tom) + + + + + + Avoid sort when subquery ORDER BY matches upper query (Tom) + + + + + + Deduce that WHERE a.x = b.y AND b.y = 42 also + means a.x = 42 (Tom) + + + + + + Allow hash/merge joins on complex joins (Tom) + + + + + + Allow hash joins for more data types (Tom) + + + + + + Allow join optimization of explicit inner joins, disable with + join_collapse_limit (Tom) + + + + + + Add parameter from_collapse_limit to control + conversion of subqueries to joins (Tom) + + + + + + Use faster and more powerful regular expression code from Tcl + (Henry Spencer, Tom) + + + + + + Use bit-mapped relation sets in the optimizer (Tom) + + + + + Improve connection startup time (Tom) + + The new client/server protocol requires fewer network packets to + start a database session. + + + + + + Improve trigger/constraint performance (Stephan) + + + + + + Improve speed of col IN (const, const, const, ...) (Tom) + + + + + + Fix hash indexes which were broken in rare cases (Tom) + + + + Improve hash index concurrency and speed (Tom) + + Prior releases suffered from poor hash index performance, + particularly for high concurrency situations. This release fixes + that, and the development group is interested in reports + comparing B-tree and hash index performance. + + + + + Align shared buffers on 32-byte boundary for copy speed improvement (Manfred Spraul) + + Certain CPU's perform faster data copies when addresses are + 32-byte aligned. + + + + + Data type numeric reimplemented for better performance (Tom) + + numeric used to be stored in base 100. The new code + uses base 10000, for significantly better performance. + + + + + + + Server Configuration Changes + + + + Rename server parameter server_min_messages to log_min_messages (Bruce) + + This was done so most parameters that control the server logs + begin with log_. + + + + Rename show_*_stats to log_*_stats (Bruce) + Rename show_source_port to log_source_port (Bruce) + Rename hostname_lookup to log_hostname (Bruce) + + + Add checkpoint_warning to warn of excessive checkpointing (Bruce) + + In prior releases, it was difficult to determine if checkpoint + was happening too frequently. This feature adds a warning to the + server logs when excessive checkpointing happens. + + + + New read-only server parameters for localization (Tom) + + + + Change debug server log messages to output as DEBUG + rather than LOG (Bruce) + + + + + Prevent server log variables from being turned off by non-superusers (Bruce) + + This is a security feature so non-superusers cannot disable + logging that was enabled by the administrator. + + + + + + log_min_messages/client_min_messages now + controls debug_* output (Bruce) + + + This centralizes client debug information so all debug output + can be sent to either the client or server logs. + + + + + Add Mac OS X Rendezvous server support (Chris Campbell) + + This allows Mac OS X hosts to query the network for available + PostgreSQL servers. + + + + + + Add ability to print only slow statements using + log_min_duration_statement + (Christopher) + + + This is an often requested debugging feature that allows + administrators to see only slow queries in their server logs. + + + + + Allow pg_hba.conf to accept netmasks in CIDR format (Andrew Dunstan) + + This allows administrators to merge the host IP address and + netmask fields into a single CIDR field in pg_hba.conf. + + + + New read-only parameter is_superuser (Tom) + + + New parameter log_error_verbosity to control error detail (Tom) + + This works with the new error reporting feature to supply + additional error information like hints, file names and line + numbers. + + + + + postgres --describe-config now dumps server config variables (Aizaz Ahmed, Peter) + + This option is useful for administration tools that need to know + the configuration variable names and their minimums, maximums, + defaults, and descriptions. + + + + + + Add new columns in pg_settings: + context, type, source, + min_val, max_val (Joe) + + + + + + Make default shared_buffers 1000 and + max_connections 100, if possible (Tom) + + + Prior versions defaulted to 64 shared buffers so PostgreSQL + would start on even very old systems. This release tests the + amount of shared memory allowed by the platform and selects more + reasonable default values if possible. Of course, users are + still encouraged to evaluate their resource load and size + shared_buffers accordingly. + + - - - Improve speed of col IN (const, const, const, ...) (Tom) - - + + + New pg_hba.conf record type + hostnossl to prevent SSL connections (Jon + Jensen) + + + In prior releases, there was no way to prevent SSL connections + if both the client and server supported SSL. This option allows + that capability. + + - - - Fix hash indexes which were broken in rare cases (Tom) - - + + + Remove parameter geqo_random_seed + (Tom) + + - Improve hash index concurrency and speed (Tom) - - Prior releases suffered from poor hash index performance, - particularly for high concurrency situations. This release fixes - that, and the development group is interested in reports - comparing B-tree and hash index performance. - - + + + Add server parameter regex_flavor to control regular expression processing (Tom) + + - - Align shared buffers on 32-byte boundary for copy speed improvement (Manfred Spraul) - - Certain CPU's perform faster data copies when addresses are - 32-byte aligned. - - + + + Make pg_ctl better handle nonstandard ports (Greg) + + + + - - Data type numeric reimplemented for better performance (Tom) - - numeric used to be stored in base 100. The new code - uses base 10000, for significantly better performance. - - - - + + Query Changes - - Server Configuration Changes + + New SQL-standard information schema (Peter) + Add read-only transactions (Peter) + Print key name and value in foreign-key violation messages (Dmitry Tkach) - - - Rename server parameter server_min_messages to log_min_messages (Bruce) - - This was done so most parameters that control the server logs - begin with log_. - - + + Allow users to see their own queries in pg_stat_activity (Kevin Brown) + + In prior releases, only the superuser could see query strings + using pg_stat_activity. Now ordinary users + can see their own query strings. + + - Rename show_*_stats to log_*_stats (Bruce) - Rename show_source_port to log_source_port (Bruce) - Rename hostname_lookup to log_hostname (Bruce) + + Fix aggregates in subqueries to match SQL standard (Tom) + + The SQL standard says that an aggregate function appearing + within a nested subquery belongs to the outer query if its + argument contains only outer-query variables. Prior + PostgreSQL releases did not handle + this fine point correctly. + + - - Add checkpoint_warning to warn of excessive checkpointing (Bruce) - - In prior releases, it was difficult to determine if checkpoint - was happening too frequently. This feature adds a warning to the - server logs when excessive checkpointing happens. - - + + Add option to prevent auto-addition of tables referenced in query (Nigel J. Andrews) + + By default, tables mentioned in the query are automatically + added to the FROM clause if they are not already + there. This is compatible with historic + POSTGRES behavior but is contrary to + the SQL standard. This option allows selecting + standard-compatible behavior. + + - New read-only server parameters for localization (Tom) + + Allow UPDATE ... SET col = DEFAULT (Rod) + + This allows UPDATE to set a column to its + declared default value. + + - - - Change debug server log messages to output as DEBUG - rather than LOG (Bruce) - - + + Allow expressions to be used in LIMIT/OFFSET (Tom) + + In prior releases, LIMIT/OFFSET could + only use constants, not expressions. + + - - Prevent server log variables from being turned off by non-superusers (Bruce) - - This is a security feature so non-superusers cannot disable - logging that was enabled by the administrator. - - + + Implement CREATE TABLE AS EXECUTE (Neil, Peter) + + + - - - log_min_messages/client_min_messages now - controls debug_* output (Bruce) - - - This centralizes client debug information so all debug output - can be sent to either the client or server logs. - - + + Object Manipulation Changes - - Add Mac OS X Rendezvous server support (Chris Campbell) - - This allows Mac OS X hosts to query the network for available - PostgreSQL servers. - - + + + Make CREATE SEQUENCE grammar more conforming to SQL:2003 (Neil) + - - - Add ability to print only slow statements using - log_min_duration_statement - (Christopher) - - - This is an often requested debugging feature that allows - administrators to see only slow queries in their server logs. - - + + Add statement-level triggers (Neil) + + While this allows a trigger to fire at the end of a statement, + it does not allow the trigger to access all rows modified by the + statement. This capability is planned for a future release. + + - - Allow pg_hba.conf to accept netmasks in CIDR format (Andrew Dunstan) - - This allows administrators to merge the host IP address and - netmask fields into a single CIDR field in pg_hba.conf. - - + + Add check constraints for domains (Rod) + + This greatly increases the usefulness of domains by allowing + them to use check constraints. + + - New read-only parameter is_superuser (Tom) + + Add ALTER DOMAIN (Rod) + + This allows manipulation of existing domains. + + - - New parameter log_error_verbosity to control error detail (Tom) - - This works with the new error reporting feature to supply - additional error information like hints, file names and line - numbers. - - + + Fix several zero-column table bugs (Tom) + + PostgreSQL supports zero-column tables. This fixes various bugs + that occur when using such tables. + + - - postgres --describe-config now dumps server config variables (Aizaz Ahmed, Peter) - - This option is useful for administration tools that need to know - the configuration variable names and their minimums, maximums, - defaults, and descriptions. - - + + Have ALTER TABLE ... ADD PRIMARY KEY add not-null constraint (Rod) + + In prior releases, ALTER TABLE ... ADD + PRIMARY would add a unique index, but not a not-null + constraint. That is fixed in this release. + + - - - Add new columns in pg_settings: - context, type, source, - min_val, max_val (Joe) - - + Add ALTER TABLE ... WITHOUT OIDS (Rod) + + This allows control over whether new and updated rows will have + an OID column. This is most useful for saving storage space. + + - - - Make default shared_buffers 1000 and - max_connections 100, if possible (Tom) - - - Prior versions defaulted to 64 shared buffers so PostgreSQL - would start on even very old systems. This release tests the - amount of shared memory allowed by the platform and selects more - reasonable default values if possible. Of course, users are - still encouraged to evaluate their resource load and size - shared_buffers accordingly. - - + + + Add ALTER SEQUENCE to modify minimum, maximum, + increment, cache, cycle values (Rod) + + - - - New pg_hba.conf record type - hostnossl to prevent SSL connections (Jon - Jensen) - - - In prior releases, there was no way to prevent SSL connections - if both the client and server supported SSL. This option allows - that capability. - - + + Add ALTER TABLE ... CLUSTER ON (Alvaro Herrera) + + This command is used by pg_dump to record the + cluster column for each table previously clustered. This + information is used by database-wide cluster to cluster all + previously clustered tables. + + - - - Remove parameter geqo_random_seed - (Tom) - - + Improve automatic type casting for domains (Rod, Tom) + Allow dollar signs in identifiers, except as first character (Tom) + Disallow dollar signs in operator names, so x=$1 works (Tom) - - - Add server parameter regex_flavor to control regular expression processing (Tom) - - + + + Allow copying table schema using LIKE + subtable, also SQL:2003 + feature INCLUDING DEFAULTS (Rod) + + - - - Make pg_ctl better handle nonstandard ports (Greg) - - - - + + + Add WITH GRANT OPTION clause to + GRANT (Peter) + + + This enabled GRANT to give other users the + ability to grant privileges on a object. + + + + - - Query Changes + + Utility Command Changes - - New SQL-standard information schema (Peter) - Add read-only transactions (Peter) - Print key name and value in foreign-key violation messages (Dmitry Tkach) + + + Add ON COMMIT clause to CREATE TABLE for temporary tables (Gavin) + + This adds the ability for a table to be dropped or all rows + deleted on transaction commit. + + - - Allow users to see their own queries in pg_stat_activity (Kevin Brown) - - In prior releases, only the superuser could see query strings - using pg_stat_activity. Now ordinary users - can see their own query strings. - - + + Allow cursors outside transactions using WITH HOLD (Neil) + + In previous releases, cursors were removed at the end of the + transaction that created them. Cursors can now be created with + the WITH HOLD option, which allows them to + continue to be accessed after the creating transaction has + committed. + + - - Fix aggregates in subqueries to match SQL standard (Tom) - - The SQL standard says that an aggregate function appearing - within a nested subquery belongs to the outer query if its - argument contains only outer-query variables. Prior - PostgreSQL releases did not handle - this fine point correctly. - - + + FETCH 0 and MOVE 0 now do nothing (Bruce) + + In previous releases, FETCH 0 fetched all + remaining rows, and MOVE 0 moved to the end + of the cursor. + + - - Add option to prevent auto-addition of tables referenced in query (Nigel J. Andrews) - - By default, tables mentioned in the query are automatically - added to the FROM clause if they are not already - there. This is compatible with historic - POSTGRES behavior but is contrary to - the SQL standard. This option allows selecting - standard-compatible behavior. - - + + + Cause FETCH and MOVE to + return the number of rows fetched/moved, or zero if at the + beginning/end of cursor, per SQL standard (Bruce) + + + In prior releases, the row count returned by + FETCH and MOVE did not + accurately reflect the number of rows processed. + + - - Allow UPDATE ... SET col = DEFAULT (Rod) - - This allows UPDATE to set a column to its - declared default value. - - + + Properly handle SCROLL with cursors, or + report an error (Neil) + + Allowing random access (both forward and backward scrolling) to + some kinds of queries cannot be done without some additional + work. If SCROLL is specified when the cursor + is created, this additional work will be performed. Furthermore, + if the cursor has been created with NO SCROLL, + no random access is allowed. + + - - Allow expressions to be used in LIMIT/OFFSET (Tom) - - In prior releases, LIMIT/OFFSET could - only use constants, not expressions. - - + + + Implement SQL-compatible options FIRST, + LAST, ABSOLUTE n, + RELATIVE n for + FETCH and MOVE (Tom) + + - - Implement CREATE TABLE AS EXECUTE (Neil, Peter) - - - + + Allow EXPLAIN on DECLARE CURSOR (Tom) + - - Object Manipulation Changes + + Allow CLUSTER to use index marked as pre-clustered by default (Alvaro Herrera) + - - - Make CREATE SEQUENCE grammar more conforming to SQL:2003 (Neil) - + + Allow CLUSTER to cluster all tables (Alvaro Herrera) + + This allows all previously clustered tables in a database to be + reclustered with a single command. + + - - Add statement-level triggers (Neil) - - While this allows a trigger to fire at the end of a statement, - it does not allow the trigger to access all rows modified by the - statement. This capability is planned for a future release. - - + Prevent CLUSTER on partial indexes (Tom) - - Add check constraints for domains (Rod) - - This greatly increases the usefulness of domains by allowing - them to use check constraints. - - + Allow DOS and Mac line-endings in COPY files (Bruce) - - Add ALTER DOMAIN (Rod) - - This allows manipulation of existing domains. - - + + + Disallow literal carriage return as a data value, + backslash-carriage-return and \r are still allowed + (Bruce) + + - - Fix several zero-column table bugs (Tom) - - PostgreSQL supports zero-column tables. This fixes various bugs - that occur when using such tables. - - + + COPY changes (binary, \.) (Tom) + - - Have ALTER TABLE ... ADD PRIMARY KEY add not-null constraint (Rod) - - In prior releases, ALTER TABLE ... ADD - PRIMARY would add a unique index, but not a not-null - constraint. That is fixed in this release. - - + + Recover from COPY failure cleanly (Tom) + - Add ALTER TABLE ... WITHOUT OIDS (Rod) - - This allows control over whether new and updated rows will have - an OID column. This is most useful for saving storage space. - - + + Prevent possible memory leaks in COPY (Tom) + - - - Add ALTER SEQUENCE to modify minimum, maximum, - increment, cache, cycle values (Rod) - - + + Make TRUNCATE transaction-safe (Rod) + + TRUNCATE can now be used inside a + transaction. If the transaction aborts, the changes made by the + TRUNCATE are automatically rolled back. + + - - Add ALTER TABLE ... CLUSTER ON (Alvaro Herrera) - - This command is used by pg_dump to record the - cluster column for each table previously clustered. This - information is used by database-wide cluster to cluster all - previously clustered tables. - - + + + Allow prepare/bind of utility commands like + FETCH and EXPLAIN (Tom) + + - Improve automatic type casting for domains (Rod, Tom) - Allow dollar signs in identifiers, except as first character (Tom) - Disallow dollar signs in operator names, so x=$1 works (Tom) + + Add EXPLAIN EXECUTE (Neil) + - - - Allow copying table schema using LIKE - subtable, also SQL:2003 - feature INCLUDING DEFAULTS (Rod) - - + + Improve VACUUM performance on indexes by reducing WAL traffic (Tom) + - - - Add WITH GRANT OPTION clause to - GRANT (Peter) - - - This enabled GRANT to give other users the - ability to grant privileges on a object. - - - - + + Functional indexes have been generalized into indexes on expressions (Tom) + + In prior releases, functional indexes only supported a simple + function applied to one or more column names. This release + allows any type of scalar expression. + + - - Utility Command Changes + + + Have SHOW TRANSACTION ISOLATION match input + to SET TRANSACTION ISOLATION + (Tom) + + - - - Add ON COMMIT clause to CREATE TABLE for temporary tables (Gavin) - - This adds the ability for a table to be dropped or all rows - deleted on transaction commit. + + + Have COMMENT ON DATABASE on nonlocal + database generate a warning, rather than an error (Rod) - - - Allow cursors outside transactions using WITH HOLD (Neil) - - In previous releases, cursors were removed at the end of the - transaction that created them. Cursors can now be created with - the WITH HOLD option, which allows them to - continue to be accessed after the creating transaction has - committed. - - + + Database comments are stored in database-local tables so + comments on a database have to be stored in each database. + + + + + + Improve reliability of LISTEN/NOTIFY (Tom) + + - - FETCH 0 and MOVE 0 now do nothing (Bruce) - - In previous releases, FETCH 0 fetched all - remaining rows, and MOVE 0 moved to the end - of the cursor. - - + + Allow REINDEX to reliably reindex nonshared system catalog indexes (Tom) + + This allows system tables to be reindexed without the + requirement of a standalone session, which was necessary in + previous releases. The only tables that now require a standalone + session for reindexing are the global system tables + pg_database, pg_shadow, and + pg_group. + + + + - - - Cause FETCH and MOVE to - return the number of rows fetched/moved, or zero if at the - beginning/end of cursor, per SQL standard (Bruce) - - - In prior releases, the row count returned by - FETCH and MOVE did not - accurately reflect the number of rows processed. - - + + Data Type and Function Changes - - Properly handle SCROLL with cursors, or - report an error (Neil) - - Allowing random access (both forward and backward scrolling) to - some kinds of queries cannot be done without some additional - work. If SCROLL is specified when the cursor - is created, this additional work will be performed. Furthermore, - if the cursor has been created with NO SCROLL, - no random access is allowed. - - + + + + New server parameter extra_float_digits to + control precision display of floating-point numbers (Pedro + Ferreira, Tom) + + + This controls output precision which was causing regression + testing problems. + + - - - Implement SQL-compatible options FIRST, - LAST, ABSOLUTE n, - RELATIVE n for - FETCH and MOVE (Tom) - - + Allow +1300 as a numeric time-zone specifier, for FJST (Tom) - - Allow EXPLAIN on DECLARE CURSOR (Tom) - + + + Remove rarely used functions oidrand, + oidsrand, and userfntest functions + (Neil) + + - - Allow CLUSTER to use index marked as pre-clustered by default (Alvaro Herrera) - + + Add md5() function to main server, already in contrib/pgcrypto (Joe) + + An MD5 function was frequently requested. For more complex + encryption capabilities, use + contrib/pgcrypto. + + - - Allow CLUSTER to cluster all tables (Alvaro Herrera) - - This allows all previously clustered tables in a database to be - reclustered with a single command. - - + Increase date range of timestamp (John Cochran) - Prevent CLUSTER on partial indexes (Tom) + + + Change EXTRACT(EPOCH FROM timestamp) so + timestamp without time zone is assumed to be in + local time, not GMT (Tom) + + - Allow DOS and Mac line-endings in COPY files (Bruce) + Trap division by zero in case the operating system doesn't prevent it (Tom) + Change the numeric data type internally to base 10000 (Tom) + New hostmask() function (Greg Wickham) + Fixes for to_char() and to_timestamp() (Karel) - - - Disallow literal carriage return as a data value, - backslash-carriage-return and \r are still allowed - (Bruce) - - + + + Allow functions that can take any argument data type and return + any data type, using anyelement and + anyarray (Joe) + + + This allows the creation of functions that can work with any + data type. + + - - COPY changes (binary, \.) (Tom) - + + + Arrays can now be specified as ARRAY[1,2,3], + ARRAY[['a','b'],['c','d']], or + ARRAY[ARRAY[ARRAY[2]]] (Joe) + + - - Recover from COPY failure cleanly (Tom) - + + + Allow proper comparisons for arrays, including ORDER + BY and DISTINCT support + (Joe) + + - - Prevent possible memory leaks in COPY (Tom) - + Allow indexes on array columns (Joe) + Allow array concatenation with || (Joe) - - Make TRUNCATE transaction-safe (Rod) - - TRUNCATE can now be used inside a - transaction. If the transaction aborts, the changes made by the - TRUNCATE are automatically rolled back. - - + + + Allow WHERE qualification + expr op ANY/SOME/ALL + (array_expr) (Joe) + + + This allows arrays to behave like a list of values, for purposes + like SELECT * FROM tab WHERE col IN + (array_val). + + - - - Allow prepare/bind of utility commands like - FETCH and EXPLAIN (Tom) - - + + + New array functions array_append, + array_cat, array_lower, + array_prepend, array_to_string, + array_upper, string_to_array (Joe) + + - - Add EXPLAIN EXECUTE (Neil) - + Allow user defined aggregates to use polymorphic functions (Joe) + Allow assignments to empty arrays (Joe) - - Improve VACUUM performance on indexes by reducing WAL traffic (Tom) - + + + Allow 60 in seconds fields of time, + timestamp, and interval input values + (Tom) + + + Sixty-second values are needed for leap seconds. + + - - Functional indexes have been generalized into indexes on expressions (Tom) - - In prior releases, functional indexes only supported a simple - function applied to one or more column names. This release - allows any type of scalar expression. - - + Allow cidr data type to be cast to text (Tom) - - - Have SHOW TRANSACTION ISOLATION match input - to SET TRANSACTION ISOLATION - (Tom) - - + Disallow invalid time zone names in SET TIMEZONE - - - Have COMMENT ON DATABASE on nonlocal - database generate a warning, rather than an error (Rod) - + + + Trim trailing spaces when char is cast to + varchar or text (Tom) + + - - Database comments are stored in database-local tables so - comments on a database have to be stored in each database. - - + + + Make float(p) measure the precision + p in binary digits, not decimal digits + (Tom) + + - - - Improve reliability of LISTEN/NOTIFY (Tom) - - + + Add IPv6 support to the inet and cidr data types (Michael Graff) + - - Allow REINDEX to reliably reindex nonshared system catalog indexes (Tom) - - This allows system tables to be reindexed without the - requirement of a standalone session, which was necessary in - previous releases. The only tables that now require a standalone - session for reindexing are the global system tables - pg_database, pg_shadow, and - pg_group. - - - - + + Add family() function to report whether address is IPv4 or IPv6 (Michael Graff) + - - Data Type and Function Changes + + + Have SHOW datestyle generate output similar + to that used by SET datestyle (Tom) + + - - - - New server parameter extra_float_digits to - control precision display of floating-point numbers (Pedro - Ferreira, Tom) - - - This controls output precision which was causing regression - testing problems. - - + + + Make EXTRACT(TIMEZONE) and SET/SHOW + TIME ZONE follow the SQL convention for the sign of + time zone offsets, i.e., positive is east from UTC (Tom) + + - Allow +1300 as a numeric time-zone specifier, for FJST (Tom) + + Fix date_trunc('quarter', ...) (Böjthe Zoltán) + + Prior releases returned an incorrect value for this function call. + + - - - Remove rarely used functions oidrand, - oidsrand, and userfntest functions - (Neil) - - + + Make initcap() more compatible with Oracle (Mike Nolan) + + initcap() now uppercases a letter appearing + after any non-alphanumeric character, rather than only after + whitespace. + + - - Add md5() function to main server, already in contrib/pgcrypto (Joe) - - An MD5 function was frequently requested. For more complex - encryption capabilities, use - contrib/pgcrypto. - - + + Allow only datestyle field order for date values not in ISO-8601 format (Greg) + - Increase date range of timestamp (John Cochran) + + + Add new datestyle values MDY, + DMY, and YMD to set input field order; + honor US and European for backward + compatibility (Tom) + + - - - Change EXTRACT(EPOCH FROM timestamp) so - timestamp without time zone is assumed to be in - local time, not GMT (Tom) - - + + + String literals like 'now' or + 'today' will no longer work as a column + default. Use functions such as now(), + current_timestamp instead. (change + required for prepared statements) (Tom) + + - Trap division by zero in case the operating system doesn't prevent it (Tom) - Change the numeric data type internally to base 10000 (Tom) - New hostmask() function (Greg Wickham) - Fixes for to_char() and to_timestamp() (Karel) + + Treat NaN as larger than any other value in min()/max() (Tom) + + NaN was already sorted after ordinary numeric values for most + purposes, but min() and max() didn't + get this right. + + - - - Allow functions that can take any argument data type and return - any data type, using anyelement and - anyarray (Joe) - - - This allows the creation of functions that can work with any - data type. - - + + Prevent interval from suppressing :00 + seconds display + - - - Arrays can now be specified as ARRAY[1,2,3], - ARRAY[['a','b'],['c','d']], or - ARRAY[ARRAY[ARRAY[2]]] (Joe) - - + + + New functions pg_get_triggerdef(prettyprint) + and pg_conversion_is_visible() (Christopher) + + - - - Allow proper comparisons for arrays, including ORDER - BY and DISTINCT support - (Joe) - - + + Allow time to be specified as 040506 or 0405 (Tom) + - Allow indexes on array columns (Joe) - Allow array concatenation with || (Joe) + + + Input date order must now be YYYY-MM-DD (with 4-digit year) or + match datestyle + + - - - Allow WHERE qualification - expr op ANY/SOME/ALL - (array_expr) (Joe) - - - This allows arrays to behave like a list of values, for purposes - like SELECT * FROM tab WHERE col IN - (array_val). - - + + + Make pg_get_constraintdef support + unique, primary-key, and check constraints (Christopher) + + + + - - - New array functions array_append, - array_cat, array_lower, - array_prepend, array_to_string, - array_upper, string_to_array (Joe) - - + + Server-Side Language Changes - Allow user defined aggregates to use polymorphic functions (Joe) - Allow assignments to empty arrays (Joe) + + + + Prevent PL/pgSQL crash when RETURN NEXT is + used on a zero-row record variable (Tom) + + - - - Allow 60 in seconds fields of time, - timestamp, and interval input values - (Tom) - - - Sixty-second values are needed for leap seconds. - - + + + Make PL/Python's spi_execute interface + handle null values properly (Andrew Bosma) + + - Allow cidr data type to be cast to text (Tom) + + Allow PL/pgSQL to declare variables of composite types without %ROWTYPE (Tom) + - Disallow invalid time zone names in SET TIMEZONE + + Fix PL/Python's _quote() function to handle big integers + - - - Trim trailing spaces when char is cast to - varchar or text (Tom) - - + + Make PL/Python an untrusted language, now called plpythonu (Kevin Jacobs, Tom) + + The Python language no longer supports a restricted execution + environment, so the trusted version of PL/Python was removed. If + this situation changes, a version of PL/Python that can be used + by non-superusers will be readded. + + - - - Make float(p) measure the precision - p in binary digits, not decimal digits - (Tom) - - + + Allow polymorphic PL/pgSQL functions (Joe, Tom) + - - Add IPv6 support to the inet and cidr data types (Michael Graff) - + + Allow polymorphic SQL functions (Joe) + - - Add family() function to report whether address is IPv4 or IPv6 (Michael Graff) - + + + Improved compiled function caching mechanism in PL/pgSQL with + full support for polymorphism (Joe) + + - - - Have SHOW datestyle generate output similar - to that used by SET datestyle (Tom) - - + + + Add new parameter $0 in PL/pgSQL representing the + function's actual return type (Joe) + + - - - Make EXTRACT(TIMEZONE) and SET/SHOW - TIME ZONE follow the SQL convention for the sign of - time zone offsets, i.e., positive is east from UTC (Tom) - - + + + Allow PL/Tcl and PL/Python to use the same trigger on multiple tables (Tom) + + - - Fix date_trunc('quarter', ...) (Böjthe Zoltán) - - Prior releases returned an incorrect value for this function call. - - + + + Fixed PL/Tcl's spi_prepare to accept fully + qualified type names in the parameter type list + (Jan) + + + + - - Make initcap() more compatible with Oracle (Mike Nolan) - - initcap() now uppercases a letter appearing - after any non-alphanumeric character, rather than only after - whitespace. - - + + psql Changes - - Allow only datestyle field order for date values not in ISO-8601 format (Greg) - + + + Add \pset pager always to always use pager (Greg) + + This forces the pager to be used even if the number of rows is + less than the screen height. This is valuable for rows that + wrap across several screen rows. + + - - - Add new datestyle values MDY, - DMY, and YMD to set input field order; - honor US and European for backward - compatibility (Tom) - - + Improve tab completion (Rod, Ross Reedstrom, Ian Barwick) + Reorder \? help into groupings (Harald Armin Massa, Bruce) + Add backslash commands for listing schemas, casts, and conversions (Christopher) - - - String literals like 'now' or - 'today' will no longer work as a column - default. Use functions such as now(), - current_timestamp instead. (change - required for prepared statements) (Tom) - - + + + \encoding now changes based on the server parameter + client_encoding (Tom) + + + In previous versions, \encoding was not aware + of encoding changes made using SET + client_encoding. + + - - Treat NaN as larger than any other value in min()/max() (Tom) - - NaN was already sorted after ordinary numeric values for most - purposes, but min() and max() didn't - get this right. - - + + Save editor buffer into readline history (Ross) + + When \e is used to edit a query, the result is saved + in the readline history for retrieval using the up arrow. + + - - Prevent interval from suppressing :00 - seconds display - + Improve \d display (Christopher) + Enhance HTML mode to be more standards-conforming (Greg) - - - New functions pg_get_triggerdef(prettyprint) - and pg_conversion_is_visible() (Christopher) - - + + New \set AUTOCOMMIT off capability (Tom) + + This takes the place of the removed server parameter autocommit. + + - - Allow time to be specified as 040506 or 0405 (Tom) - + + New \set VERBOSITY to control error detail (Tom) + + This controls the new error reporting details. + + - - - Input date order must now be YYYY-MM-DD (with 4-digit year) or - match datestyle - - + New prompt escape sequence %x to show transaction status (Tom) + Long options for psql are now available on all platforms + + - - - Make pg_get_constraintdef support - unique, primary-key, and check constraints (Christopher) - - - - + + pg_dump Changes - - Server-Side Language Changes + + Multiple pg_dump fixes, including tar format and large objects + Allow pg_dump to dump specific schemas (Neil) - - - - Prevent PL/pgSQL crash when RETURN NEXT is - used on a zero-row record variable (Tom) - - + + Make pg_dump preserve column storage characteristics (Christopher) + + This preserves ALTER TABLE ... SET STORAGE information. + + - - - Make PL/Python's spi_execute interface - handle null values properly (Andrew Bosma) - - + Make pg_dump preserve CLUSTER characteristics (Christopher) - - Allow PL/pgSQL to declare variables of composite types without %ROWTYPE (Tom) - + + + Have pg_dumpall use GRANT/REVOKE to dump database-level privileges (Tom) + + - - Fix PL/Python's _quote() function to handle big integers - + + + Allow pg_dumpall to support the options + - - Make PL/Python an untrusted language, now called plpythonu (Kevin Jacobs, Tom) - - The Python language no longer supports a restricted execution - environment, so the trusted version of PL/Python was removed. If - this situation changes, a version of PL/Python that can be used - by non-superusers will be readded. - - + Prevent pg_dump from lowercasing identifiers specified on the command line (Tom) - - Allow polymorphic PL/pgSQL functions (Joe, Tom) - + + + pg_dump options + and now do nothing, all dumps + use SET SESSION AUTHORIZATION + + + pg_dump no longer reconnects to switch users, but instead always + uses SET SESSION AUTHORIZATION. This will + reduce password prompting during restores. + + - - Allow polymorphic SQL functions (Joe) - + + Long options for pg_dump are now available on all platforms + + PostgreSQL now includes its own + long-option processing routines. + + + + - - - Improved compiled function caching mechanism in PL/pgSQL with - full support for polymorphism (Joe) - - + + libpq Changes - - - Add new parameter $0 in PL/pgSQL representing the - function's actual return type (Joe) - - + + + + Add function PQfreemem for freeing memory on + Windows, suggested for NOTIFY (Bruce) + + + Windows requires that memory allocated in a library be freed by + a function in the same library, hence + free() doesn't work for freeing memory + allocated by libpq. PQfreemem is the proper + way to free libpq memory, especially on Windows, and is + recommended for other platforms as well. + + - - - Allow PL/Tcl and PL/Python to use the same trigger on multiple tables (Tom) - - + + Document service capability, and add sample file (Bruce) + + This allows clients to look up connection information in a + central file on the client machine. + + - - - Fixed PL/Tcl's spi_prepare to accept fully - qualified type names in the parameter type list - (Jan) - - - - + + + Make PQsetdbLogin have the same defaults as + PQconnectdb (Tom) + + - - psql Changes + Allow libpq to cleanly fail when result sets are too large (Tom) - - - Add \pset pager always to always use pager (Greg) - - This forces the pager to be used even if the number of rows is - less than the screen height. This is valuable for rows that - wrap across several screen rows. - - + + + Improve performance of function PQunescapeBytea (Ben Lamb) + + - Improve tab completion (Rod, Ross Reedstrom, Ian Barwick) - Reorder \? help into groupings (Harald Armin Massa, Bruce) - Add backslash commands for listing schemas, casts, and conversions (Christopher) + + + Allow thread-safe libpq with configure + option (Lee Kindness, + Philip Yarra) + + - - - \encoding now changes based on the server parameter - client_encoding (Tom) - - - In previous versions, \encoding was not aware - of encoding changes made using SET - client_encoding. - - + + + Allow function pqInternalNotice to accept a + format string and arguments instead of just a preformatted + message (Tom, Sean Chittenden) + + - - Save editor buffer into readline history (Ross) - - When \e is used to edit a query, the result is saved - in the readline history for retrieval using the up arrow. - - + + + Control SSL negotiation with sslmode values + disable, allow, + prefer, and require (Jon + Jensen) + + - Improve \d display (Christopher) - Enhance HTML mode to be more standards-conforming (Greg) + + Allow new error codes and levels of text (Tom) + - - New \set AUTOCOMMIT off capability (Tom) - - This takes the place of the removed server parameter autocommit. - - + + Allow access to the underlying table and column of a query result (Tom) + + This is helpful for query-builder applications that want to know + the underlying table and column names associated with a specific + result set. + + - - New \set VERBOSITY to control error detail (Tom) - - This controls the new error reporting details. + Allow access to the current transaction status (Tom) + Add ability to pass binary data directly to the server (Tom) + + + + Add function PQexecPrepared and + PQsendQueryPrepared functions which perform + bind/execute of previously prepared statements (Tom) + + + + + JDBC Changes + + + Allow setNull on updateable result sets + Allow executeBatch on a prepared statement (Barry) + Support SSL connections (Barry) + Handle schema names in result sets (Paul Sorenson) + Add refcursor support (Nic Ferrier) + + + + + Miscellaneous Interface Changes + + + + Prevent possible memory leak or core dump during libpgtcl shutdown (Tom) + + + Add Informix compatibility to ECPG (Michael) + + This allows ECPG to process embedded C programs that were + written using certain Informix extensions. + + - New prompt escape sequence %x to show transaction status (Tom) - Long options for psql are now available on all platforms - - - - - pg_dump Changes + + Add type decimal to ECPG that is fixed length, for Informix (Michael) + - - Multiple pg_dump fixes, including tar format and large objects - Allow pg_dump to dump specific schemas (Neil) + + + Allow thread-safe embedded SQL programs with + configure option + (Lee Kindness, Bruce) + + + This allows multiple threads to access the database at the same + time. + + + + + Moved Python client PyGreSQL to (Marc) + + + + + + Source Code Changes + + + Prevent need for separate platform geometry regression result files (Tom) + Improved PPC locking primitive (Reinhard Max) + New function palloc0 to allocate and clear memory (Bruce) + Fix locking code for s390x CPU (64-bit) (Tom) + Allow OpenBSD to use local ident credentials (William Ahern) + Make query plan trees read-only to executor (Tom) + Add Darwin startup scripts (David Wheeler) + Allow libpq to compile with Borland C++ compiler (Lester Godwin, Karl Waclawek) + Use our own version of getopt_long() if needed (Peter) + Convert administration scripts to C (Peter) + Bison >= 1.85 is now required to build the PostgreSQL grammar, if building from CVS + Merge documentation into one book (Peter) + Add Windows compatibility functions (Bruce) + Allow client interfaces to compile under MinGW (Bruce) + New ereport() function for error reporting (Tom) + Support Intel compiler on Linux (Peter) + Improve Linux startup scripts (Slawomir Sudnik, Darko Prenosil) + Add support for AMD Opteron and Itanium (Jeffrey W. Baker, Bruce) + + Remove option from configure + + This was no longer needed now that we have CREATE CONVERSION. + + + + Generate a compile error if spinlock code is not found (Bruce) + + Platforms without spinlock code will now fail to compile, rather + than silently using semaphores. This failure can be disabled + with a new configure option. + + + + + + + Contrib Changes + + + Change dbmirror license to BSD + Improve earthdistance (Bruno Wolff III) + Portability improvements to pgcrypto (Marko Kreen) + Prevent crash in xml (John Gray, Michael Richards) + Update oracle + Update mysql + Update cube (Bruno Wolff III) + Update earthdistance to use cube (Bruno Wolff III) + Update btree_gist (Oleg) + New tsearch2 full-text search module (Oleg, Teodor) + Add hash-based crosstab function to tablefuncs (Joe) + Add serial column to order connectby() siblings in tablefuncs (Nabil Sayegh,Joe) + Add named persistent connections to dblink (Shridhar Daithanka) + New pg_autovacuum allows automatic VACUUM (Matthew T. O'Connor) + Make pgbench honor environment variables PGHOST, PGPORT, PGUSER (Tatsuo) + Improve intarray (Teodor Sigaev) + Improve pgstattuple (Rod) + Fix bug in metaphone() in fuzzystrmatch + Improve adddepend (Rod) + Update spi/timetravel (Böjthe Zoltán) + Fix dbase + Remove array module because features now included by default (Joe) + + + + - - Make pg_dump preserve column storage characteristics (Christopher) - - This preserves ALTER TABLE ... SET STORAGE information. - - + + Release 7.3.21 - Make pg_dump preserve CLUSTER characteristics (Christopher) + + Release date + 2008-01-07 + - - - Have pg_dumpall use GRANT/REVOKE to dump database-level privileges (Tom) - - + + This release contains a variety of fixes from 7.3.20, + including fixes for significant security issues. + - - - Allow pg_dumpall to support the options - + + This is expected to be the last PostgreSQL release + in the 7.3.X series. Users are encouraged to update to a newer + release branch soon. + - Prevent pg_dump from lowercasing identifiers specified on the command line (Tom) + + Migration to Version 7.3.21 - - - pg_dump options - and now do nothing, all dumps - use SET SESSION AUTHORIZATION - - - pg_dump no longer reconnects to switch users, but instead always - uses SET SESSION AUTHORIZATION. This will - reduce password prompting during restores. - - + + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.13, see the release + notes for 7.3.13. + - - Long options for pg_dump are now available on all platforms - - PostgreSQL now includes its own - long-option processing routines. - - - - + - - libpq Changes + + Changes + - Add function PQfreemem for freeing memory on - Windows, suggested for NOTIFY (Bruce) - - - Windows requires that memory allocated in a library be freed by - a function in the same library, hence - free() doesn't work for freeing memory - allocated by libpq. PQfreemem is the proper - way to free libpq memory, especially on Windows, and is - recommended for other platforms as well. + Prevent functions in indexes from executing with the privileges of + the user running VACUUM, ANALYZE, etc (Tom) + + + + Functions used in index expressions and partial-index + predicates are evaluated whenever a new table entry is made. It has + long been understood that this poses a risk of trojan-horse code + execution if one modifies a table owned by an untrustworthy user. + (Note that triggers, defaults, check constraints, etc. pose the + same type of risk.) But functions in indexes pose extra danger + because they will be executed by routine maintenance operations + such as VACUUM FULL, which are commonly performed + automatically under a superuser account. For example, a nefarious user + can execute code with superuser privileges by setting up a + trojan-horse index definition and waiting for the next routine vacuum. + The fix arranges for standard maintenance operations + (including VACUUM, ANALYZE, REINDEX, + and CLUSTER) to execute as the table owner rather than + the calling user, using the same privilege-switching mechanism already + used for SECURITY DEFINER functions. To prevent bypassing + this security measure, execution of SET SESSION + AUTHORIZATION and SET ROLE is now forbidden within a + SECURITY DEFINER context. (CVE-2007-6600) - Document service capability, and add sample file (Bruce) - This allows clients to look up connection information in a - central file on the client machine. + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) - - - Make PQsetdbLogin have the same defaults as - PQconnectdb (Tom) + The fix that appeared for this in 7.3.20 was incomplete, as it plugged + the hole for only some dblink functions. (CVE-2007-6601, + CVE-2007-3278) - Allow libpq to cleanly fail when result sets are too large (Tom) - - Improve performance of function PQunescapeBytea (Ben Lamb) + Fix potential crash in translate() when using a multibyte + database encoding (Tom) - Allow thread-safe libpq with configure - option (Lee Kindness, - Philip Yarra) + Make contrib/tablefunc's crosstab() handle + NULL rowid as a category in its own right, rather than crashing (Joe) - Allow function pqInternalNotice to accept a - format string and arguments instead of just a preformatted - message (Tom, Sean Chittenden) + Require a specific version of Autoconf to be used + when re-generating the configure script (Peter) - - - Control SSL negotiation with sslmode values - disable, allow, - prefer, and require (Jon - Jensen) + This affects developers and packagers only. The change was made + to prevent accidental use of untested combinations of + Autoconf and PostgreSQL versions. + You can remove the version check if you really want to use a + different Autoconf version, but it's + your responsibility whether the result works or not. - - Allow new error codes and levels of text (Tom) - + - - Allow access to the underlying table and column of a query result (Tom) - - This is helpful for query-builder applications that want to know - the underlying table and column names associated with a specific - result set. - - + + - Allow access to the current transaction status (Tom) - Add ability to pass binary data directly to the server (Tom) + + Release 7.3.20 - - - Add function PQexecPrepared and - PQsendQueryPrepared functions which perform - bind/execute of previously prepared statements (Tom) - - - - + + Release date + 2007-09-17 + - - JDBC Changes + + This release contains fixes from 7.3.19. + - - Allow setNull on updateable result sets - Allow executeBatch on a prepared statement (Barry) - Support SSL connections (Barry) - Handle schema names in result sets (Paul Sorenson) - Add refcursor support (Nic Ferrier) - - + + Migration to Version 7.3.20 - - Miscellaneous Interface Changes + + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.13, see the release + notes for 7.3.13. + - - - Prevent possible memory leak or core dump during libpgtcl shutdown (Tom) - - - Add Informix compatibility to ECPG (Michael) - - This allows ECPG to process embedded C programs that were - written using certain Informix extensions. - - + - - Add type decimal to ECPG that is fixed length, for Informix (Michael) - + + Changes + + - Allow thread-safe embedded SQL programs with - configure option - (Lee Kindness, Bruce) - - - This allows multiple threads to access the database at the same - time. + Prevent index corruption when a transaction inserts rows and + then aborts close to the end of a concurrent VACUUM + on the same table (Tom) - Moved Python client PyGreSQL to (Marc) - - - - - - Source Code Changes - - - Prevent need for separate platform geometry regression result files (Tom) - Improved PPC locking primitive (Reinhard Max) - New function palloc0 to allocate and clear memory (Bruce) - Fix locking code for s390x CPU (64-bit) (Tom) - Allow OpenBSD to use local ident credentials (William Ahern) - Make query plan trees read-only to executor (Tom) - Add Darwin startup scripts (David Wheeler) - Allow libpq to compile with Borland C++ compiler (Lester Godwin, Karl Waclawek) - Use our own version of getopt_long() if needed (Peter) - Convert administration scripts to C (Peter) - Bison >= 1.85 is now required to build the PostgreSQL grammar, if building from CVS - Merge documentation into one book (Peter) - Add Windows compatibility functions (Bruce) - Allow client interfaces to compile under MinGW (Bruce) - New ereport() function for error reporting (Tom) - Support Intel compiler on Linux (Peter) - Improve Linux startup scripts (Slawomir Sudnik, Darko Prenosil) - Add support for AMD Opteron and Itanium (Jeffrey W. Baker, Bruce) - - Remove option from configure - This was no longer needed now that we have CREATE CONVERSION. + Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) + - Generate a compile error if spinlock code is not found (Bruce) - Platforms without spinlock code will now fail to compile, rather - than silently using semaphores. This failure can be disabled - with a new configure option. + Fix crash when log_min_error_statement logging runs out + of memory (Tom) - - - - - Contrib Changes - - - Change dbmirror license to BSD - Improve earthdistance (Bruno Wolff III) - Portability improvements to pgcrypto (Marko Kreen) - Prevent crash in xml (John Gray, Michael Richards) - Update oracle - Update mysql - Update cube (Bruno Wolff III) - Update earthdistance to use cube (Bruno Wolff III) - Update btree_gist (Oleg) - New tsearch2 full-text search module (Oleg, Teodor) - Add hash-based crosstab function to tablefuncs (Joe) - Add serial column to order connectby() siblings in tablefuncs (Nabil Sayegh,Joe) - Add named persistent connections to dblink (Shridhar Daithanka) - New pg_autovacuum allows automatic VACUUM (Matthew T. O'Connor) - Make pgbench honor environment variables PGHOST, PGPORT, PGUSER (Tatsuo) - Improve intarray (Teodor Sigaev) - Improve pgstattuple (Rod) - Fix bug in metaphone() in fuzzystrmatch - Improve adddepend (Rod) - Update spi/timetravel (Böjthe Zoltán) - Fix dbase - Remove array module because features now included by default (Joe) - - - - - - - Release 7.3.20 - - - Release date - 2007-09-17 - - - - This release contains fixes from 7.3.19. - - - - Migration to version 7.3.20 - - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.13, see the release - notes for 7.3.13. - - - - - - Changes - - - - - - Prevent index corruption when a transaction inserts rows and - then aborts close to the end of a concurrent VACUUM - on the same table (Tom) - - - - - - Make CREATE DOMAIN ... DEFAULT NULL work properly (Tom) - - - - - Fix crash when log_min_error_statement logging runs out - of memory (Tom) - - + + + Require non-superusers who use /contrib/dblink to use only + password authentication, as a security measure (Joe) + + - - - Require non-superusers who use /contrib/dblink to use only - password authentication, as a security measure (Joe) - - + - + + - - + + Release 7.3.19 - - Release 7.3.19 + + Release date + 2007-04-23 + - - Release date - 2007-04-23 - + + This release contains fixes from 7.3.18, + including a security fix. + + + + Migration to Version 7.3.19 - This release contains fixes from 7.3.18, - including a security fix. + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.13, see the release + notes for 7.3.13. - - Migration to version 7.3.19 + - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.13, see the release - notes for 7.3.13. - + + Changes - + - - Changes + + + Support explicit placement of the temporary-table schema within + search_path, and disable searching it for functions + and operators (Tom) + + + This is needed to allow a security-definer function to set a + truly secure value of search_path. Without it, + an unprivileged SQL user can use temporary objects to execute code + with the privileges of the security-definer function (CVE-2007-2138). + See CREATE FUNCTION for more information. + + - + + + Fix potential-data-corruption bug in how VACUUM FULL handles + UPDATE chains (Tom, Pavan Deolasee) + + - - - Support explicit placement of the temporary-table schema within - search_path, and disable searching it for functions - and operators (Tom) - - - This is needed to allow a security-definer function to set a - truly secure value of search_path. Without it, - an unprivileged SQL user can use temporary objects to execute code - with the privileges of the security-definer function (CVE-2007-2138). - See CREATE FUNCTION for more information. - - + - - - Fix potential-data-corruption bug in how VACUUM FULL handles - UPDATE chains (Tom, Pavan Deolasee) - - + + - + + Release 7.3.18 - - + + Release date + 2007-02-05 + - - Release 7.3.18 + + This release contains a variety of fixes from 7.3.17, including + a security fix. + - - Release date - 2007-02-05 - + + Migration to Version 7.3.18 - This release contains a variety of fixes from 7.3.17, including - a security fix. + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.13, see the release + notes for 7.3.13. - - Migration to version 7.3.18 + - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.13, see the release - notes for 7.3.13. - + + Changes - + - - Changes + + + Remove security vulnerability that allowed connected users + to read backend memory (Tom) + + + The vulnerability involves changing the + data type of a table column used in a SQL function (CVE-2007-0555). + This error can easily be exploited to cause a backend crash, and in + principle might be used to read database content that the user + should not be able to access. + + - + + + Fix rare bug wherein btree index page splits could fail + due to choosing an infeasible split point (Heikki Linnakangas) + + - - - Remove security vulnerability that allowed connected users - to read backend memory (Tom) - - - The vulnerability involves changing the - data type of a table column used in a SQL function (CVE-2007-0555). - This error can easily be exploited to cause a backend crash, and in - principle might be used to read database content that the user - should not be able to access. - - + + + Tighten security of multi-byte character processing for UTF8 sequences + over three bytes long (Tom) + + - - - Fix rare bug wherein btree index page splits could fail - due to choosing an infeasible split point (Heikki Linnakangas) - - + - - - Tighten security of multi-byte character processing for UTF8 sequences - over three bytes long (Tom) - - + + - + + Release 7.3.17 - - + + Release date + 2007-01-08 + - - Release 7.3.17 + + This release contains a variety of fixes from 7.3.16. + - - Release date - 2007-01-08 - + + Migration to Version 7.3.17 - This release contains a variety of fixes from 7.3.16. + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.13, see the release + notes for 7.3.13. - - Migration to version 7.3.17 + - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.13, see the release - notes for 7.3.13. - + + Changes - + - - Changes + + + to_number() and to_char(numeric) + are now STABLE, not IMMUTABLE, for + new initdb installs (Tom) + - + + This is because lc_numeric can potentially + change the output of these functions. + + - - - to_number() and to_char(numeric) - are now STABLE, not IMMUTABLE, for - new initdb installs (Tom) - + + + Improve index usage of regular expressions that use parentheses (Tom) + - - This is because lc_numeric can potentially - change the output of these functions. - - + + This improves psql \d performance also. + + - - - Improve index usage of regular expressions that use parentheses (Tom) - + - - This improves psql \d performance also. - - + + - + + Release 7.3.16 - - + + Release date + 2006-10-16 + - - Release 7.3.16 + + This release contains a variety of fixes from 7.3.15. + - - Release date - 2006-10-16 - + + Migration to Version 7.3.16 - This release contains a variety of fixes from 7.3.15. + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.13, see the release + notes for 7.3.13. - - Migration to version 7.3.16 - - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.13, see the release - notes for 7.3.13. - - - + - - Changes + + Changes Fix corner cases in pattern matching for - psql's \d commands + psql's \d commands Fix index-corrupting bugs in /contrib/ltree - (Teodor) + (Teodor) Back-port 7.4 spinlock code to improve performance and support 64-bit architectures better Fix SSL-related memory leak in libpq @@ -13541,46 +14561,46 @@ DROP SCHEMA information_schema CASCADE; - - + + - - Release 7.3.15 + + Release 7.3.15 - - Release date - 2006-05-23 - + + Release date + 2006-05-23 + - - This release contains a variety of fixes from 7.3.14, - including patches for extremely serious security issues. - + + This release contains a variety of fixes from 7.3.14, + including patches for extremely serious security issues. + - - Migration to version 7.3.15 + + Migration to Version 7.3.15 - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.13, see the release - notes for 7.3.13. - + + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.13, see the release + notes for 7.3.13. + - - Full security against the SQL-injection attacks described in - CVE-2006-2313 and CVE-2006-2314 might require changes in application - code. If you have applications that embed untrustworthy strings - into SQL commands, you should examine them as soon as possible to - ensure that they are using recommended escaping techniques. In - most cases, applications should be using subroutines provided by - libraries or drivers (such as libpq's - PQescapeStringConn()) to perform string escaping, - rather than relying on ad hoc code to do it. - - + + Full security against the SQL-injection attacks described in + CVE-2006-2313 and CVE-2006-2314 might require changes in application + code. If you have applications that embed untrustworthy strings + into SQL commands, you should examine them as soon as possible to + ensure that they are using recommended escaping techniques. In + most cases, applications should be using subroutines provided by + libraries or drivers (such as libpq's + PQescapeStringConn()) to perform string escaping, + rather than relying on ad hoc code to do it. + + - - Changes + + Changes Change the server to reject invalidly-encoded multibyte @@ -13633,33 +14653,33 @@ Fuhr) Fix various minor memory leaks - - + + - - Release 7.3.14 + + Release 7.3.14 - - Release date - 2006-02-14 - + + Release date + 2006-02-14 + - - This release contains a variety of fixes from 7.3.13. - + + This release contains a variety of fixes from 7.3.13. + - - Migration to version 7.3.14 + + Migration to Version 7.3.14 - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.13, see the release - notes for 7.3.13. - - + + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.13, see the release + notes for 7.3.13. + + - - Changes + + Changes @@ -13690,36 +14710,36 @@ and isinf during configure (Tom) - - + + - - Release 7.3.13 + + Release 7.3.13 - - Release date - 2006-01-09 - + + Release date + 2006-01-09 + + + + This release contains a variety of fixes from 7.3.12. + + + + Migration to Version 7.3.13 - This release contains a variety of fixes from 7.3.12. + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.10, see the release + notes for 7.3.10. + Also, you might need to REINDEX indexes on textual + columns after updating, if you are affected by the locale or + plperl issues described below. + - - Migration to version 7.3.13 - - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.10, see the release - notes for 7.3.10. - Also, you might need to REINDEX indexes on textual - columns after updating, if you are affected by the locale or - plperl issues described below. - - - - - Changes + + Changes @@ -13752,33 +14772,33 @@ what's actually returned by the query (Joe) - - + + - - Release 7.3.12 + + Release 7.3.12 - - Release date - 2005-12-12 - + + Release date + 2005-12-12 + - - This release contains a variety of fixes from 7.3.11. - + + This release contains a variety of fixes from 7.3.11. + - - Migration to version 7.3.12 + + Migration to Version 7.3.12 - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.10, see the release - notes for 7.3.10. - - + + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.10, see the release + notes for 7.3.10. + + - - Changes + + Changes @@ -13799,33 +14819,33 @@ table has been dropped - - + + - - Release 7.3.11 + + Release 7.3.11 - - Release date - 2005-10-04 - + + Release date + 2005-10-04 + - - This release contains a variety of fixes from 7.3.10. - + + This release contains a variety of fixes from 7.3.10. + - - Migration to version 7.3.11 + + Migration to Version 7.3.11 - - A dump/restore is not required for those running 7.3.X. However, - if you are upgrading from a version earlier than 7.3.10, see the release - notes for 7.3.10. - - + + A dump/restore is not required for those running 7.3.X. However, + if you are upgrading from a version earlier than 7.3.10, see the release + notes for 7.3.10. + + - - Changes + + Changes Fix error that allowed VACUUM to remove @@ -13850,87 +14870,87 @@ enabled the variable is of pass-by-reference type - - + + - - Release 7.3.10 + + Release 7.3.10 - - Release date - 2005-05-09 - + + Release date + 2005-05-09 + - - This release contains a variety of fixes from 7.3.9, including several - security-related issues. - + + This release contains a variety of fixes from 7.3.9, including several + security-related issues. + - - Migration to version 7.3.10 + + Migration to Version 7.3.10 - - A dump/restore is not required for those running 7.3.X. However, - it is one possible way of handling a significant security problem - that has been found in the initial contents of 7.3.X system - catalogs. A dump/initdb/reload sequence using 7.3.10's initdb will - automatically correct this problem. - + + A dump/restore is not required for those running 7.3.X. However, + it is one possible way of handling a significant security problem + that has been found in the initial contents of 7.3.X system + catalogs. A dump/initdb/reload sequence using 7.3.10's initdb will + automatically correct this problem. + - - The security problem is that the built-in character set encoding - conversion functions can be invoked from SQL commands by unprivileged - users, but the functions were not designed for such use and are not - secure against malicious choices of arguments. The fix involves changing - the declared parameter list of these functions so that they can no longer - be invoked from SQL commands. (This does not affect their normal use - by the encoding conversion machinery.) - It is strongly recommended that all installations repair this error, - either by initdb or by following the manual repair procedure given - below. The error at least allows unprivileged database users to crash - their server process, and might allow unprivileged users to gain the - privileges of a database superuser. - + + The security problem is that the built-in character set encoding + conversion functions can be invoked from SQL commands by unprivileged + users, but the functions were not designed for such use and are not + secure against malicious choices of arguments. The fix involves changing + the declared parameter list of these functions so that they can no longer + be invoked from SQL commands. (This does not affect their normal use + by the encoding conversion machinery.) + It is strongly recommended that all installations repair this error, + either by initdb or by following the manual repair procedure given + below. The error at least allows unprivileged database users to crash + their server process, and might allow unprivileged users to gain the + privileges of a database superuser. + - - If you wish not to do an initdb, perform the following procedure instead. - As the database superuser, do: + + If you wish not to do an initdb, perform the following procedure instead. + As the database superuser, do: BEGIN; UPDATE pg_proc SET proargtypes[3] = 'internal'::regtype WHERE pronamespace = 11 AND pronargs = 5 - AND proargtypes[2] = 'cstring'::regtype; + AND proargtypes[2] = 'cstring'::regtype; -- The command should report having updated 90 rows; -- if not, rollback and investigate instead of committing! COMMIT; - + - - The above procedure must be carried out in each database - of an installation, including template1, and ideally - including template0 as well. If you do not fix the - template databases then any subsequently created databases will contain - the same error. template1 can be fixed in the same way - as any other database, but fixing template0 requires - additional steps. First, from any database issue: + + The above procedure must be carried out in each database + of an installation, including template1, and ideally + including template0 as well. If you do not fix the + template databases then any subsequently created databases will contain + the same error. template1 can be fixed in the same way + as any other database, but fixing template0 requires + additional steps. First, from any database issue: UPDATE pg_database SET datallowconn = true WHERE datname = 'template0'; - Next connect to template0 and perform the above repair - procedure. Finally, do: + Next connect to template0 and perform the above repair + procedure. Finally, do: -- re-freeze template0: VACUUM FREEZE; -- and protect it against future alterations: UPDATE pg_database SET datallowconn = false WHERE datname = 'template0'; - - + + - - Changes + + Changes Change encoding function signature to prevent @@ -13976,32 +14996,32 @@ month-related formats RECORD - - + + - - Release 7.3.9 + + Release 7.3.9 - - Release date - 2005-01-31 - + + Release date + 2005-01-31 + - - This release contains a variety of fixes from 7.3.8, including several - security-related issues. - + + This release contains a variety of fixes from 7.3.8, including several + security-related issues. + - - Migration to version 7.3.9 + + Migration to Version 7.3.9 - - A dump/restore is not required for those running 7.3.X. - - + + A dump/restore is not required for those running 7.3.X. + + - - Changes + + Changes Disallow LOAD to non-superusers @@ -14032,32 +15052,32 @@ in case of nested merge joins could give outright wrong answers. datestyles - - + + - - Release 7.3.8 + + Release 7.3.8 - - Release date - 2004-10-22 - + + Release date + 2004-10-22 + - - This release contains a variety of fixes from 7.3.7. - + + This release contains a variety of fixes from 7.3.7. + - - Migration to version 7.3.8 + + Migration to Version 7.3.8 - - A dump/restore is not required for those running 7.3.X. - - + + A dump/restore is not required for those running 7.3.X. + + - - Changes + + Changes Repair possible failure to update hint bits on disk @@ -14082,32 +15102,32 @@ concern since there is no reason for non-developers to use this script anyway. - - + + - - Release 7.3.7 + + Release 7.3.7 - - Release date - 2004-08-16 - + + Release date + 2004-08-16 + - - This release contains one critical fix over 7.3.6, and some minor items. - + + This release contains one critical fix over 7.3.6, and some minor items. + - - Migration to version 7.3.7 + + Migration to Version 7.3.7 - - A dump/restore is not required for those running 7.3.X. - - + + A dump/restore is not required for those running 7.3.X. + + - - Changes + + Changes Prevent possible loss of committed transactions during crash @@ -14122,34 +15142,34 @@ since PostgreSQL 7.1. Properly schema-qualify function names when pg_dump'ing a CAST - - + + - - Release 7.3.6 + + Release 7.3.6 - - Release date - 2004-03-02 - + + Release date + 2004-03-02 + - - This release contains a variety of fixes from 7.3.5. - + + This release contains a variety of fixes from 7.3.5. + - - Migration to version 7.3.6 + + Migration to Version 7.3.6 - - A dump/restore is not required for those - running 7.3.*. - + + A dump/restore is not required for those + running 7.3.*. + - + - - Changes + + Changes Revert erroneous changes in rule permissions checking @@ -14187,33 +15207,33 @@ in multibyte cases (Korea PostgreSQL Users' Group) operations on bytea columns (Joe) - - + + - - Release 7.3.5 + + Release 7.3.5 - - Release date - 2003-12-03 - + + Release date + 2003-12-03 + - - This has a variety of fixes from 7.3.4. - + + This has a variety of fixes from 7.3.4. + - - Migration to version 7.3.5 + + Migration to Version 7.3.5 - - A dump/restore is not required for those - running 7.3.*. - - + + A dump/restore is not required for those + running 7.3.*. + + - - Changes + + Changes Force zero_damaged_pages to be on during recovery from WAL @@ -14238,33 +15258,33 @@ operations on bytea columns (Joe) Fix corner case for btree search in parallel with first root page split - - + + - - Release 7.3.4 + + Release 7.3.4 - - Release date - 2003-07-24 - + + Release date + 2003-07-24 + - - This has a variety of fixes from 7.3.3. - + + This has a variety of fixes from 7.3.3. + - - Migration to version 7.3.4 + + Migration to Version 7.3.4 - - A dump/restore is not required for those - running 7.3.*. - - + + A dump/restore is not required for those + running 7.3.*. + + - - Changes + + Changes Repair breakage in timestamp-to-date conversion for dates before 2000 @@ -14277,33 +15297,33 @@ operations on bytea columns (Joe) Work around buggy strxfrm() present in some Solaris releases (Tom) Properly escape jdbc setObject() strings to improve security (Barry) - - + + - - Release 7.3.3 + + Release 7.3.3 - - Release date - 2003-05-22 - + + Release date + 2003-05-22 + - - This release contains a variety of fixes for version 7.3.2. - + + This release contains a variety of fixes for version 7.3.2. + - - Migration to version 7.3.3 + + Migration to Version 7.3.3 - - A dump/restore is not required for those - running version 7.3.*. - - + + A dump/restore is not required for those + running version 7.3.*. + + - - Changes + + Changes Repair sometimes-incorrect computation of StartUpID after a crash @@ -14319,21 +15339,21 @@ operations on bytea columns (Joe) Issue notice, not error, if TIMESTAMP, TIME, or INTERVAL precision too large Fix abstime-to-time cast function (fix is - not applied unless you initdb) + not applied unless you initdb) Fix pg_proc entry for - timestampt_izone (fix is not applied unless you - initdb) + timestampt_izone (fix is not applied unless you + initdb) Make EXTRACT(EPOCH FROM timestamp without time zone) treat input as local time 'now'::timestamptz gave wrong answer if timezone changed earlier in transaction HAVE_INT64_TIMESTAMP code for time with timezone overwrote its input Accept GLOBAL TEMP/TEMPORARY as a - synonym for TEMPORARY + synonym for TEMPORARY Avoid improper schema-privilege-check failure in foreign-key triggers Fix bugs in foreign-key triggers for SET DEFAULT action Fix incorrect time-qual check in row fetch for - UPDATE and DELETE triggers + UPDATE and DELETE triggers Foreign-key clauses were parsed but ignored in - ALTER TABLE ADD COLUMN + ALTER TABLE ADD COLUMN Fix createlang script breakage for case where handler function already exists Fix misbehavior on zero-column tables in pg_dump, COPY, ANALYZE, other places Fix misbehavior of func_error() on type names containing '%' @@ -14367,13 +15387,13 @@ operations on bytea columns (Joe) Fix replace_vars_with_subplan_refs failure in complex views Fix regexp slowness in single-byte encodings (Tatsuo) Allow qualified type names in CREATE CAST - and DROP CAST + and DROP CAST Accept SETOF type[], which formerly had to - be written SETOF _type + be written SETOF _type Fix pg_dump core dump in some cases with procedural languages Force ISO datestyle in pg_dump output, for portability (Oliver) pg_dump failed to handle error return - from lo_read (Oleg Drokin) + from lo_read (Oleg Drokin) pg_dumpall failed with groups having no members (Nick Eskelinen) pg_dumpall failed to recognize --globals-only switch pg_restore failed to restore blobs if -X disable-triggers is specified @@ -14387,34 +15407,34 @@ operations on bytea columns (Joe) Fixed problem with parsing table ACLs in JDBC Better error message for character set conversion problems in JDBC - - - + + - - Release 7.3.2 - - Release date - 2003-02-04 - + + Release 7.3.2 - - This release contains a variety of fixes for version 7.3.1. - + + Release date + 2003-02-04 + + + This release contains a variety of fixes for version 7.3.1. + - - Migration to version 7.3.2 - - A dump/restore is not required for those - running version 7.3.*. - - + + Migration to Version 7.3.2 - - Changes + + A dump/restore is not required for those + running version 7.3.*. + + + + + Changes Restore creation of OID column in CREATE TABLE AS / SELECT INTO @@ -14448,37 +15468,37 @@ operations on bytea columns (Joe) Add casts between types lo and oid in contrib/lo fastpath code now checks for privilege to call function - - + + - - Release 7.3.1 + + Release 7.3.1 - - Release date - 2002-12-18 - + + Release date + 2002-12-18 + - - This release contains a variety of fixes for version 7.3. - + + This release contains a variety of fixes for version 7.3. + - - Migration to version 7.3.1 + + Migration to Version 7.3.1 - - A dump/restore is not required for those - running version 7.3. However, it should be noted that the main - PostgreSQL interface library, libpq, - has a new major version number for this release, which might require - recompilation of client code in certain cases. - - + + A dump/restore is not required for those + running version 7.3. However, it should be noted that the main + PostgreSQL interface library, libpq, + has a new major version number for this release, which might require + recompilation of client code in certain cases. + + - - Changes + + Changes Fix a core dump of COPY TO when client/server encodings don't match (Tom) @@ -14498,265 +15518,265 @@ operations on bytea columns (Joe) SSL fixes (Nathan Mueller) Prevent composite column creation via ALTER TABLE (Tom) - - - - - - Release 7.3 - - - Release date - 2002-11-27 - - - - Overview - - - Major changes in this release: - - - - - Schemas - - - Schemas allow users to create objects in separate namespaces, - so two people or applications can have tables with the same - name. There is also a public schema for shared tables. - Table/index creation can be restricted by removing privileges - on the public schema. - - - - - - Drop Column - - - PostgreSQL now supports the - ALTER TABLE ... DROP COLUMN functionality. - - - - - - Table Functions - - - Functions returning multiple rows and/or multiple columns are - now much easier to use than before. You can call such a - table function in the SELECT - FROM clause, treating its output like a - table. Also, PL/pgSQL functions can - now return sets. - - - - - - Prepared Queries - - - PostgreSQL now supports prepared - queries, for improved performance. - - - - - - Dependency Tracking - - - PostgreSQL now records object - dependencies, which allows improvements in many areas. - DROP statements now take either - CASCADE or RESTRICT to control whether - dependent objects are also dropped. - - - - - - Privileges - - - Functions and procedural languages now have privileges, and - functions can be defined to run with the privileges of their - creator. - - - - - - Internationalization - - - Both multibyte and locale support are now always enabled. - - - - - - Logging - - - A variety of logging options have been enhanced. - - - - - - Interfaces - - - A large number of interfaces have been moved to http://gborg.postgresql.org - where they can be developed and released independently. - - - + + - - Functions/Identifiers - - - By default, functions can now take up to 32 parameters, and - identifiers can be up to 63 bytes long. Also, OPAQUE - is now deprecated: there are specific pseudo-datatypes - to represent each of the former meanings of OPAQUE - in function argument and result types. - - - - - + + Release 7.3 - - Migration to version 7.3 + + Release date + 2002-11-27 + - - A dump/restore using pg_dump is required for those - wishing to migrate data from any previous release. If your - application examines the system catalogs, additional changes will - be required due to the introduction of schemas in 7.3; for more - information, see: . - + + Overview - - Observe the following incompatibilities: - + + Major changes in this release: + - + + + Schemas - Pre-6.3 clients are no longer supported. + Schemas allow users to create objects in separate namespaces, + so two people or applications can have tables with the same + name. There is also a public schema for shared tables. + Table/index creation can be restricted by removing privileges + on the public schema. + + + Drop Column - pg_hba.conf now has a column for the user - name and additional features. Existing files need to be - adjusted. + PostgreSQL now supports the + ALTER TABLE ... DROP COLUMN functionality. + + + Table Functions - Several postgresql.conf logging parameters - have been renamed. + Functions returning multiple rows and/or multiple columns are + now much easier to use than before. You can call such a + table function in the SELECT + FROM clause, treating its output like a + table. Also, PL/pgSQL functions can + now return sets. + + + Prepared Queries - LIMIT #,# has been disabled; use - LIMIT # OFFSET #. + PostgreSQL now supports prepared + queries, for improved performance. + + + Dependency Tracking - INSERT statements with column lists must - specify a value for each specified column. For example, - INSERT INTO tab (col1, col2) VALUES ('val1') - is now invalid. It's still allowed to supply fewer columns than - expected if the INSERT does not have a column list. + PostgreSQL now records object + dependencies, which allows improvements in many areas. + DROP statements now take either + CASCADE or RESTRICT to control whether + dependent objects are also dropped. + + + Privileges - serial columns are no longer automatically - UNIQUE; thus, an index will not automatically be - created. + Functions and procedural languages now have privileges, and + functions can be defined to run with the privileges of their + creator. + + + Internationalization - A SET command inside an aborted transaction - is now rolled back. + Both multibyte and locale support are now always enabled. + + + Logging - COPY no longer considers missing trailing - columns to be null. All columns need to be specified. - (However, one can achieve a similar effect by specifying a - column list in the COPY command.) + A variety of logging options have been enhanced. + + + Interfaces - The data type timestamp is now equivalent to - timestamp without time zone, instead of - timestamp with time zone. + A large number of interfaces have been moved to http://gborg.postgresql.org + where they can be developed and released independently. + + + Functions/Identifiers - Pre-7.3 databases loaded into 7.3 will not have the new object - dependencies for serial columns, unique - constraints, and foreign keys. See the directory - contrib/adddepend/ for a detailed - description and a script that will add such dependencies. + By default, functions can now take up to 32 parameters, and + identifiers can be up to 63 bytes long. Also, OPAQUE + is now deprecated: there are specific pseudo-datatypes + to represent each of the former meanings of OPAQUE + in function argument and result types. + - - - An empty string ('') is no longer allowed as - the input into an integer field. Formerly, it was silently - interpreted as 0. - - + + - - + + Migration to Version 7.3 - - Changes + + A dump/restore using pg_dump is required for those + wishing to migrate data from any previous release. If your + application examines the system catalogs, additional changes will + be required due to the introduction of schemas in 7.3; for more + information, see: . + - - Server Operation + + Observe the following incompatibilities: + + + + + + Pre-6.3 clients are no longer supported. + + + + + + pg_hba.conf now has a column for the user + name and additional features. Existing files need to be + adjusted. + + + + + + Several postgresql.conf logging parameters + have been renamed. + + + + + + LIMIT #,# has been disabled; use + LIMIT # OFFSET #. + + + + + + INSERT statements with column lists must + specify a value for each specified column. For example, + INSERT INTO tab (col1, col2) VALUES ('val1') + is now invalid. It's still allowed to supply fewer columns than + expected if the INSERT does not have a column list. + + + + + + serial columns are no longer automatically + UNIQUE; thus, an index will not automatically be + created. + + + + + + A SET command inside an aborted transaction + is now rolled back. + + + + + + COPY no longer considers missing trailing + columns to be null. All columns need to be specified. + (However, one can achieve a similar effect by specifying a + column list in the COPY command.) + + + + + + The data type timestamp is now equivalent to + timestamp without time zone, instead of + timestamp with time zone. + + + + + + Pre-7.3 databases loaded into 7.3 will not have the new object + dependencies for serial columns, unique + constraints, and foreign keys. See the directory + contrib/adddepend/ for a detailed + description and a script that will add such dependencies. + + + + + + An empty string ('') is no longer allowed as + the input into an integer field. Formerly, it was silently + interpreted as 0. + + + + + + + + Changes + + + Server Operation Add pg_locks view to show locks (Neil) Security fixes for password negotiation memory allocation (Neil) Remove support for version 0 FE/BE protocol (PostgreSQL 6.2 and earlier) (Tom) Reserve the last few backend slots for superusers, add parameter superuser_reserved_connections to control this (Nigel J. Andrews) - + - - Performance + + Performance Improve startup by calling localtime() only once (Tom) Cache system catalog information in flat files for faster startup (Tom) @@ -14777,10 +15797,10 @@ operations on bytea columns (Joe) Improve free space map performance on large tables (Stephen Marshall, Tom) Improved WAL write concurrency (Tom) - + - - Privileges + + Privileges Add privileges on functions and procedural languages (Peter) Add OWNER to CREATE DATABASE so superusers can create databases on behalf of unprivileged users (Gavin Sherry, Tom) @@ -14788,10 +15808,10 @@ operations on bytea columns (Joe) Add SET SESSION AUTHORIZATION DEFAULT and RESET SESSION AUTHORIZATION (Tom) Allow functions to be executed with the privilege of the function owner (Peter) - + - - Server Configuration + + Server Configuration Server log messages now tagged with LOG, not DEBUG (Bruce) Add user column to pg_hba.conf (Bruce) @@ -14810,10 +15830,10 @@ operations on bytea columns (Joe) Rename show_query_stats to show_statement_stats (Bruce) Add param log_min_error_statement to print commands to logs on error (Gavin) - + - - Queries + + Queries Make cursors insensitive, meaning their contents do not change (Tom) Disable LIMIT #,# syntax; now only LIMIT # OFFSET # supported (Bruce) @@ -14834,10 +15854,10 @@ operations on bytea columns (Joe) Allow FOR UPDATE to appear after LIMIT/OFFSET (Bruce) Add variable autocommit (Tom, David Van Wie) - + - - Object Manipulation + + Object Manipulation Make equals signs optional in CREATE DATABASE (Gavin Sherry) Make ALTER TABLE OWNER change index ownership too (Neil) @@ -14871,10 +15891,10 @@ operations on bytea columns (Joe) Add /contrib/adddepend to handle pre-7.3 object dependencies (Rod) Allow better casting when inserting/updating values (Tom) - + - - Utility Commands + + Utility Commands Have COPY TO output embedded carriage returns and newlines as \r and \n (Tom) Allow DELIMITER in COPY FROM to be 8-bit clean (Tatsuo) @@ -14911,10 +15931,10 @@ operations on bytea columns (Joe) Fix rare index corruption when a page split affects bulk delete (Tom) Fix ALTER TABLE ... ADD COLUMN for inheritance (Alvaro Herrera) - + - - Data Types and Functions + + Data Types and Functions Fix factorial(0) to return 1 (Bruce) Date/time/timezone improvements (Thomas) @@ -14957,10 +15977,10 @@ operations on bytea columns (Joe) Fix to_char(1,'FM999.99') to return a period (Karel) Fix trigger/type/language functions returning OPAQUE to return proper type (Tom) - + - - Internationalization + + Internationalization Add additional encodings: Korean (JOHAB), Thai (WIN874), Vietnamese (TCVN), Arabic (WIN1256), Simplified Chinese (GBK), Korean (UHC) (Eiji Tokuya) Enable locale support by default (Peter) @@ -14975,10 +15995,10 @@ operations on bytea columns (Joe) pg_dumpall, pg_controldata, and pg_resetxlog now national-language aware (Peter) New and updated translations - + - - Server-side Languages + + Server-side Languages Allow recursive SQL function (Peter) Change PL/Tcl build to use configured compiler and Makefile.shlib (Peter) @@ -14988,10 +16008,10 @@ operations on bytea columns (Joe) Make PL/pgSQL schema-aware (Joe) Remove some memory leaks (Nigel J. Andrews, Tom) - + - - psql + + psql Don't lowercase psql \connect database name for 7.2.0 compatibility (Tom) Add psql \timing to time user queries (Greg Sabino Mullane) @@ -15005,10 +16025,10 @@ operations on bytea columns (Joe) Have psql reports its version number on startup (Tom) Allow \copy to specify column names (Tom) - + - - libpq + + libpq Add ~/.pgpass to store host/user password combinations (Alvaro Herrera) Add PQunescapeBytea() function to libpq (Patrick Welche) @@ -15019,10 +16039,10 @@ operations on bytea columns (Joe) Fix for SSL with non-blocking connections (Jack Bates) Add libpq connection timeout parameter (Denis A Ustimenko) - + - - JDBC + + JDBC Allow JDBC to compile with JDK 1.4 (Dave) Add JDBC 3 support (Barry) @@ -15035,10 +16055,10 @@ operations on bytea columns (Joe) Fix MD5 encryption handling for multibyte servers (Jun Kawai) Add support for prepared statements (Barry) - + - - Miscellaneous Interfaces + + Miscellaneous Interfaces Fixed ECPG bug concerning octal numbers in single quotes (Michael) Move src/interfaces/libpgeasy to http://gborg.postgresql.org (Marc, Bruce) @@ -15051,10 +16071,10 @@ operations on bytea columns (Joe) Remove src/bin/pgaccess from main tree, now at http://www.pgaccess.org (Bruce) Add pg_on_connection_loss command to libpgtcl (Gerhard Hintermayer, Tom) - + - - Source Code + + Source Code Fix for parallel make (Peter) AIX fixes for linking Tcl (Andreas Zeugswetter) @@ -15106,10 +16126,10 @@ operations on bytea columns (Joe) Remove parameter wal_files because WAL files are now recycled (Bruce) Add version numbers to heap pages (Tom) - + - - Contrib + + Contrib Allow inet arrays in /contrib/array (Neil) GiST fixes (Teodor Sigaev, Neil) @@ -15133,34 +16153,34 @@ operations on bytea columns (Joe) Fixes to /contrib/cube (Bruno Wolff) Improve /contrib/fulltextindex (Christopher) - + - - + + - - Release 7.2.8 + + Release 7.2.8 - - Release date - 2005-05-09 - + + Release date + 2005-05-09 + - - This release contains a variety of fixes from 7.2.7, including one - security-related issue. - + + This release contains a variety of fixes from 7.2.7, including one + security-related issue. + - - Migration to version 7.2.8 + + Migration to Version 7.2.8 - - A dump/restore is not required for those running 7.2.X. - - + + A dump/restore is not required for those running 7.2.X. + + - - Changes + + Changes Repair ancient race condition that allowed a transaction to be @@ -15186,32 +16206,32 @@ month-related formats (Marko Kreen) - - + + - - Release 7.2.7 + + Release 7.2.7 - - Release date - 2005-01-31 - + + Release date + 2005-01-31 + - - This release contains a variety of fixes from 7.2.6, including several - security-related issues. - + + This release contains a variety of fixes from 7.2.6, including several + security-related issues. + - - Migration to version 7.2.7 + + Migration to Version 7.2.7 - - A dump/restore is not required for those running 7.2.X. - - + + A dump/restore is not required for those running 7.2.X. + + - - Changes + + Changes Disallow LOAD to non-superusers @@ -15234,32 +16254,32 @@ in case of nested merge joins could give outright wrong answers. datestyles - - + + - - Release 7.2.6 + + Release 7.2.6 - - Release date - 2004-10-22 - + + Release date + 2004-10-22 + - - This release contains a variety of fixes from 7.2.5. - + + This release contains a variety of fixes from 7.2.5. + - - Migration to version 7.2.6 + + Migration to Version 7.2.6 - - A dump/restore is not required for those running 7.2.X. - - + + A dump/restore is not required for those running 7.2.X. + + - - Changes + + Changes Repair possible failure to update hint bits on disk @@ -15285,32 +16305,32 @@ concern since there is no reason for non-developers to use this script anyway. Update to newer versions of Bison - - + + - - Release 7.2.5 + + Release 7.2.5 - - Release date - 2004-08-16 - + + Release date + 2004-08-16 + - - This release contains a variety of fixes from 7.2.4. - + + This release contains a variety of fixes from 7.2.4. + - - Migration to version 7.2.5 + + Migration to Version 7.2.5 - - A dump/restore is not required for those running 7.2.X. - - + + A dump/restore is not required for those running 7.2.X. + + - - Changes + + Changes Prevent possible loss of committed transactions during crash @@ -15328,33 +16348,33 @@ since PostgreSQL 7.1. Repair memory leaks in pg_dump Avoid conflict with system definition of isblank() function or macro - - + + - - Release 7.2.4 + + Release 7.2.4 - - Release date - 2003-01-30 - + + Release date + 2003-01-30 + - - This release contains a variety of fixes for version 7.2.3, - including fixes to prevent possible data loss. - + + This release contains a variety of fixes for version 7.2.3, + including fixes to prevent possible data loss. + - - Migration to version 7.2.4 + + Migration to Version 7.2.4 - - A dump/restore is not required for those - running version 7.2.*. - - + + A dump/restore is not required for those + running version 7.2.*. + + - - Changes + + Changes Fix some additional cases of VACUUM "No one parent tuple was found" error @@ -15366,34 +16386,34 @@ since PostgreSQL 7.1. Fix integer overflows in circle_poly(), path_encode(), path_add() (Neil) Repair long-standing logic errors in lseg_eq(), lseg_ne(), lseg_center() - - + + - - Release 7.2.3 + + Release 7.2.3 - - Release date - 2002-10-01 - + + Release date + 2002-10-01 + - - This release contains a variety of fixes for version 7.2.2, - including fixes to prevent possible data loss. - + + This release contains a variety of fixes for version 7.2.2, + including fixes to prevent possible data loss. + - - Migration to version 7.2.3 + + Migration to Version 7.2.3 - - A dump/restore is not required for those - running version 7.2.*. - - + + A dump/restore is not required for those + running version 7.2.*. + + - - Changes + + Changes Prevent possible compressed transaction log loss (Tom) @@ -15403,33 +16423,33 @@ since PostgreSQL 7.1. Prevent spinlock hangs on SMP PPC machines (Tomoyuki Niijima) Fix pg_dump to properly dump FULL JOIN USING (Tom) - - + + - - Release 7.2.2 + + Release 7.2.2 - - Release date - 2002-08-23 - + + Release date + 2002-08-23 + - - This release contains a variety of fixes for version 7.2.1. - + + This release contains a variety of fixes for version 7.2.1. + - - Migration to version 7.2.2 + + Migration to Version 7.2.2 - - A dump/restore is not required for those - running version 7.2.*. - - + + A dump/restore is not required for those + running version 7.2.*. + + - - Changes + + Changes Allow EXECUTE of "CREATE TABLE AS ... SELECT" in PL/pgSQL (Tom) @@ -15446,33 +16466,33 @@ since PostgreSQL 7.1. Fix for crash with long DATA strings (Thomas, Neil) Fix for repeat(), lpad(), rpad() and long strings (Neil) - - + + - - Release 7.2.1 + + Release 7.2.1 - - Release date - 2002-03-21 - + + Release date + 2002-03-21 + - - This release contains a variety of fixes for version 7.2. - + + This release contains a variety of fixes for version 7.2. + - - Migration to version 7.2.1 + + Migration to Version 7.2.1 - - A dump/restore is not required for those - running version 7.2. - - + + A dump/restore is not required for those + running version 7.2. + + - - Changes + + Changes Ensure that sequence counters do not go backwards after a crash (Tom) @@ -15492,183 +16512,183 @@ since PostgreSQL 7.1. Fix for array subscripts handling (Tom) Allow EXECUTE of "CREATE TABLE AS ... SELECT" in PL/pgSQL (Tom) - - - - - - Release 7.2 - - - Release date - 2002-02-04 - - - - Overview - - - This release improves PostgreSQL for use in - high-volume applications. - - - - Major changes in this release: - - - - - VACUUM - - - Vacuuming no longer locks tables, thus allowing normal user - access during the vacuum. A new VACUUM FULL - command does old-style vacuum by locking the table and - shrinking the on-disk copy of the table. - - - - - - Transactions - - - There is no longer a problem with installations that exceed - four billion transactions. - - - - - - OIDs - - - OIDs are now optional. Users can now create tables without - OIDs for cases where OID usage is excessive. - - - - - - Optimizer - - - The system now computes histogram column statistics during - ANALYZE, allowing much better optimizer choices. - - - + + - - Security - - - A new MD5 encryption option allows more secure storage and - transfer of passwords. A new Unix-domain socket - authentication option is available on Linux and BSD systems. - - - - - Statistics - - - Administrators can use the new table access statistics module - to get fine-grained information about table and index usage. - - - + + Release 7.2 - - Internationalization - - - Program and library messages can now be displayed in several - languages. - - - + + Release date + 2002-02-04 + - - + + Overview - - Migration to version 7.2 + + This release improves PostgreSQL for use in + high-volume applications. + - - A dump/restore using pg_dump is required for - those wishing to migrate data from any previous release. - + + Major changes in this release: + - - Observe the following incompatibilities: - + + + VACUUM + + + Vacuuming no longer locks tables, thus allowing normal user + access during the vacuum. A new VACUUM FULL + command does old-style vacuum by locking the table and + shrinking the on-disk copy of the table. + + + - + + Transactions - The semantics of the VACUUM command have - changed in this release. You might wish to update your - maintenance procedures accordingly. + There is no longer a problem with installations that exceed + four billion transactions. + + + OIDs - In this release, comparisons using = NULL - will always return false (or NULL, more precisely). Previous - releases automatically transformed this syntax to IS - NULL. The old behavior can be re-enabled using a - postgresql.conf parameter. + OIDs are now optional. Users can now create tables without + OIDs for cases where OID usage is excessive. + + + Optimizer - The pg_hba.conf and pg_ident.conf - configuration is now only reloaded after receiving a - SIGHUP signal, not with each connection. + The system now computes histogram column statistics during + ANALYZE, allowing much better optimizer choices. + + + Security - The function octet_length() now returns the uncompressed data length. + A new MD5 encryption option allows more secure storage and + transfer of passwords. A new Unix-domain socket + authentication option is available on Linux and BSD systems. + + + Statistics - The date/time value 'current' is no longer - available. You will need to rewrite your applications. + Administrators can use the new table access statistics module + to get fine-grained information about table and index usage. + + + Internationalization - The timestamp(), time(), - and interval() functions are no longer - available. Instead of timestamp(), use - timestamp 'string' or CAST. + Program and library messages can now be displayed in several + languages. + - + + - - The SELECT ... LIMIT #,# syntax will be removed - in the next release. You should change your queries to use - separate LIMIT and OFFSET clauses, e.g. LIMIT 10 OFFSET - 20. - - + + Migration to Version 7.2 + + + A dump/restore using pg_dump is required for + those wishing to migrate data from any previous release. + + + + Observe the following incompatibilities: + + + + + + The semantics of the VACUUM command have + changed in this release. You might wish to update your + maintenance procedures accordingly. + + + + + + In this release, comparisons using = NULL + will always return false (or NULL, more precisely). Previous + releases automatically transformed this syntax to IS + NULL. The old behavior can be re-enabled using a + postgresql.conf parameter. + + + + + + The pg_hba.conf and pg_ident.conf + configuration is now only reloaded after receiving a + SIGHUP signal, not with each connection. + + + + + + The function octet_length() now returns the uncompressed data length. + + + + + + The date/time value 'current' is no longer + available. You will need to rewrite your applications. + + + + + + The timestamp(), time(), + and interval() functions are no longer + available. Instead of timestamp(), use + timestamp 'string' or CAST. + + + + + + + The SELECT ... LIMIT #,# syntax will be removed + in the next release. You should change your queries to use + separate LIMIT and OFFSET clauses, e.g. LIMIT 10 OFFSET + 20. + + - - Changes + + Changes - - Server Operation + + Server Operation Create temporary files in a separate directory (Bruce) Delete orphaned temporary files on postmaster startup (Bruce) @@ -15691,10 +16711,10 @@ since PostgreSQL 7.1. Superuser ID now fixed at 1 (Peter E) New pg_ctl "reload" option (Tom) - + - - Performance + + Performance Optimizer improvements (Tom) New histogram column statistics for optimizer (Tom) @@ -15707,10 +16727,10 @@ since PostgreSQL 7.1. R-tree performance improvements (Kenneth Been) B-tree splits more efficient (Tom) - + - - Privileges + + Privileges Change UPDATE, DELETE privileges to be distinct (Peter E) New REFERENCES, TRIGGER privileges (Peter E) @@ -15721,10 +16741,10 @@ since PostgreSQL 7.1. Fix bug in privilege modifications on newly created tables (Tom) Disallow access to pg_statistic for non-superuser, add user-accessible views (Tom) - + - - Client Authentication + + Client Authentication Fork postmaster before doing authentication to prevent hangs (Peter E) Add ident authentication over Unix domain sockets on Linux, *BSD (Helge Bahmann, Oliver Elphick, Teodor Sigaev, Bruce) @@ -15733,10 +16753,10 @@ since PostgreSQL 7.1. PAM authentication (Dominic J. Eidson) Load pg_hba.conf and pg_ident.conf only on startup and SIGHUP (Bruce) - + - - Server Configuration + + Server Configuration Interpretation of some time zone abbreviations as Australian rather than North American now settable at run time (Bruce) New parameter to set default transaction isolation level (Peter E) @@ -15745,10 +16765,10 @@ since PostgreSQL 7.1. New parameter to set client authentication timeout (Tom) New parameter to set maximum number of open files (Tom) - + - - Queries + + Queries Statements added by INSERT rules now execute after the INSERT (Jan) Prevent unadorned relation names in target list (Bruce) @@ -15760,10 +16780,10 @@ since PostgreSQL 7.1. Fix for LIMIT, DISTINCT ON pushed into subqueries (Tom) Fix nested EXCEPT/INTERSECT (Tom) - + - - Schema Manipulation + + Schema Manipulation Fix SERIAL in temporary tables (Bruce) Allow temporary sequences (Bruce) @@ -15783,10 +16803,10 @@ since PostgreSQL 7.1. Allow GiST indexes to handle NULLs and multikey indexes (Oleg Bartunov, Teodor Sigaev, Tom) Enable partial indexes (Martijn van Oosterhout) - + - - Utility Commands + + Utility Commands Add RESET ALL, SHOW ALL (Marko Kreen) CREATE/ALTER USER/GROUP now allow options in any order (Vince) @@ -15799,10 +16819,10 @@ since PostgreSQL 7.1. Fix privilege checks for CREATE INDEX (Tom) Disallow inappropriate use of CREATE/DROP INDEX/TRIGGER/VIEW (Tom) - + - - Data Types and Functions + + Data Types and Functions SUM(), AVG(), COUNT() now uses int8 internally for speed (Tom) Add convert(), convert2() (Tatsuo) @@ -15842,10 +16862,10 @@ since PostgreSQL 7.1. Some datatype() function calls now evaluated differently Add support for Julian and ISO time specifications (Thomas) - + - - Internationalization + + Internationalization National language support in psql, pg_dump, libpq, and server (Peter E) Message translations in Chinese (simplified, traditional), Czech, French, German, Hungarian, Russian, Swedish (Peter E, Serguei A. Mokhov, Karel Zak, Weiping He, Zhenbang Wei, Kovacs Zoltan) @@ -15856,10 +16876,10 @@ since PostgreSQL 7.1. Make mic2ascii() non-ASCII aware (Tatsuo) Reject invalid multibyte character sequences (Tatsuo) - + - - <application>PL/pgSQL</> + + <application>PL/pgSQL</> Now uses portals for SELECT loops, allowing huge result sets (Jan) CURSOR and REFCURSOR support (Jan) @@ -15873,33 +16893,33 @@ since PostgreSQL 7.1. Memory leak fix (Jan, Tom) Make trailing semicolon optional (Tom) - + - - PL/Perl + + PL/Perl New untrusted PL/Perl (Alex Pilosov) PL/Perl is now built on some platforms even if libperl is not shared (Peter E) - + - - PL/Tcl + + PL/Tcl Now reports errorInfo (Vsevolod Lobko) Add spi_lastoid function (bob@redivi.com) - + - - PL/Python + + PL/Python ...is new (Andrew Bosma) - + - - <application>psql</> + + <application>psql</> \d displays indexes in unique, primary groupings (Christopher Kings-Lynne) Allow trailing semicolons in backslash commands (Greg Sabino Mullane) @@ -15907,18 +16927,18 @@ since PostgreSQL 7.1. Force new password prompt when changing user and database (Tatsuo, Tom) Format the correct number of columns for Unicode (Patrice) - + - - <application>libpq</> + + <application>libpq</> New function PQescapeString() to escape quotes in command strings (Florian Weimer) New function PQescapeBytea() escapes binary strings for use as SQL string literals - + - - JDBC + + JDBC Return OID of INSERT (Ken K) Handle more data types (Ken K) @@ -15953,10 +16973,10 @@ since PostgreSQL 7.1. MD5 password encryption support (Jeremy Wohl) Fix to actually use type cache (Ned Wolpert) - + - - ODBC + + ODBC Remove query size limit (Hiroshi) Remove text field size limit (Hiroshi) @@ -15969,10 +16989,10 @@ since PostgreSQL 7.1. MD5 password encryption support (Bruce) Add more compatibility functions to odbc.sql (Peter E) - + - - <application>ECPG</> + + <application>ECPG</> EXECUTE ... INTO implemented (Christof Petig) Multiple row descriptor support (e.g. CARDINALITY) (Christof Petig) @@ -15985,10 +17005,10 @@ since PostgreSQL 7.1. All function names with external linkage are now prefixed by ECPG Fixes for arrays of structures (Michael) - + - - Misc. Interfaces + + Misc. Interfaces Python fix fetchone() (Gerhard Haring) Use UTF, Unicode in Tcl where appropriate (Vsevolod Lobko, Reinhard Max) @@ -15996,10 +17016,10 @@ since PostgreSQL 7.1. Prevent output of default index op class in pg_dump (Tom) Fix libpgeasy memory leak (Bruce) - + - - Build and Install + + Build and Install Configure, dynamic loader, and shared library fixes (Peter E) Fixes in QNX 4 port (Bernd Tegge) @@ -16014,10 +17034,10 @@ since PostgreSQL 7.1. Rename config.h to pg_config.h (Peter E) Reorganize installation layout of header files (Peter E) - + - - Source Code + + Source Code Remove SEP_CHAR (Bruce) New GUC hooks (Tom) @@ -16031,10 +17051,10 @@ since PostgreSQL 7.1. Add 'volatile' usage in spinlock structures Improve signal handling logic (Tom) - + - - Contrib + + Contrib New contrib/rtree_gist (Oleg Bartunov, Teodor Sigaev) New contrib/tsearch full-text indexing (Oleg, Teodor Sigaev) @@ -16047,33 +17067,33 @@ since PostgreSQL 7.1. New pg_upgrade utility (Bruce) Add new pg_resetxlog options (Bruce, Tom) - - - + + + - - Release 7.1.3 + + Release 7.1.3 - - Release date - 2001-08-15 - + + Release date + 2001-08-15 + - - Migration to version 7.1.3 + + Migration to Version 7.1.3 - - A dump/restore is not required for those running - 7.1.X. - - + + A dump/restore is not required for those running + 7.1.X. + + - - Changes + + Changes - - + + Remove unused WAL segments of large transactions (Tom) Multiaction rule fix (Tom) PL/pgSQL memory allocation fix (Jan) @@ -16084,77 +17104,77 @@ Fix subselects with DISTINCT ON or LIMIT (Tom) BeOS fix Disable COPY TO/FROM a view (Tom) Cygwin build (Jason Tishler) - - - - + + + + - - Release 7.1.2 + + Release 7.1.2 - - Release date - 2001-05-11 - + + Release date + 2001-05-11 + - - This has one fix from 7.1.1. - + + This has one fix from 7.1.1. + - - Migration to version 7.1.2 + + Migration to Version 7.1.2 - - A dump/restore is not required for those running - 7.1.X. - - + + A dump/restore is not required for those running + 7.1.X. + + - - Changes + + Changes - - + + Fix PL/pgSQL SELECTs when returning no rows Fix for psql backslash core dump Referential integrity privilege fix Optimizer fixes pg_dump cleanups - - - - + + + + - - Release 7.1.1 + + Release 7.1.1 - - Release date - 2001-05-05 - + + Release date + 2001-05-05 + - - This has a variety of fixes from 7.1. - + + This has a variety of fixes from 7.1. + - - Migration to version 7.1.1 + + Migration to Version 7.1.1 - - A dump/restore is not required for those running - 7.1. - - + + A dump/restore is not required for those running + 7.1. + + - - Changes + + Changes - - + + Fix for numeric MODULO operator (Tom) pg_dump fixes (Philip) pg_dump can dump 7.0 databases (Philip) @@ -16169,119 +17189,119 @@ Fix for pg_ctl and option strings with spaces (Peter E) ODBC fixes (Hiroshi) EXTRACT can now take string argument (Thomas) Python fixes (Darcy) - - - - + + + + - - Release 7.1 + + Release 7.1 - - Release date - 2001-04-13 - + + Release date + 2001-04-13 + - - This release focuses on removing limitations that have existed in the - PostgreSQL code for many years. - + + This release focuses on removing limitations that have existed in the + PostgreSQL code for many years. + - - Major changes in this release: - + + Major changes in this release: + - - - - Write-ahead Log (WAL) - - - + + + + Write-ahead Log (WAL) + + + To maintain database consistency in case of an operating system crash, previous releases of PostgreSQL have forced all data modifications to disk before each transaction commit. With WAL, only one log file must be flushed to disk, greatly improving performance. If you have been using -F in previous releases to disable disk flushes, you might want to consider discontinuing its use. - - - + + + - - - TOAST - - - - TOAST - Previous releases had a compiled-in row length limit, + + + TOAST + + + + TOAST - Previous releases had a compiled-in row length limit, typically 8k - 32k. This limit made storage of long text fields difficult. With TOAST, long rows of any length can be stored with good performance. - - - + + + - - - Outer Joins - - - + + + Outer Joins + + + We now support outer joins. The UNION/NOT IN workaround for outer joins is no longer required. We use the SQL92 outer join syntax. - - - + + + - - - Function Manager - - - + + + Function Manager + + + The previous C function manager did not handle null values properly, nor did it support 64-bit CPU's (Alpha). The new function manager does. You can continue using your old custom functions, but you might want to rewrite them in the future to use the new function manager call interface. - - - + + + - - - Complex Queries - - - + + + Complex Queries + + + A large number of complex queries that were unsupported in previous releases now work. Many combinations of views, aggregates, UNION, LIMIT, cursors, subqueries, and inherited tables now work properly. Inherited tables are now accessed by default. Subqueries in FROM are now supported. - - - + + + - + - - Migration to version 7.1 + + Migration to Version 7.1 - - A dump/restore using pg_dump is required for those wishing to migrate - data from any previous release. - - + + A dump/restore using pg_dump is required for those wishing to migrate + data from any previous release. + + - - Changes + + Changes - - + + Bug Fixes --------- Many multibyte/Unicode/locale fixes (Tatsuo and others) @@ -16291,7 +17311,7 @@ Fix for INSERT INTO...SELECT where targetlist has subqueries (Tom) Prompt username/password on standard error (Bruce) Large objects inv_read/inv_write fixes (Tom) Fixes for to_char(), to_date(), to_ascii(), and to_timestamp() (Karel, - Daniel Baldoni) + Daniel Baldoni) Prevent query expressions from leaking memory (Tom) Allow UPDATE of arrays elements (Tom) Wake up lock waiters during cancel (Hiroshi) @@ -16307,7 +17327,7 @@ Allow PL/pgSQL accept non-ASCII identifiers (Tatsuo) Allow views to proper handle GROUP BY, aggregates, DISTINCT (Tom) Fix rare failure with TRUNCATE command (Tom) Allow UNION/INTERSECT/EXCEPT to be used with ALL, subqueries, views, - DISTINCT, ORDER BY, SELECT...INTO (Tom) + DISTINCT, ORDER BY, SELECT...INTO (Tom) Fix parser failures during aborted transactions (Tom) Allow temporary relations to properly clean up indexes (Bruce) Fix VACUUM problem with moving rows in same page (Tom) @@ -16341,16 +17361,16 @@ Improve CLUSTER (Tom) Improve ps status display for more platforms (Peter E, Marc) Improve CREATE FUNCTION failure message (Ross) JDBC improvements (Peter, Travis Bauer, Christopher Cain, William Webber, - Gunnar) + Gunnar) Grand Unified Configuration scheme/GUC. Many options can now be set in - data/postgresql.conf, postmaster/postgres flags, or SET commands (Peter E) + data/postgresql.conf, postmaster/postgres flags, or SET commands (Peter E) Improved handling of file descriptor cache (Tom) New warning code about auto-created table alias entries (Bruce) Overhaul initdb process (Tom, Peter E) Overhaul of inherited tables; inherited tables now accessed by default; - new ONLY key word prevents it (Chris Bitmead, Tom) + new ONLY key word prevents it (Chris Bitmead, Tom) ODBC cleanups/improvements (Nick Gorham, Stephan Szabo, Zoltan Kovacs, - Michael Fork) + Michael Fork) Allow renaming of temp tables (Tom) Overhaul memory manager contexts (Tom) pg_dumpall uses CREATE USER or CREATE GROUP rather using COPY (Peter E) @@ -16375,7 +17395,7 @@ Allow functional indexes to use binary-compatible type (Tom) Allow SQL functions to be used in more contexts (Tom) New pg_config utility (Peter E) New PL/pgSQL EXECUTE command which allows dynamic SQL and utility statements - (Jan) + (Jan) New PL/pgSQL GET DIAGNOSTICS statement for SPI value access (Jan) New quote_identifiers() and quote_literal() functions (Jan) New ALTER TABLE table OWNER TO user command (Mark Hollomon) @@ -16394,7 +17414,7 @@ New AT TIME ZONE syntax (Thomas) Allow location of Unix domain socket to be configurable (David J. MacKenzie) Allow postmaster to listen on a specific IP address (David J. MacKenzie) Allow socket path name to be specified in hostname by using leading slash - (David J. MacKenzie) + (David J. MacKenzie) Allow CREATE DATABASE to specify template database (Tom) New utility to convert MySQL schema dumps to SQL92 and PostgreSQL (Thomas) New /contrib/rserv replication toolkit (Vadim) @@ -16421,7 +17441,7 @@ New CIDR abbrev() function (Tom) Performance ----------- Write-Ahead Log (WAL) to provide crash recovery with less performance - overhead (Vadim) + overhead (Vadim) ANALYZE stage of VACUUM no longer exclusively locks table (Bruce) Reduced file seeks (Denis Perchine) Improve BTREE code for duplicate keys (Tom) @@ -16467,39 +17487,39 @@ New contrib/pg_logger New --template option to createdb New contrib/pg_control utility (Oliver) New FreeBSD tools ipc_check, start-scripts/freebsd - - - - + + + + - - Release 7.0.3 + + Release 7.0.3 - - Release date - 2000-11-11 - + + Release date + 2000-11-11 + - - This has a variety of fixes from 7.0.2. - + + This has a variety of fixes from 7.0.2. + - - Migration to version 7.0.3 + + Migration to Version 7.0.3 - - A dump/restore is not required for those running - 7.0.*. - - + + A dump/restore is not required for those running + 7.0.*. + + - - Changes + + Changes - - + + Jdbc fixes (Peter) Large object fix (Tom) Fix lean in COPY WITH OIDS leak (Tom) @@ -16515,11 +17535,11 @@ Fix for memory allocation problem in user authentication code (Tom) Remove bogus use of int4out() (Tom) Fixes for multiple subqueries in COALESCE or BETWEEN (Tom) Fix for failure of triggers on heap open in certain cases (Jeroen van - Vianen) + Vianen) Fix for erroneous selectivity of not-equals (Tom) Fix for erroneous use of strcmp() (Tom) Fix for bug where storage manager accesses items beyond end of file - (Tom) + (Tom) Fix to include kernel errno message in all smgr elog messages (Tom) Fix for '.' not in PATH at build time (SL Baur) Fix for out-of-file-descriptors error (Tom) @@ -16530,81 +17550,81 @@ Fix TRUNCATE failure on relations with indexes (Tom) Avoid database-wide restart on write error (Hiroshi) Fix nodeMaterial to honor chgParam by recomputing its output (Tom) Fix VACUUM problem with moving chain of update row versions when source - and destination of a row version lie on the same page (Tom) + and destination of a row version lie on the same page (Tom) Fix user.c CommandCounterIncrement (Tom) Fix for AM/PM boundary problem in to_char() (Karel Zak) Fix TIME aggregate handling (Tom) Fix to_char() to avoid coredump on NULL input (Tom) Buffer fix (Tom) Fix for inserting/copying longer multibyte strings into char() data - types (Tatsuo) + types (Tatsuo) Fix for crash of backend, on abort (Tom) - - - - + + + + - - Release 7.0.2 + + Release 7.0.2 - - Release date - 2000-06-05 - + + Release date + 2000-06-05 + - - This is a repackaging of 7.0.1 with added documentation. - + + This is a repackaging of 7.0.1 with added documentation. + - - Migration to version 7.0.2 + + Migration to Version 7.0.2 - - A dump/restore is not required for those running - 7.*. - - + + A dump/restore is not required for those running + 7.*. + + - - Changes + + Changes - - + + Added documentation to tarball. - - - - + + + + - - Release 7.0.1 + + Release 7.0.1 - - Release date - 2000-06-01 - + + Release date + 2000-06-01 + - - This is a cleanup release for 7.0. - + + This is a cleanup release for 7.0. + - - Migration to version 7.0.1 + + Migration to Version 7.0.1 - - A dump/restore is not required for those running - 7.0. - - + + A dump/restore is not required for those running + 7.0. + + - - Changes + + Changes - - + + Fix many CLUSTER failures (Tom) Allow ALTER TABLE RENAME works on indexes (Tom) Fix plpgsql to handle datetime->timestamp and timespan->interval (Bruce) @@ -16627,160 +17647,160 @@ Copy pg_ident.conf.sample into /lib directory in install (Bruce) Add SJIS UDC (NEC selection IBM kanji) support (Eiji Tokuya) Fix too long syslog message (Tatsuo) Fix problem with quoted indexes that are too long (Tom) -JDBC ResultSet.getTimestamp() fix (Gregory Krasnow & Floyd Marinescu) +JDBC ResultSet.getTimestamp() fix (Gregory Krasnow & Floyd Marinescu) ecpg changes (Michael) - - - - + + + + - - Release 7.0 + + Release 7.0 - - Release date - 2000-05-08 - + + Release date + 2000-05-08 + - - This release contains improvements in many areas, demonstrating - the continued growth of PostgreSQL. - There are more improvements and fixes in 7.0 than in any previous - release. The developers have confidence that this is the best - release yet; we do our best to put out only solid releases, and - this one is no exception. - + + This release contains improvements in many areas, demonstrating + the continued growth of PostgreSQL. + There are more improvements and fixes in 7.0 than in any previous + release. The developers have confidence that this is the best + release yet; we do our best to put out only solid releases, and + this one is no exception. + - - Major changes in this release: - + + Major changes in this release: + - - - - Foreign Keys - - - - Foreign keys are now implemented, with the exception of PARTIAL MATCH - foreign keys. Many users have been asking for this feature, and we are - pleased to offer it. - - - + + + + Foreign Keys + + + + Foreign keys are now implemented, with the exception of PARTIAL MATCH + foreign keys. Many users have been asking for this feature, and we are + pleased to offer it. + + + - - - Optimizer Overhaul - - - - Continuing on work started a year ago, the optimizer has been - improved, allowing better query plan selection and faster performance - with less memory usage. - - - + + + Optimizer Overhaul + + + + Continuing on work started a year ago, the optimizer has been + improved, allowing better query plan selection and faster performance + with less memory usage. + + + - - - Updated psql - - - - psql, our interactive terminal monitor, has been - updated with a variety of new features. See the psql manual page for details. - - - + + + Updated psql + + + + psql, our interactive terminal monitor, has been + updated with a variety of new features. See the psql manual page for details. + + + - - - Join Syntax - - - - SQL92 join syntax is now supported, though only as - INNER JOIN for this release. JOIN, - NATURAL JOIN, JOIN/USING, - and JOIN/ON are available, as are - column correlation names. - - + + + Join Syntax + + + + SQL92 join syntax is now supported, though only as + INNER JOIN for this release. JOIN, + NATURAL JOIN, JOIN/USING, + and JOIN/ON are available, as are + column correlation names. + + - - + + - - Migration to version 7.0 + + Migration to Version 7.0 - - A dump/restore using pg_dump - is required for those wishing to migrate data from any - previous release of PostgreSQL. - For those upgrading from 6.5.*, you can instead use - pg_upgrade to upgrade to this - release; however, a full dump/reload installation is always the - most robust method for upgrades. - + + A dump/restore using pg_dump + is required for those wishing to migrate data from any + previous release of PostgreSQL. + For those upgrading from 6.5.*, you can instead use + pg_upgrade to upgrade to this + release; however, a full dump/reload installation is always the + most robust method for upgrades. + - - Interface and compatibility issues to consider for the new - release include: - + + Interface and compatibility issues to consider for the new + release include: + - - - - The date/time types datetime and - timespan have been superseded by the - SQL92-defined types timestamp and - interval. Although there has been some effort to - ease the transition by allowing - PostgreSQL to recognize - the deprecated type names and translate them to the new type - names, this mechanism cannot be completely transparent to - your existing application. - - + + + + The date/time types datetime and + timespan have been superseded by the + SQL92-defined types timestamp and + interval. Although there has been some effort to + ease the transition by allowing + PostgreSQL to recognize + the deprecated type names and translate them to the new type + names, this mechanism cannot be completely transparent to + your existing application. + + - - - The optimizer has been substantially improved in the area of - query cost estimation. In some cases, this will result in - decreased query times as the optimizer makes a better choice - for the preferred plan. However, in a small number of cases, - usually involving pathological distributions of data, your - query times might go up. If you are dealing with large amounts - of data, you might want to check your queries to verify - performance. - - + + + The optimizer has been substantially improved in the area of + query cost estimation. In some cases, this will result in + decreased query times as the optimizer makes a better choice + for the preferred plan. However, in a small number of cases, + usually involving pathological distributions of data, your + query times might go up. If you are dealing with large amounts + of data, you might want to check your queries to verify + performance. + + - - - The JDBC and ODBC - interfaces have been upgraded and extended. - - + + + The JDBC and ODBC + interfaces have been upgraded and extended. + + - - - The string function CHAR_LENGTH is now a - native function. Previous versions translated this into a call - to LENGTH, which could result in - ambiguity with other types implementing - LENGTH such as the geometric types. - - - - + + + The string function CHAR_LENGTH is now a + native function. Previous versions translated this into a call + to LENGTH, which could result in + ambiguity with other types implementing + LENGTH such as the geometric types. + + + + - - Changes + + Changes - - + + Bug Fixes --------- Prevent function calls exceeding maximum number of arguments (Tom) @@ -16896,8 +17916,8 @@ Added psql LASTOID variable to return last inserted oid (Peter E) Allow concurrent vacuum and remove pg_vlock vacuum lock file (Tom) Add privilege check for vacuum (Peter E) New libpq functions to allow asynchronous connections: PQconnectStart(), - PQconnectPoll(), PQresetStart(), PQresetPoll(), PQsetenvStart(), - PQsetenvPoll(), PQsetenvAbort (Ewan Mellor) + PQconnectPoll(), PQresetStart(), PQresetPoll(), PQsetenvStart(), + PQsetenvPoll(), PQsetenvAbort (Ewan Mellor) New libpq PQsetenv() function (Ewan Mellor) create/alter user extension (Peter E) New postmaster.pid and postmaster.opts under $PGDATA (Tatsuo) @@ -16915,7 +17935,7 @@ All administration scripts now support --long options (Peter E, Karel) Vacuumdb script now supports --all option (Peter E) ecpg new portable FETCH syntax Add ecpg EXEC SQL IFDEF, EXEC SQL IFNDEF, EXEC SQL ELSE, EXEC SQL ELIF - and EXEC SQL ENDIF directives + and EXEC SQL ENDIF directives Add pg_ctl script to control backend start-up (Tatsuo) Add postmaster.opts.default file to store start-up flags (Tatsuo) Allow --with-mb=SQL_ASCII @@ -16937,7 +17957,7 @@ Allow COPY IN to read file that do not end with a newline (Tom) Indicate when long identifiers are truncated (Tom) Allow aggregates to use type equivalency (Peter E) Add Oracle's to_char(), to_date(), to_datetime(), to_timestamp(), to_number() - conversion functions (Karel Zak <zakkr@zf.jcu.cz>) + conversion functions (Karel Zak <zakkr@zf.jcu.cz>) Add SELECT DISTINCT ON (expr [, expr ...]) targetlist ... (Tom) Check to be sure ORDER BY is compatible with the DISTINCT operation (Tom) Add NUMERIC and int8 types to ODBC @@ -17098,75 +18118,75 @@ NT fixes NetBSD fixes (Johnny C. Lam lamj@stat.cmu.edu) Fixes for Alpha compiles New multibyte encodings - - - - + + + + - - Release 6.5.3 + + Release 6.5.3 - - Release date - 1999-10-13 - + + Release date + 1999-10-13 + - - This is basically a cleanup release for 6.5.2. We have added a new - PgAccess that was missing in 6.5.2, and installed an NT-specific fix. - + + This is basically a cleanup release for 6.5.2. We have added a new + PgAccess that was missing in 6.5.2, and installed an NT-specific fix. + - - Migration to version 6.5.3 + + Migration to Version 6.5.3 - - A dump/restore is not required for those running - 6.5.*. - - - - Changes + + A dump/restore is not required for those running + 6.5.*. + + + + Changes - - + + Updated version of pgaccess 0.98 NT-specific patch Fix dumping rules on inherited tables - - - - + + + + - - Release 6.5.2 + + Release 6.5.2 - - Release date - 1999-09-15 - + + Release date + 1999-09-15 + - - This is basically a cleanup release for 6.5.1. We have fixed a variety of - problems reported by 6.5.1 users. - + + This is basically a cleanup release for 6.5.1. We have fixed a variety of + problems reported by 6.5.1 users. + - - Migration to version 6.5.2 + + Migration to Version 6.5.2 - - A dump/restore is not required for those running - 6.5.*. - - + + A dump/restore is not required for those running + 6.5.*. + + - - Changes + + Changes - - + + subselect+CASE fixes(Tom) Add SHLIB_LINK setting for solaris_i386 and solaris_sparc ports(Daren Sefcik) Fixes for CASE in WHERE join clauses(Tom) @@ -17188,41 +18208,41 @@ Fix for unary operators in rule deparser(Tom) Comment out FileUnlink of excess segments during mdtruncate()(Tom) IRIX linking fix from Yu Cao >yucao@falcon.kla-tencor.com< Repair logic error in LIKE: should not return LIKE_ABORT - when reach end of pattern before end of text(Tom) + when reach end of pattern before end of text(Tom) Repair incorrect cleanup of heap memory allocation during transaction abort(Tom) Updated version of pgaccess 0.98 - - - - + + + + - - Release 6.5.1 + + Release 6.5.1 - - Release date - 1999-07-15 - + + Release date + 1999-07-15 + - - This is basically a cleanup release for 6.5. We have fixed a variety of - problems reported by 6.5 users. - + + This is basically a cleanup release for 6.5. We have fixed a variety of + problems reported by 6.5 users. + - - Migration to version 6.5.1 + + Migration to Version 6.5.1 - - A dump/restore is not required for those running - 6.5. - - + + A dump/restore is not required for those running + 6.5. + + - - Changes + + Changes - - + + Add NT README file Portability fixes for linux_ppc, IRIX, linux_alpha, OpenBSD, alpha Remove QUERY_LIMIT, use SELECT...LIMIT @@ -17246,244 +18266,244 @@ Shared library dependencies fixed (Tom) Fixed glitches affecting GROUP BY in subselects(Tom) Fix some compiler warnings (Tomoaki Nishiyama) Add Win1250 (Czech) support (Pavel Behal) - - - - + + + + - - Release 6.5 + + Release 6.5 - - Release date - 1999-06-09 - + + Release date + 1999-06-09 + - - This release marks a major step in the development team's mastery of the source - code we inherited from Berkeley. You will see we are now easily adding - major features, thanks to the increasing size and experience of our - world-wide development team. - + + This release marks a major step in the development team's mastery of the source + code we inherited from Berkeley. You will see we are now easily adding + major features, thanks to the increasing size and experience of our + world-wide development team. + - - Here is a brief summary of the more notable changes: + + Here is a brief summary of the more notable changes: - - - - Multiversion concurrency control(MVCC) - - - - This removes our old table-level locking, and replaces it with - a locking system that is superior to most commercial database - systems. In a traditional system, each row that is modified - is locked until committed, preventing reads by other users. - MVCC uses the natural multiversion nature of - PostgreSQL to allow readers to - continue reading consistent data during writer activity. - Writers continue to use the compact pg_log transaction system. - This is all performed without having to allocate a lock for - every row like traditional database systems. So, basically, - we no longer are restricted by simple table-level locking; we - have something better than row-level locking. - - - + + + + Multiversion concurrency control(MVCC) + + + + This removes our old table-level locking, and replaces it with + a locking system that is superior to most commercial database + systems. In a traditional system, each row that is modified + is locked until committed, preventing reads by other users. + MVCC uses the natural multiversion nature of + PostgreSQL to allow readers to + continue reading consistent data during writer activity. + Writers continue to use the compact pg_log transaction system. + This is all performed without having to allocate a lock for + every row like traditional database systems. So, basically, + we no longer are restricted by simple table-level locking; we + have something better than row-level locking. + + + - - - Hot backups from pg_dump - - - - pg_dump takes advantage of the new - MVCC features to give a consistent database dump/backup while - the database stays online and available for queries. - - - + + + Hot backups from pg_dump + + + + pg_dump takes advantage of the new + MVCC features to give a consistent database dump/backup while + the database stays online and available for queries. + + + - - - Numeric data type - - - - We now have a true numeric data type, with - user-specified precision. - - - + + + Numeric data type + + + + We now have a true numeric data type, with + user-specified precision. + + + - - - Temporary tables - - - - Temporary tables are guaranteed to have unique names - within a database session, and are destroyed on session exit. - - - + + + Temporary tables + + + + Temporary tables are guaranteed to have unique names + within a database session, and are destroyed on session exit. + + + - - - New SQL features - - - - We now have CASE, INTERSECT, and EXCEPT statement - support. We have new LIMIT/OFFSET, SET TRANSACTION ISOLATION LEVEL, - SELECT ... FOR UPDATE, and an improved LOCK TABLE command. - - - + + + New SQL features + + + + We now have CASE, INTERSECT, and EXCEPT statement + support. We have new LIMIT/OFFSET, SET TRANSACTION ISOLATION LEVEL, + SELECT ... FOR UPDATE, and an improved LOCK TABLE command. + + + - - - Speedups - - - - We continue to speed up PostgreSQL, - thanks to the variety of talents within our team. We have - sped up memory allocation, optimization, table joins, and row - transfer routines. - - - + + + Speedups + + + + We continue to speed up PostgreSQL, + thanks to the variety of talents within our team. We have + sped up memory allocation, optimization, table joins, and row + transfer routines. + + + - - - Ports - - - - We continue to expand our port list, this time including - Windows NT/ix86 and NetBSD/arm32. - - - + + + Ports + + + + We continue to expand our port list, this time including + Windows NT/ix86 and NetBSD/arm32. + + + - - - Interfaces - - - - Most interfaces have new versions, and existing functionality - has been improved. - - - + + + Interfaces + + + + Most interfaces have new versions, and existing functionality + has been improved. + + + - - - Documentation - - - - New and updated material is present throughout the - documentation. New FAQs have been - contributed for SGI and AIX platforms. - The Tutorial has introductory information - on SQL from Stefan Simkovics. - For the User's Guide, there are - reference pages covering the postmaster and more utility - programs, and a new appendix - contains details on date/time behavior. - The Administrator's Guide has a new - chapter on troubleshooting from Tom Lane. - And the Programmer's Guide has a - description of query processing, also from Stefan, and details - on obtaining the PostgreSQL source - tree via anonymous CVS and - CVSup. - - - - + + + Documentation + + + + New and updated material is present throughout the + documentation. New FAQs have been + contributed for SGI and AIX platforms. + The Tutorial has introductory information + on SQL from Stefan Simkovics. + For the User's Guide, there are + reference pages covering the postmaster and more utility + programs, and a new appendix + contains details on date/time behavior. + The Administrator's Guide has a new + chapter on troubleshooting from Tom Lane. + And the Programmer's Guide has a + description of query processing, also from Stefan, and details + on obtaining the PostgreSQL source + tree via anonymous CVS and + CVSup. + + + + + + + + Migration to Version 6.5 + + + A dump/restore using pg_dump + is required for those wishing to migrate data from any + previous release of PostgreSQL. + pg_upgrade can not + be used to upgrade to this release because the on-disk structure + of the tables has changed compared to previous releases. - - Migration to version 6.5 + + The new Multiversion Concurrency Control (MVCC) features can + give somewhat different behaviors in multiuser + environments. Read and understand the following section + to ensure that your existing applications will give you the + behavior you need. + + + + Multiversion Concurrency Control - A dump/restore using pg_dump - is required for those wishing to migrate data from any - previous release of PostgreSQL. - pg_upgrade can not - be used to upgrade to this release because the on-disk structure - of the tables has changed compared to previous releases. + Because readers in 6.5 don't lock data, regardless of transaction + isolation level, data read by one transaction can be overwritten by + another. In other words, if a row is returned by + SELECT it doesn't mean that this row really exists + at the time it is returned (i.e. sometime after the statement or + transaction began) nor that the row is protected from being deleted or + updated by concurrent transactions before the current transaction does + a commit or rollback. - The new Multiversion Concurrency Control (MVCC) features can - give somewhat different behaviors in multiuser - environments. Read and understand the following section - to ensure that your existing applications will give you the - behavior you need. + To ensure the actual existence of a row and protect it against + concurrent updates one must use SELECT FOR UPDATE or + an appropriate LOCK TABLE statement. This should be + taken into account when porting applications from previous releases of + PostgreSQL and other environments. - - Multiversion Concurrency Control - - - Because readers in 6.5 don't lock data, regardless of transaction - isolation level, data read by one transaction can be overwritten by - another. In other words, if a row is returned by - SELECT it doesn't mean that this row really exists - at the time it is returned (i.e. sometime after the statement or - transaction began) nor that the row is protected from being deleted or - updated by concurrent transactions before the current transaction does - a commit or rollback. - - - - To ensure the actual existence of a row and protect it against - concurrent updates one must use SELECT FOR UPDATE or - an appropriate LOCK TABLE statement. This should be - taken into account when porting applications from previous releases of - PostgreSQL and other environments. - - - - Keep the above in mind if you are using - contrib/refint.* triggers for - referential integrity. Additional techniques are required now. One way is - to use LOCK parent_table IN SHARE ROW EXCLUSIVE MODE - command if a transaction is going to update/delete a primary key and - use LOCK parent_table IN SHARE MODE command if a - transaction is going to update/insert a foreign key. - - - - Note that if you run a transaction in SERIALIZABLE mode then you must - execute the LOCK commands above before execution of any - DML statement - (SELECT/INSERT/DELETE/UPDATE/FETCH/COPY_TO) in the - transaction. - - - + + Keep the above in mind if you are using + contrib/refint.* triggers for + referential integrity. Additional techniques are required now. One way is + to use LOCK parent_table IN SHARE ROW EXCLUSIVE MODE + command if a transaction is going to update/delete a primary key and + use LOCK parent_table IN SHARE MODE command if a + transaction is going to update/insert a foreign key. + + + + Note that if you run a transaction in SERIALIZABLE mode then you must + execute the LOCK commands above before execution of any + DML statement + (SELECT/INSERT/DELETE/UPDATE/FETCH/COPY_TO) in the + transaction. + + + - - These inconveniences will disappear in the future - when the ability to read dirty - (uncommitted) data (regardless of isolation level) and true referential - integrity will be implemented. - - - + + These inconveniences will disappear in the future + when the ability to read dirty + (uncommitted) data (regardless of isolation level) and true referential + integrity will be implemented. + + + - - Changes + + Changes - - + + Bug Fixes --------- Fix text<->float8 and text<->float4 conversion functions(Thomas) @@ -17592,7 +18612,7 @@ New routines to convert between int8 and text/varchar types(Thomas) New bushy plans, where meta-tables are joined(Bruce) Enable right-hand queries by default(Bruce) Allow reliable maximum number of backends to be set at configure time - (--with-maxbackends and postmaster switch (-N backends))(Tom) + (--with-maxbackends and postmaster switch (-N backends))(Tom) GEQO default now 10 tables because of optimizer speedups(Tom) Allow NULL=Var for MS-SQL portability(Michael, Bruce) Modify contrib check_primary_key() so either "automatic" or "dependent"(Anand) @@ -17645,19 +18665,19 @@ Add ARM32 support(Andrew McMurry) Better support for HP-UX 11 and UnixWare Improve file handling to be more uniform, prevent file descriptor leak(Tom) New install commands for plpgsql(Jan) - - - - + + + + Release 6.4.2 - - Release date - 1998-12-20 - + + Release date + 1998-12-20 + The 6.4.1 release was improperly packaged. This also has one additional @@ -17666,7 +18686,7 @@ bug fix. -Migration to version 6.4.2 +Migration to Version 6.4.2 A dump/restore is not required for those running @@ -17689,10 +18709,10 @@ Fix for datetime constant problem on some platforms(Thomas) Release 6.4.1 - - Release date - 1998-12-18 - + + Release date + 1998-12-18 + This is basically a cleanup release for 6.4. We have fixed a variety of @@ -17701,7 +18721,7 @@ problems reported by 6.4 users. -Migration to version 6.4.1 +Migration to Version 6.4.1 A dump/restore is not required for those running @@ -17714,12 +18734,12 @@ A dump/restore is not required for those running Add pg_dump -N flag to force double quotes around identifiers. This is - the default(Thomas) + the default(Thomas) Fix for NOT in where clause causing crash(Bruce) EXPLAIN VERBOSE coredump fix(Vadim) Fix shared-library problems on Linux Fix test for table existence to allow mixed-case and whitespace in - the table name(Thomas) + the table name(Thomas) Fix a couple of pg_dump bugs Configure matches template/.similar entries better(Tom) Change builtin function names from SPI_* to spi_* @@ -17753,10 +18773,10 @@ Upgrade to PyGreSQL 2.2(D'Arcy) Release 6.4 - - Release date - 1998-10-30 - + + Release date + 1998-10-30 + There are many new features and improvements in this release. @@ -17835,7 +18855,7 @@ been. -Migration to version 6.4 +Migration to Version 6.4 A dump/restore using pg_dump @@ -17845,11 +18865,11 @@ previous release of PostgreSQL. - + Changes - - + + Bug Fixes --------- Fix for a tiny memory leak in PQsetdb/PQfinish(Bryan) @@ -17962,22 +18982,22 @@ Indexes for restriction clauses containing a constant(Thomas) New ISBN/ISSN code in /contrib/isbn_issn Allow NOT LIKE, IN, NOT IN, BETWEEN, and NOT BETWEEN constraint(Thomas) New rewrite system fixes many problems with rules and views(Jan) - * Rules on relations work - * Event qualifications on insert/update/delete work - * New OLD variable to reference CURRENT, CURRENT will be remove in future - * Update rules can reference NEW and OLD in rule qualifications/actions - * Insert/update/delete rules on views work - * Multiple rule actions are now supported, surrounded by parentheses - * Regular users can create views/rules on tables they have RULE permits - * Rules and views inherit the privileges of the creator - * No rules at the column level - * No UPDATE NEW/OLD rules - * New pg_tables, pg_indexes, pg_rules and pg_views system views - * Only a single action on SELECT rules - * Total rewrite overhaul, perhaps for 6.5 - * handle subselects - * handle aggregates on views - * handle insert into select from view works + * Rules on relations work + * Event qualifications on insert/update/delete work + * New OLD variable to reference CURRENT, CURRENT will be remove in future + * Update rules can reference NEW and OLD in rule qualifications/actions + * Insert/update/delete rules on views work + * Multiple rule actions are now supported, surrounded by parentheses + * Regular users can create views/rules on tables they have RULE permits + * Rules and views inherit the privileges of the creator + * No rules at the column level + * No UPDATE NEW/OLD rules + * New pg_tables, pg_indexes, pg_rules and pg_views system views + * Only a single action on SELECT rules + * Total rewrite overhaul, perhaps for 6.5 + * handle subselects + * handle aggregates on views + * handle insert into select from view works System indexes are now multikey(Bruce) Oidint2, oidint4, and oidname types are removed(Bruce) Use system cache for more system table lookups(Bruce) @@ -18050,10 +19070,10 @@ new Makefile.shlib for shared library configuration(Tom) Release 6.3.2 - - Release date - 1998-04-07 - + + Release date + 1998-04-07 + This is a bug-fix release for 6.3.x. @@ -18089,11 +19109,11 @@ For upgrades from pre-6.3 installations, refer to the installation and migration instructions for version 6.3. - - Changes + + Changes - - + + Configure detection improvements for tcl/tk(Brook Milligan, Alvin) Manual page improvements(Bruce) BETWEEN and LIKE fix(Thomas) @@ -18112,21 +19132,21 @@ libreadline cleanup(Erwan MAS) Remove DISTDIR(Bruce) Makefile dependency cleanup(Jeroen van Vianen) ASSERT fixes(Bruce) - - - - + + + + - - Release 6.3.1 + + Release 6.3.1 - - Release date - 1998-03-23 - + + Release date + 1998-03-23 + - - Summary: + + Summary: @@ -18166,11 +19186,11 @@ For upgrades from pre-6.3 installations, refer to the installation and migration instructions for version 6.3. - - Changes + + Changes - - + + ecpg cleanup/fixes, now version 1.1(Michael Meskes) pg_user cleanup(Bruce) large object fix for pg_dump and tclsh (alvin) @@ -18198,154 +19218,154 @@ Fix Alpha port(Dwayne Bailey) Fix for text arrays containing quotes(Doug Gibson) Solaris compile fix(Albert Chin-A-Young) Better identify tcl and tk libs and includes(Bruce) - - - - - - - Release 6.3 + + + + - - Release date - 1998-03-01 - + + Release 6.3 - - There are many new features and improvements in this release. - Here is a brief, incomplete summary: + + Release date + 1998-03-01 + - - - - Many new SQL features, including - full SQL92 subselect capability - (everything is here but target-list subselects). - - + + There are many new features and improvements in this release. + Here is a brief, incomplete summary: - - - Support for client-side environment variables to specify time zone and date style. - - + + + + Many new SQL features, including + full SQL92 subselect capability + (everything is here but target-list subselects). + + - - - Socket interface for client/server connection. This is the default now - so you might need to start postmaster with the - flag. - - + + + Support for client-side environment variables to specify time zone and date style. + + - - - Better password authorization mechanisms. Default table privileges have changed. - - + + + Socket interface for client/server connection. This is the default now + so you might need to start postmaster with the + flag. + + - - - Old-style time travel - has been removed. Performance has been improved. - - - - + + + Better password authorization mechanisms. Default table privileges have changed. + + - - - Bruce Momjian wrote the following notes to introduce the new release. - - + + + Old-style time travel + has been removed. Performance has been improved. + + + + + - There are some general 6.3 issues that I want to mention. These are - only the big items that cannot be described in one sentence. A review - of the detailed changes list is still needed. - - - First, we now have subselects. Now that we have them, I would like to - mention that without subselects, SQL is a very limited language. - Subselects are a major feature, and you should review your code for - places where subselects provide a better solution for your queries. I - think you will find that there are more uses for subselects than you might - think. Vadim has put us on the big SQL map with subselects, and fully - functional ones too. The only thing you cannot do with subselects is to - use them in the target list. - - - Second, 6.3 uses Unix domain sockets rather than TCP/IP by default. To - enable connections from other machines, you have to use the new - postmaster -i option, and of course edit pg_hba.conf. Also, for this - reason, the format of pg_hba.conf has changed. - - - Third, char() fields will now allow faster access than varchar() or - text. Specifically, the text and varchar() have a penalty for access to - any columns after the first column of this type. char() used to also - have this access penalty, but it no longer does. This might suggest that - you redesign some of your tables, especially if you have short character - columns that you have defined as varchar() or text. This and other - changes make 6.3 even faster than earlier releases. - - - We now have passwords definable independent of any Unix file. There are - new SQL USER commands. - See the Administrator's Guide for more - information. There is a new table, pg_shadow, which is used to store - user information and user passwords, and it by default only SELECT-able - by the postgres super-user. pg_user is now a view of pg_shadow, and is - SELECT-able by PUBLIC. You should keep using pg_user in your - application without changes. - - - User-created tables now no longer have SELECT privilege to PUBLIC by - default. This was done because the ANSI standard requires it. You can - of course GRANT any privileges you want after the table is created. - System tables continue to be SELECT-able by PUBLIC. - - - We also have real deadlock detection code. No more sixty-second - timeouts. And the new locking code implements a FIFO better, so there - should be less resource starvation during heavy use. - - - Many complaints have been made about inadequate documentation in previous - releases. Thomas has put much effort into many new manuals for this - release. Check out the doc/ directory. - - - For performance reasons, time travel is gone, but can be implemented - using triggers (see pgsql/contrib/spi/README). Please check out the new - \d command for types, operators, etc. Also, views have their own - privileges now, not based on the underlying tables, so privileges on - them have to be set separately. Check /pgsql/interfaces for some new - ways to talk to PostgreSQL. - - - This is the first release that really required an explanation for - existing users. In many ways, this was necessary because the new - release removes many limitations, and the work-arounds people were using - are no longer needed. + Bruce Momjian wrote the following notes to introduce the new release. + - - Migration to version 6.3 + + There are some general 6.3 issues that I want to mention. These are + only the big items that cannot be described in one sentence. A review + of the detailed changes list is still needed. + + + First, we now have subselects. Now that we have them, I would like to + mention that without subselects, SQL is a very limited language. + Subselects are a major feature, and you should review your code for + places where subselects provide a better solution for your queries. I + think you will find that there are more uses for subselects than you might + think. Vadim has put us on the big SQL map with subselects, and fully + functional ones too. The only thing you cannot do with subselects is to + use them in the target list. + + + Second, 6.3 uses Unix domain sockets rather than TCP/IP by default. To + enable connections from other machines, you have to use the new + postmaster -i option, and of course edit pg_hba.conf. Also, for this + reason, the format of pg_hba.conf has changed. + + + Third, char() fields will now allow faster access than varchar() or + text. Specifically, the text and varchar() have a penalty for access to + any columns after the first column of this type. char() used to also + have this access penalty, but it no longer does. This might suggest that + you redesign some of your tables, especially if you have short character + columns that you have defined as varchar() or text. This and other + changes make 6.3 even faster than earlier releases. + + + We now have passwords definable independent of any Unix file. There are + new SQL USER commands. + See the Administrator's Guide for more + information. There is a new table, pg_shadow, which is used to store + user information and user passwords, and it by default only SELECT-able + by the postgres super-user. pg_user is now a view of pg_shadow, and is + SELECT-able by PUBLIC. You should keep using pg_user in your + application without changes. + + + User-created tables now no longer have SELECT privilege to PUBLIC by + default. This was done because the ANSI standard requires it. You can + of course GRANT any privileges you want after the table is created. + System tables continue to be SELECT-able by PUBLIC. + + + We also have real deadlock detection code. No more sixty-second + timeouts. And the new locking code implements a FIFO better, so there + should be less resource starvation during heavy use. + + + Many complaints have been made about inadequate documentation in previous + releases. Thomas has put much effort into many new manuals for this + release. Check out the doc/ directory. + + + For performance reasons, time travel is gone, but can be implemented + using triggers (see pgsql/contrib/spi/README). Please check out the new + \d command for types, operators, etc. Also, views have their own + privileges now, not based on the underlying tables, so privileges on + them have to be set separately. Check /pgsql/interfaces for some new + ways to talk to PostgreSQL. + + + This is the first release that really required an explanation for + existing users. In many ways, this was necessary because the new + release removes many limitations, and the work-arounds people were using + are no longer needed. + - - A dump/restore using pg_dump - or pg_dumpall - is required for those wishing to migrate data from any - previous release of PostgreSQL. - - + + Migration to Version 6.3 - - Changes + + A dump/restore using pg_dump + or pg_dumpall + is required for those wishing to migrate data from any + previous release of PostgreSQL. + + - - + + Changes + + + Bug Fixes --------- Fix binary cursors broken by MOVE implementation(Vadim) @@ -18365,19 +19385,19 @@ Fix for count(*), aggs with views and multiple tables and sum(3)(Bruce) Fix cluster(Bruce) Fix for PQtrace start/stop several times(Bruce) Fix a variety of locking problems like newer lock waiters getting - lock before older waiters, and having readlock people not share - locks if a writer is waiting for a lock, and waiting writers not - getting priority over waiting readers(Bruce) + lock before older waiters, and having readlock people not share + locks if a writer is waiting for a lock, and waiting writers not + getting priority over waiting readers(Bruce) Fix crashes in psql when executing queries from external files(James) Fix problem with multiple order by columns, with the first one having - NULL values(Jeroen) + NULL values(Jeroen) Use correct hash table support functions for float8 and int4(Thomas) Re-enable JOIN= option in CREATE OPERATOR statement (Thomas) Change precedence for boolean operators to match expected behavior(Thomas) Generate elog(ERROR) on over-large integer(Bruce) Allow multiple-argument functions in constraint clauses(Thomas) Check boolean input literals for 'true','false','yes','no','1','0' - and throw elog(ERROR) if unrecognized(Thomas) + and throw elog(ERROR) if unrecognized(Thomas) Major large objects fix Fix for GROUP BY showing duplicates(Vadim) Fix for index scans in MergeJoin(Vadim) @@ -18389,7 +19409,7 @@ New User Manual(Thomas, others) Speedup by inlining some frequently-called functions Real deadlock detection, no more timeouts(Bruce) Add SQL92 "constants" CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, - CURRENT_USER(Thomas) + CURRENT_USER(Thomas) Modify constraint syntax to be SQL92-compliant(Thomas) Implement SQL92 PRIMARY KEY and UNIQUE clauses using indexes(Thomas) Recognize SQL92 syntax for FOREIGN KEY. Throw elog notice(Thomas) @@ -18401,11 +19421,11 @@ Allow shorter strings for boolean literals (e.g. "t", "tr", "tru")(Thomas) Allow SQL92 delimited identifiers(Thomas) Implement SQL92 binary and hexadecimal string decoding (b'10' and x'1F')(Thomas) Support SQL92 syntax for type coercion of literal strings - (e.g. "DATETIME 'now'")(Thomas) + (e.g. "DATETIME 'now'")(Thomas) Add conversions for int2, int4, and OID types to and from text(Thomas) Use shared lock when building indexes(Vadim) Free memory allocated for an user query inside transaction block after - this query is done, was turned off in <= 6.2.1(Vadim) + this query is done, was turned off in <= 6.2.1(Vadim) New SQL statement CREATE PROCEDURAL LANGUAGE(Jan) New PostgreSQL Procedural Language (PL) backend interface(Jan) Rename pg_dump -H option to -h(Bruce) @@ -18423,10 +19443,10 @@ Implement SET keyword = DEFAULT and SET TIME ZONE DEFAULT(Thomas) Enable SET TIME ZONE using TZ environment variable(Thomas) Add PGDATESTYLE environment variable to frontend and backend initialization(Thomas) Add PGTZ, PGCOSTHEAP, PGCOSTINDEX, PGRPLANS, PGGEQO - frontend library initialization environment variables(Thomas) + frontend library initialization environment variables(Thomas) Regression tests time zone automatically set with "setenv PGTZ PST8PDT"(Thomas) Add pg_description table for info on tables, columns, operators, types, and - aggregates(Bruce) + aggregates(Bruce) Increase 16 char limit on system table/index names to 32 characters(Bruce) Rename system indexes(Bruce) Add 'GERMAN' option to SET DATESTYLE(Thomas) @@ -18437,7 +19457,7 @@ Implement day of year as possible input to date_part()(Thomas) Define timespan_finite() and text_timespan() functions(Thomas) Remove archive stuff(Bruce) Allow for a pg_password authentication database that is separate from - the system password file(Todd) + the system password file(Todd) Dump ACLs, GRANT, REVOKE privileges(Matt) Define text, varchar, and bpchar string length functions(Thomas) Fix Query handling for inheritance, and cost computations(Bruce) @@ -18469,9 +19489,9 @@ Remove pg_time table(Vadim) Add pg_type attribute to identify types that need length (bpchar, varchar) Add report of offending line when COPY command fails Allow VIEW privileges to be set separately from the underlying tables. - For security, use GRANT/REVOKE on views as appropriate(Jan) + For security, use GRANT/REVOKE on views as appropriate(Jan) Tables now have no default GRANT SELECT TO PUBLIC. You must - explicitly grant such privileges. + explicitly grant such privileges. Clean up tutorial examples(Darren) Source Tree Changes @@ -18479,12 +19499,12 @@ Source Tree Changes Add new html development tools, and flow chart in /tools/backend Fix for SCO compiles Stratus computer port Robert Gillies -Added support for shlib for BSD44_derived & i386_solaris +Added support for shlib for BSD44_derived & i386_solaris Make configure more automated(Brook) Add script to check regression test results Break parser functions into smaller files, group together(Bruce) Rename heap_create to heap_create_and_catalog, rename heap_creatr - to heap_create()(Bruce) + to heap_create()(Bruce) Sparc/Linux patch for locking(TomS) Remove PORTNAME and reorganize port-specific stuff(Marc) Add optimizer README file(Bruce) @@ -18493,7 +19513,7 @@ Fix for NetBSD locking(Henry) Fix for libptcl make(Tatsuo) AIX patch(Darren) Change IS TRUE, IS FALSE, ... to expressions using "=" rather than - function calls to istrue() or isfalse() to allow optimization(Thomas) + function calls to istrue() or isfalse() to allow optimization(Thomas) Various fixes NetBSD/Sparc related(TomH) Alpha linux locking(Travis,Ryan) Change elog(WARN) to elog(ERROR)(Bruce) @@ -18518,10 +19538,10 @@ Remove un-needed malloc() calls and replace with palloc()(Bruce) Release 6.2.1 - - Release date - 1997-10-17 - + + Release date + 1997-10-17 + 6.2.1 is a bug-fix and usability release on 6.2. @@ -18567,8 +19587,8 @@ Another way to avoid dump/reload is to use the following SQL command from psql to update the existing system table: - update pg_aggregate set aggfinalfn = 'cash_div_flt8' - where aggname = 'avg' and aggbasetype = 790; + update pg_aggregate set aggfinalfn = 'cash_div_flt8' + where aggname = 'avg' and aggbasetype = 790; @@ -18576,11 +19596,11 @@ This will need to be done to every existing database, including template1. - - Changes + + Changes - - + + Allow TIME and TYPE column names(Thomas) Allow larger range of true/false as boolean values(Thomas) Support output of "now" and "current"(Thomas) @@ -18592,18 +19612,18 @@ Fix avg(cash) computation(Thomas) Fix for specifying a column twice in ORDER/GROUP BY(Vadim) Documented new libpq function to return affected rows, PQcmdTuples(Bruce) Trigger function for inserting user names for INSERT/UPDATE(Brook Milligan) - - - - + + + + Release 6.2 - - Release date - 1997-10-02 - + + Release date + 1997-10-02 + A dump/restore is required for those wishing to migrate data from @@ -18632,56 +19652,56 @@ because the COPY output format was improved from the 1.02 release. - - Changes + + Changes - - + + Bug Fixes --------- Fix problems with pg_dump for inheritance, sequences, archive tables(Bruce) Fix compile errors on overflow due to shifts, unsigned, and bad prototypes - from Solaris(Diab Jerius) + from Solaris(Diab Jerius) Fix bugs in geometric line arithmetic (bad intersection calculations)(Thomas) Check for geometric intersections at endpoints to avoid rounding ugliness(Thomas) Catch non-functional delete attempts(Vadim) Change time function names to be more consistent(Michael Reifenberg) Check for zero divides(Michael Reifenberg) Fix very old bug which made rows changed/inserted by a command - visible to the command itself (so we had multiple update of - updated rows, etc.)(Vadim) + visible to the command itself (so we had multiple update of + updated rows, etc.)(Vadim) Fix for SELECT null, 'fail' FROM pg_am (Patrick) SELECT NULL as EMPTY_FIELD now allowed(Patrick) Remove un-needed signal stuff from contrib/pginterface Fix OR (where x != 1 or x isnull didn't return rows with x NULL) (Vadim) Fix time_cmp function (Vadim) Fix handling of functions with non-attribute first argument in - WHERE clauses (Vadim) + WHERE clauses (Vadim) Fix GROUP BY when order of entries is different from order - in target list (Vadim) + in target list (Vadim) Fix pg_dump for aggregates without sfunc1 (Vadim) Enhancements ------------ Default genetic optimizer GEQO parameter is now 8(Bruce) Allow use parameters in target list having aggregates in functions(Vadim) -Added JDBC driver as an interface(Adrian & Peter) +Added JDBC driver as an interface(Adrian & Peter) pg_password utility Return number of rows inserted/affected by INSERT/UPDATE/DELETE etc.(Vadim) Triggers implemented with CREATE TRIGGER (SQL3)(Vadim) SPI (Server Programming Interface) allows execution of queries inside - C-functions (Vadim) + C-functions (Vadim) NOT NULL implemented (SQL92)(Robson Paniago de Miranda) Include reserved words for string handling, outer joins, and unions(Thomas) Implement extended comments ("/* ... */") using exclusive states(Thomas) Add "//" single-line comments(Bruce) Remove some restrictions on characters in operator names(Thomas) -DEFAULT and CONSTRAINT for tables implemented (SQL92)(Vadim & Thomas) +DEFAULT and CONSTRAINT for tables implemented (SQL92)(Vadim & Thomas) Add text concatenation operator and function (SQL92)(Thomas) Support WITH TIME ZONE syntax (SQL92)(Thomas) Support INTERVAL unit TO unit syntax (SQL92)(Thomas) Define types DOUBLE PRECISION, INTERVAL, CHARACTER, - and CHARACTER VARYING (SQL92)(Thomas) + and CHARACTER VARYING (SQL92)(Thomas) Define type FLOAT(p) and rudimentary DECIMAL(p,s), NUMERIC(p,s) (SQL92)(Thomas) Define EXTRACT(), POSITION(), SUBSTRING(), and TRIM() (SQL92)(Thomas) Define CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP (SQL92)(Thomas) @@ -18691,14 +19711,14 @@ Allow hh:mm:ss time entry for timespan/reltime types(Thomas) Add center() routines for lseg, path, polygon(Thomas) Add distance() routines for circle-polygon, polygon-polygon(Thomas) Check explicitly for points and polygons contained within polygons - using an axis-crossing algorithm(Thomas) + using an axis-crossing algorithm(Thomas) Add routine to convert circle-box(Thomas) Merge conflicting operators for different geometric data types(Thomas) Replace distance operator "<===>" with "<->"(Thomas) Replace "above" operator "!^" with ">^" and "below" operator "!|" with "<^"(Thomas) Add routines for text trimming on both ends, substring, and string position(Thomas) Added conversion routines circle(box) and poly(circle)(Thomas) -Allow internal sorts to be stored in memory rather than in files(Bruce & Vadim) +Allow internal sorts to be stored in memory rather than in files(Bruce & Vadim) Allow functions and operators on internally-identical types to succeed(Bruce) Speed up backend start-up after profiling analysis(Bruce) Inline frequently called functions for performance(Bruce) @@ -18731,7 +19751,7 @@ new interfaces directory(Marc) Replace fopen() calls with calls to fd.c functions(Bruce) Make functions static where possible(Bruce) enclose unused functions in #ifdef NOT_USED(Bruce) -Remove call to difftime() in timestamp support to fix SunOS(Bruce & Thomas) +Remove call to difftime() in timestamp support to fix SunOS(Bruce & Thomas) Changes for Digital Unix Portability fix for pg_dumpall(Bruce) Rename pg_attribute.attnvals to attdispersion(Bruce) @@ -18739,12 +19759,12 @@ Rename pg_attribute.attnvals to attdispersion(Bruce) "built-in" manual page now "pgbuiltin"(Bruce) "drop" manual page now "drop_table"(Bruce) Add "create_trigger", "drop_trigger" manual pages(Thomas) -Add constraints regression test(Vadim & Thomas) +Add constraints regression test(Vadim & Thomas) Add comments syntax regression test(Thomas) Add PGINDENT and support program(Bruce) Massive commit to run PGINDENT on all *.c and *.h files(Bruce) Files moved to /src/tools directory(Bruce) -SPI and Trigger programming guides (Vadim & D'Arcy) +SPI and Trigger programming guides (Vadim & D'Arcy) @@ -18753,10 +19773,10 @@ SPI and Trigger programming guides (Vadim & D'Arcy) Release 6.1.1 - - Release date - 1997-07-22 - + + Release date + 1997-07-22 + Migration from version 6.1 to version 6.1.1 @@ -18768,11 +19788,11 @@ Refer to the release notes for 6.1 for more details. - - Changes + + Changes - - + + fix for SET with options (Thomas) allow pg_dump/pg_dumpall to preserve ownership of all tables/objects(Bruce) new psql \connect option allows changing usernames without changing databases @@ -18790,68 +19810,68 @@ major fix for endian handling of communication to server(Thomas, Tatsuo) Fix for Solaris assembler and include files(Yoshihiko Ichikawa) allow underscores in usernames(Bruce) pg_dumpall now returns proper status, portability fix(Bruce) - - - - + + + + Release 6.1 - - Release date - 1997-06-08 - + + Release date + 1997-06-08 + - The regression tests have been adapted and extensively modified for the - 6.1 release of PostgreSQL. + The regression tests have been adapted and extensively modified for the + 6.1 release of PostgreSQL. - Three new data types (datetime, timespan, and circle) have been added to - the native set of PostgreSQL types. Points, boxes, paths, and polygons - have had their output formats made consistent across the data types. - The polygon output in misc.out has only been spot-checked for correctness - relative to the original regression output. + Three new data types (datetime, timespan, and circle) have been added to + the native set of PostgreSQL types. Points, boxes, paths, and polygons + have had their output formats made consistent across the data types. + The polygon output in misc.out has only been spot-checked for correctness + relative to the original regression output. - PostgreSQL 6.1 introduces a new, alternate + PostgreSQL 6.1 introduces a new, alternate optimizer which uses genetic - algorithms. These algorithms introduce a random behavior in the ordering - of query results when the query contains multiple qualifiers or multiple - tables (giving the optimizer a choice on order of evaluation). Several - regression tests have been modified to explicitly order the results, and - hence are insensitive to optimizer choices. A few regression tests are - for data types which are inherently unordered (e.g. points and time - intervals) and tests involving those types are explicitly bracketed with - set geqo to 'off' and reset geqo. + algorithms. These algorithms introduce a random behavior in the ordering + of query results when the query contains multiple qualifiers or multiple + tables (giving the optimizer a choice on order of evaluation). Several + regression tests have been modified to explicitly order the results, and + hence are insensitive to optimizer choices. A few regression tests are + for data types which are inherently unordered (e.g. points and time + intervals) and tests involving those types are explicitly bracketed with + set geqo to 'off' and reset geqo. - The interpretation of array specifiers (the curly braces around atomic - values) appears to have changed sometime after the original regression - tests were generated. The current ./expected/*.out files reflect this - new interpretation, which might not be correct! + The interpretation of array specifiers (the curly braces around atomic + values) appears to have changed sometime after the original regression + tests were generated. The current ./expected/*.out files reflect this + new interpretation, which might not be correct! - The float8 regression test fails on at least some platforms. This is due - to differences in implementations of pow() and exp() and the signaling - mechanisms used for overflow and underflow conditions. + The float8 regression test fails on at least some platforms. This is due + to differences in implementations of pow() and exp() and the signaling + mechanisms used for overflow and underflow conditions. - The random results in the random test should cause the - random test to be failed, since the - regression tests are evaluated using a simple diff. However, - random does not seem to produce random results on my test - machine (Linux/gcc/i686). + The random results in the random test should cause the + random test to be failed, since the + regression tests are evaluated using a simple diff. However, + random does not seem to produce random results on my test + machine (Linux/gcc/i686). -Migration to version 6.1 +Migration to Version 6.1 This migration requires a complete dump of the 6.0 database and a @@ -18863,11 +19883,11 @@ because the COPY output format was improved from the 1.02 release. - - Changes + + Changes - - + + Bug Fixes --------- packet length checking in library routines @@ -18970,10 +19990,10 @@ DG/UX, Ultrix, IRIX, AIX portability fixes Release 6.0 - - Release date - 1997-01-29 - + + Release date + 1997-01-29 + A dump/restore is required for those wishing to migrate data from @@ -18998,11 +20018,11 @@ because the COPY output format was improved from the 1.02 release. - - Changes + + Changes - - + + Bug Fixes --------- ALTER TABLE bug - running postgres process needs to re-read table definition @@ -19051,7 +20071,7 @@ Allow libpq to distinguish between text value '' and null(Bruce) Allow non-postgres users with createdb privs to destroydb's Allow restriction on who can create C functions(Bryan) Allow restriction on who can do backend COPY(Bryan) -Can shrink tables, pg_time and pg_log(Vadim & Erich) +Can shrink tables, pg_time and pg_log(Vadim & Erich) Change debug level 2 to print queries only, changed debug heading layout(Bruce) Change default decimal constant representation from float4 to float8(Bruce) European date format now set when postmaster is started @@ -19114,10 +20134,10 @@ Unused/uninitialized variables corrected Release 1.09 - - Release date - 1996-11-04 - + + Release date + 1996-11-04 + Sorry, we didn't keep track of changes from 1.02 to 1.09. Some of @@ -19129,10 +20149,10 @@ releases. Release 1.02 - - Release date - 1996-08-01 - + + Release date + 1996-08-01 + Migration from version 1.02 to version 1.02.1 @@ -19165,13 +20185,13 @@ Start up a new 1.02.1 postmaster Add the new built-in functions and operators of 1.02.1 to 1.01 or 1.02 - databases. This is done by running the new 1.02.1 server against - your own 1.01 or 1.02 database and applying the queries attached at - the end of the file. This can be done easily through psql. If your - 1.01 or 1.02 database is named testdb and you have cut the commands - from the end of this file and saved them in addfunc.sql: + databases. This is done by running the new 1.02.1 server against + your own 1.01 or 1.02 database and applying the queries attached at + the end of the file. This can be done easily through psql. If your + 1.01 or 1.02 database is named testdb and you have cut the commands + from the end of this file and saved them in addfunc.sql: - % psql testdb -f addfunc.sql + % psql testdb -f addfunc.sql Those upgrading 1.02 databases will get a warning when executing the @@ -19194,7 +20214,7 @@ end-of-data marker. Also, empty strings are now loaded in as '' rather than NULL. See the copy manual page for full details. - sed 's/^\.$/\\./g' <in_file >out_file + sed 's/^\.$/\\./g' <in_file >out_file -- 2.39.5