summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2006-05-21Modify libpq's string-escaping routines to be aware of encoding considerationsTom Lane
and standard_conforming_strings. The encoding changes are needed for proper escaping in multibyte encodings, as per the SQL-injection vulnerabilities noted in CVE-2006-2313 and CVE-2006-2314. Concurrent fixes are being applied to the server to ensure that it rejects queries that may have been corrupted by attempted SQL injection, but this merely guarantees that unpatched clients will fail rather than allow injection. An actual fix requires changing the client-side code. While at it we have also fixed these routines to understand about standard_conforming_strings, so that the upcoming changeover to SQL-spec string syntax can be somewhat transparent to client code. Since the existing API of PQescapeString and PQescapeBytea provides no way to inform them which settings are in use, these functions are now deprecated in favor of new functions PQescapeStringConn and PQescapeByteaConn. The new functions take the PGconn to which the string will be sent as an additional parameter, and look inside the connection structure to determine what to do. So as to provide some functionality for clients using the old functions, libpq stores the latest encoding and standard_conforming_strings values received from the backend in static variables, and the old functions consult these variables. This will work reliably in clients using only one Postgres connection at a time, or even multiple connections if they all use the same encoding and string syntax settings; which should cover many practical scenarios. Clients that use homebrew escaping methods, such as PHP's addslashes() function or even hardwired regexp substitution, will require extra effort to fix :-(. It is strongly recommended that such code be replaced by use of PQescapeStringConn/PQescapeByteaConn if at all feasible.
2006-05-21Add a new GUC parameter backslash_quote, which determines whether the SQLTom Lane
parser will allow "\'" to be used to represent a literal quote mark. The "\'" representation has been deprecated for some time in favor of the SQL-standard representation "''" (two single quote marks), but it has been used often enough that just disallowing it immediately won't do. Hence backslash_quote allows the settings "on", "off", and "safe_encoding", the last meaning to allow "\'" only if client_encoding is a valid server encoding. That is now the default, and the reason is that in encodings such as SJIS that allow 0x5c (ASCII backslash) to be the last byte of a multibyte character, accepting "\'" allows SQL-injection attacks as per CVE-2006-2314 (further details will be published after release). The "on" setting is available for backward compatibility, but it must not be used with clients that are exposed to untrusted input. Thanks to Akio Ishida and Yasuo Ohgaki for identifying this security issue.
2006-02-12Update release notes.Tom Lane
2006-02-12Update FAQ latest versionBruce Momjian
2006-02-12Update release notes for 2006-02-14 releaseBruce Momjian
2006-01-06Release-note updates and copy editing.REL7_3_13Tom Lane
2006-01-05New pgcrypto item wording.Bruce Momjian
2006-01-05Wording improvements.Bruce Momjian
2006-01-05Improve markup.Bruce Momjian
2006-01-05*** empty log message ***Bruce Momjian
2006-01-05Stamp release 7.3.13.Bruce Momjian
2005-12-09Add release notes for back branches (7.3 and up).Tom Lane
Also minor improvements to 8.1.1 release notes.
2005-11-16Properly document return value of strpos().Bruce Momjian
2005-10-03Update release notes for pending back-branch releases.Tom Lane
2005-05-09Update release notes for upcoming re-releases.REL7_3_10Tom Lane
2005-05-05Stamp release 7.3.10.Tom Lane
2005-05-03Alter the signature for encoding conversion functions to declare theTom Lane
output area as INTERNAL not CSTRING. This is to prevent people from calling the functions by hand. This is a permanent solution for the back branches but I hope it is just a stopgap for HEAD.
2005-01-30Recommend security@postgresql.org as the contact point for security-related ↵REL7_3_9Tom Lane
bugs.
2005-01-30Stamp release 7.3.9.Tom Lane
2004-10-22Stamp release 7.3.8.REL7_3_8Tom Lane
2004-08-15Stamp 7.3.7.Tom Lane
2004-03-02Update release notes for 7.3.6.Tom Lane
2004-03-02Replace unportable use of /dev/stdin with lynx's -stdin switch.Tom Lane
2003-12-02Update release notes for 7.3.5.Tom Lane
2003-11-30Make PQescapeBytea and byteaout consistent with each other, andJoe Conway
octal escape all octets outside the range 0x20 to 0x7e. This fixes the problem pointed out by Sergey Yatskevich here: http://archives.postgresql.org/pgsql-bugs/2003-11/msg00140.php
2003-07-24Add Hungarian/Turkish FAQ's to 7.3.4.Bruce Momjian
2003-07-24Add to 7.3.4 release notes:Bruce Momjian
* Repair breakage in timestamp-to-date conversion for dates before 2000
2003-07-23New WAL fix release text is:Bruce Momjian
Prevent rare possibility of server startup failure (Tom)
2003-07-23Update all FAQ's for 7.3.4.Bruce Momjian
2003-07-23Stamp 7.3.4 release.Bruce Momjian
2003-05-26Fix misstatement in release-notes item.Tom Lane
2003-05-22Update release history for impending 7.3.3 release.Tom Lane
2003-04-04Back-patch changes to validate page header fields immediately afterTom Lane
reading in any page. Also back-port the zero_damaged_pages boolean that determines what to do about it.
2003-02-14Update FAQ's in head and 7.3.X.Bruce Momjian
2003-02-13> > They work the same as table constraints with in-line declaration (noBruce Momjian
> > comma). > > OK. But the documentation implies there is a comma, so it should probably > get chenged then. Yes, it should. (attached) [ Backpatched to 7.3.X too.] Rod Taylor
2003-02-03Add mention of CURRENT_SCHEMA for object creation.REL7_3_2Bruce Momjian
2003-02-02Update release history for 7.3.2.Tom Lane
2003-02-01Remove restriction that cast functions cannot be volatile. ThisTom Lane
restriction was debatable to begin with, but it has now become obvious that it breaks forward-porting of user-defined types; contrib/lo being the most salient example.
2003-01-30Fix regression in .pgpass support. From Neil Conway.Tom Lane
2003-01-29Update release history for 7.2.4.Tom Lane
2003-01-29Repair array subscript overrun identified by Yichen Xie. Reduce theTom Lane
value of MAX_TIME_PRECISION in floating-point-timestamp-storage case from 13 to 10, which is as much as time_out is actually willing to print. (The alternative of increasing the number of digits we are willing to print looks risky; we might find ourselves printing roundoff garbage.)
2003-01-23Update 'Mathematical Functions' table to reflect 7.3 addition of float8Tom Lane
forms of ceil(), floor(), sign(). Back-patch this and other recent doc fixes in this file to the 7.3 branch.
2003-01-21Fix coredump problem in plpgsql's RETURN NEXT. When a SELECT INTOTom Lane
that's selecting into a RECORD variable returns zero rows, make it assign an all-nulls row to the RECORD; this is consistent with what happens when the SELECT INTO target is not a RECORD. In support of this, tweak the SPI code so that a valid tuple descriptor is returned even when a SPI select returns no rows.
2003-01-11Fix capitalization.Bruce Momjian
2003-01-11> > This patch improves the documentation for the shared_buffers GUC param.Bruce Momjian
> > I'd suggest that the runtime.sgml description explicitly say "values of > at least a few thousand are recommended for production installations". Neil Conway
2003-01-07Backpatch extra slash removal into 7.3.X. HEAD already has it.Bruce Momjian
2003-01-07Fix doc chmod .pgpass line in 7.3.X. Head already fixed.Bruce Momjian
2002-12-27Trivial patch to increase max_fsm_pages as per earlier discussion.Bruce Momjian
Philip Warner
2002-12-20Update 7.3.1 to give proper attribution to pg_dump item.Bruce Momjian
2002-12-18Fix release notes and installation instructions for 7.3.1 release.Peter Eisentraut