summaryrefslogtreecommitdiff
path: root/databases/postgresql82-server
AgeCommit message (Collapse)AuthorFilesLines
2010-10-12Retire PostgreSQL 8.2 to keep with the list of three supportedjoerg6-934/+0
PostgreSQL versions in pkgsrc.
2010-10-07Changes 8.2.18:adam1-23/+25
* Use a separate interpreter for each calling SQL userid in PL/Perl and PL/Tcl * Prevent possible crashes in pg_get_expr() by disallowing it from being called with an argument that is not one of the system catalog columns it's intended to be used with * Fix Windows shared-memory allocation code * Treat exit code 128 (ERROR_WAIT_NO_CHILDREN) as non-fatal on Windows * Fix possible duplicate scans of UNION ALL member relations * Fix "cannot handle unplanned sub-select" error * Reduce PANIC to ERROR in some occasionally-reported btree failure cases, and provide additional detail in the resulting error messages * Prevent show_session_authorization() from crashing within autovacuum processes * Defend against functions returning setof record where not all the returned rows are actually of the same rowtype * Fix possible failure when hashing a pass-by-reference function result * Take care to fsync the contents of lockfiles (both "postmaster.pid" and the socket lockfile) while writing them * Avoid recursion while assigning XIDs to heavily-nested subtransactions * Fix log_line_prefix's %i escape, which could produce junk early in backend startup * Fix possible data corruption in "ALTER TABLE ... SET TABLESPACE" when archiving is enabled * Allow "CREATE DATABASE" and "ALTER DATABASE ... SET TABLESPACE" to be interrupted by query-cancel * In PL/Python, defend against null pointer results from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr * Improve "contrib/dblink"'s handling of tables containing dropped columns * Fix connection leak after "duplicate connection name" errors in "contrib/dblink" * Fix "contrib/dblink" to handle connection names longer than 62 bytes correctly
2010-05-20Changes 8.2.17:adam1-1/+3
* Enforce restrictions in plperl using an opmask applied to the whole interpreter, instead of using "Safe.pm" * Prevent PL/Tcl from executing untrustworthy code from pltcl_modules * Fix possible crash if a cache reset message is received during rebuild of a relcache entry * Do not allow an unprivileged user to reset superuser-only parameter settings * Avoid possible crash during backend shutdown if shutdown occurs when a CONTEXT addition would be made to log entries * Update pl/perl's "ppport.h" for modern Perl versions * Fix assorted memory leaks in pl/python * Prevent infinite recursion in psql when expanding a variable that refers to itself * Fix psql's \copy to not add spaces around a dot within \copy (select ...) * Ensure that "contrib/pgstattuple" functions respond to cancel interrupts promptly * Make server startup deal properly with the case that shmget() returns EINVAL for an existing shared memory segment * Avoid possible crashes in syslogger process on Windows * Deal more robustly with incomplete time zone information in the Windows registry * Update the set of known Windows time zone names * Update time zone data files to tzdata release 2010j for DST law changes in Argentina, Australian Antarctic, Bangladesh, Mexico, Morocco, Pakistan, Palestine, Russia, Syria, Tunisia; also historical corrections for Taiwan. Also, add PKST (Pakistan Summer Time) to the default set of timezone abbreviations.
2010-04-12Changes 8.2.16:adam2-3/+5
* Add new configuration parameter ssl_renegotiation_limit to control how often we do session key renegotiation for an SSL connection * Fix possible deadlock during backend startup * Fix possible crashes due to not handling errors during relcache reload cleanly * Fix possible crashes when trying to recover from a failure in subtransaction start * Fix server memory leak associated with use of savepoints and a client encoding different from server's encoding * Fix incorrect WAL data emitted during end-of-recovery cleanup of a GIST index page split * Make substring() for bit types treat any negative length as meaning "all the rest of the string" The previous coding treated only -1 that way, and would produce an invalid result value for other negative values, possibly leading to a crash (CVE-2010-0442). * Fix integer-to-bit-string conversions to handle the first fractional byte correctly when the output bit width is wider than the given integer by something other than a multiple of 8 bits * Fix some cases of pathologically slow regular expression matching * Fix the STOP WAL LOCATION entry in backup history files to report the next WAL segment's name when the end location is exactly at a segment boundary * Fix some more cases of temporary-file leakage * Improve constraint exclusion processing of boolean-variable cases, in particular make it possible to exclude a partition that has a "bool_column = false" constraint * When reading "pg_hba.conf" and related files, do not treat @something as a file inclusion request if the @ appears inside quote marks; also, never treat @ by itself as a file inclusion request * Prevent infinite loop on some platforms if a directory is named as an inclusion target in "pg_hba.conf" and related files * Fix possible infinite loop if SSL_read or SSL_write fails without setting errno This is reportedly possible with some Windows versions of openssl. * Fix psql's numericlocale option to not format strings it shouldn't in latex and troff output formats * Make psql return the correct exit status (3) when ON_ERROR_STOP and --single-transaction are both specified and an error occurs during the implied "COMMIT" * Fix plpgsql failure in one case where a composite column is set to NULL * Fix possible failure when calling PL/Perl functions from PL/PerlU or vice versa * Add volatile markings in PL/Python to avoid possible compiler-specific misbehavior * Ensure PL/Tcl initializes the Tcl interpreter fully The only known symptom of this oversight is that the Tcl clock command misbehaves if using Tcl 8.5 or later. * Prevent crash in "contrib/dblink" when too many key columns are specified to a dblink_build_sql_* function * Fix assorted crashes in "contrib/xml2" caused by sloppy memory management * Make building of "contrib/xml2" more robust on Windows * Fix race condition in Windows signal handling One known symptom of this bug is that rows in pg_listener could be dropped under heavy load. * Update time zone data files to tzdata release 2010e for DST law changes in Bangladesh, Chile, Fiji, Mexico, Paraguay, Samoa.
2010-01-22Added support for gssapi and krb5 authentication as optionsadam1-3/+3
2010-01-17Recursive PKGREVISION bump for jpeg update to 8.wiz1-1/+2
2009-12-16Changes 8.2.15:adam2-3/+3
* Protect against indirect security threats caused by index functions changing session-local state * Reject SSL certificates containing an embedded null byte in the common name (CN) field * Fix possible crash during backend-startup-time cache initialization * Prevent signals from interrupting VACUUM at unsafe times * Fix possible crash due to integer overflow in hash table size calculation * Fix very rare crash in inet/cidr comparisons * Ensure that shared tuple-level locks held by prepared transactions are not ignored * Fix premature drop of temporary files used for a cursor that is accessed within a subtransaction * Fix incorrect logic for GiST index page splits, when the split depends on a non-first column of the index * Don't error out if recycling or removing an old WAL file fails at the end of checkpoint * Ensure WAL files aren't repeatedly archived on Windows * Fix PAM password processing to be more robust * Fix processing of ownership dependencies during CREATE OR REPLACE FUNCTION * Fix bug with calling plperl from plperlu or vice versa * Fix session-lifespan memory leak when a PL/Perl function is redefined * Ensure that Perl arrays are properly converted to PostgreSQL arrays when returned by a set-returning PL/Perl function * More...
2009-12-15Recursive bump for libltdljoerg1-1/+2
2009-06-14Remove @dirrm entries from PLISTsjoerg1-26/+1
2009-05-16cleanup: replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig1-4/+4
2009-02-07Changes 8.2.12:adam1-1/+2
* Improve handling of URLs in headline() function * Improve handling of overlength headlines in headline() function * Prevent possible Assert failure or misconversion if an encoding conversion is created with the wrong conversion function for the specified pair of encodings * Fix possible Assert failure if a statement executed in PL/pgSQL is rewritten into another kind of statement, for example if an "INSERT" is rewritten into an "UPDATE" * Ensure that a snapshot is available to datatype input functions * Make it safer for SPI-using functions to be used within datatype I/O; in particular, to be used in domain check constraints * Avoid unnecessary locking of small tables in "VACUUM" * Fix a problem that made UPDATE RETURNING tableoid return zero instead of the correct OID * Fix planner misestimation of selectivity when transitive equality is applied to an outer-join clause This could result in bad plans for queries like ... from a left join b on a.a1 = b.b1 where a.a1 = 42 ... * Improve optimizer's handling of long IN lists This change avoids wasting large amounts of time on such lists when constraint exclusion is enabled. * Ensure that the contents of a holdable cursor don't depend on the contents of TOAST tables * Fix memory leak when a set-returning function is terminated without reading its whole result * Fix "contrib/dblink"'s dblink_get_result(text,bool) function * Fix possible garbage output from "contrib/sslinfo" functions * Fix configure script to properly report failure when unable to obtain linkage information for PL/Perl * Make all documentation reference pgsql-bugs and/or pgsql-hackers as appropriate, instead of the now-decommissioned pgsql-ports and pgsql-patches mailing lists * Update time zone data files to tzdata release 2009a (for Kathmandu and historical DST corrections in Switzerland, Cuba)
2008-11-04Changes 8.2.11:adam1-1/+2
* Fix GiST index corruption due to marking the wrong index entry "dead" after a deletion. This would result in index searches failing to find rows they should have found. * Fix backend crash when the client encoding cannot represent a localized error message. We have addressed similar issues before, but it would still fail if the "character has no equivalent" message itself couldn't be converted. The fix is to disable localization and send the plain ASCII error message when we detect such a situation. * Fix possible crash when deeply nested functions are invoked from a trigger. * Improve optimization of "expression" IN ("expression-list") queries. Cases in which there are query variables on the right-hand side had been handled less efficiently in 8.2.x and 8.3.x than in prior versions. The fix restores 8.1 behavior for such cases. * Fix mis-expansion of rule queries when a sub-SELECT appears in a function call in FROM, a multi-row VALUES list, or a RETURNING list. * Fix memory leak during rescan of a hashed aggregation plan. * Ensure an error is reported when a newly-defined PL/pgSQL trigger function is invoked as a normal function. * Prevent possible collision of relfilenode numbers when moving a table to another tablespace with "ALTER SET TABLESPACE". The command tried to re-use the existing filename, instead of picking one that is known unused in the destination directory. * Fix incorrect tsearch2 headline generation when single query item matches first word of text. * Fix improper display of fractional seconds in interval values when using a non-ISO datestyle in an "--enable-integer-datetimes" build. * Ensure SPI_getvalue and SPI_getbinval behave correctly when the passed tuple and tuple descriptor have different numbers of columns. * Fix ecpg's parsing of "CREATE ROLE". * Fix recent breakage of pg_ctl restart. * Ensure "pg_control" is opened in binary mode. pg_controldata and pg_resetxlog did this incorrectly, and so could fail on Windows. * Update time zone data files to tzdata release 2008i (for DST law changes in Argentina, Brazil, Mauritius, Syria)
2008-10-06Changes 8.2.10:adam1-1/+2
Bug-fix release, see HISTORY for details.
2008-06-20Changes 8.2.9:adam1-1/+4
* Make pg_get_ruledef() parenthesize negative constants (Tom) Before this fix, a negative constant in a view or rule might be dumped as, say, -42::integer, which is subtly incorrect: it should be (-42)::integer due to operator precedence rules. Usually this would make little difference, but it could interact with another recent patch to cause PostgreSQL to reject what had been a valid "SELECT DISTINCT" view query. Since this could result in pg_dump output failing to reload, it is being treated as a high-priority fix. The only released versions in which dump output is actually incorrect are 8.3.1 and 8.2.7. * Make "ALTER AGGREGATE ... OWNER TO" update pg_shdepend (Tom) This oversight could lead to problems if the aggregate was later involved in a "DROP OWNED" or "REASSIGN OWNED" operation.
2008-04-05Changes 8.2.7:adam1-2/+1
* Fix character string comparison for Windows locales that consider different character combinations as equal * Repair potential deadlock between concurrent "VACUUM FULL" operations on different system catalogs * Fix longstanding "LISTEN"/"NOTIFY" race condition * Disallow "LISTEN" and "UNLISTEN" within a prepared transaction * Disallow dropping a temporary table within a prepared transaction * Fix rare crash when an error occurs during a query using a hash index * Fix memory leaks in certain usages of set-returning functions * Fix input of datetime values for February 29 in years BC * Fix "unrecognized node type" error in some variants of "ALTER OWNER" * Ensure pg_stat_activity.waiting flag is cleared when a lock wait is aborted * Fix handling of process permissions on Windows Vista * More...
2008-02-04Add an option for LDAP authentication as explained onghen1-2/+2
http://www.postgresql.org/docs/8.3/static/auth-methods.html#AUTH-LDAP
2008-01-18Per the process outlined in revbump(1), perform a recursive revbumptnn1-1/+2
on packages that are affected by the switch from the openssl 0.9.7 branch to the 0.9.8 branch. ok jlam@
2008-01-07Changes 8.2.6:adam1-1/+3
This release contains a variety of fixes from 8.2.5, including fixes for significant security issues.
2007-09-19Changes 8.2.5:adam1-1/+2
* Prevent index corruption when a transaction inserts rows and then aborts close to the end of a concurrent "VACUUM" on the same table * Fix ALTER DOMAIN ADD CONSTRAINT for cases involving domains over domains * Make "CREATE DOMAIN ... DEFAULT NULL" work properly * Fix some planner problems with outer joins, notably poor size estimation for t1 LEFT JOIN t2 WHERE t2.col IS NULL * Allow the interval data type to accept input consisting only of milliseconds or microseconds * Allow timezone name to appear before the year in timestamp input * Fixes for GIN indexes used by "/contrib/tsearch2" * Speed up rtree index insertion * Fix excessive logging of SSL error messages * Fix logging so that log messages are never interleaved when using the syslogger process * Fix crash when log_min_error_statement logging runs out of memory * Fix incorrect handling of some foreign-key corner cases * Fix stddev_pop(numeric) and var_pop(numeric) * Prevent "REINDEX" and "CLUSTER" from failing due to attempting to process temporary tables of other sessions * Update the time zone database rules, particularly New Zealand's upcoming changes * Windows socket and semaphore improvements * Make "pg_ctl -w" work properly in Windows service mode * Fix memory allocation bug when using MIT Kerberos on Windows * Suppress timezone name (%Z) in log timestamps on Windows because of possible encoding mismatches * Require non-superusers who use "/contrib/dblink" to use only password authentication, as a security measure * Restrict "/contrib/pgstattuple" functions to superusers, for security reasons * Do not let "/contrib/intarray" try to make its GIN opclass the default (this caused problems at dump/restore)
2007-07-04Make it easier to build and install packages "unprivileged", wherejlam1-2/+5
the owner of all installed files is a non-root user. This change affects most packages that require special users or groups by making them use the specified unprivileged user and group instead. (1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to unprivileged.mk. These two variables are lists of other bmake variables that define package-specific users and groups. Packages that have user-settable variables for users and groups, e.g. apache and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP}, etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER} and ${UNPRIVILEGED_GROUP}. (2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2007-04-30Changes 8.2.4:adam1-1/+7
* Support explicit placement of the temporary-table schema within search_path, and disable searching it for functions and operators * Fix shared_preload_libraries for Windows by forcing reload in each backend * Fix to_char() so it properly upper/lower cases localized day or month names * "/contrib/tsearch2" crash fixes * Require "COMMIT PREPARED" to be executed in the same database as the transaction was prepared in * Allow "pg_dump" to do binary backups larger than two gigabytes on Windows * New traditional (Taiwan) Chinese FAQ * Prevent the statistics collector from writing to disk too frequently * Fix potential-data-corruption bug in how "VACUUM FULL" handles "UPDATE" chains * Fix bug in domains that use array types * Fix "pg_dump" so it can dump a serial column's sequence using "-t" when not also dumping the owning table * Planner fixes, including improving outer join and bitmap scan selection logic * Fix possible wrong answers or crash when a PL/pgSQL function tries to RETURN from within an EXCEPTION block * Fix PANIC during enlargement of a hash index * Fix POSIX-style timezone specs to follow new USA DST rules
2007-03-20Don't remove directory not created (missing) in PostgreSQL installation.jlam1-2/+1
2006-12-09Changes 8.2.0:adam6-0/+934
* Query language enhancements including "INSERT/UPDATE/DELETE RETURNING", multirow VALUES lists, and optional target-table alias in "UPDATE"/"DELETE" * Index creation without blocking concurrent "INSERT"/"UPDATE"/"DELETE" operations * Many query optimization improvements, including support for reordering outer joins * Improved sorting performance with lower memory usage * More efficient locking with better concurrency * More efficient vacuuming * Easier administration of warm standby servers * New FILLFACTOR support for tables and indexes * Monitoring, logging, and performance tuning additions * More control over creating and dropping objects * Table inheritance relationships can be defined for and removed from pre-existing tables * "COPY TO" can copy the output of an arbitrary "SELECT" statement * Array improvements, including nulls in arrays * Aggregate-function improvements, including multiple-input aggregates and SQL:2003 statistical functions * Many "contrib/" improvements