1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-26 23:43:30 +03:00
Commit Graph

3606 Commits

Author SHA1 Message Date
Tom Lane
e675978ff5 Stamp release 7.3.15. 2006-05-21 21:54:31 +00:00
Tom Lane
78e237e1e3 Update release notes for upcoming releases. 2006-05-21 21:50:14 +00:00
Bruce Momjian
502b68876c Stamp releases 7.3.15, 7.4.13, and 8.0.8. 2006-05-21 20:28:22 +00:00
Tom Lane
e6f43f7786 Modify libpq's string-escaping routines to be aware of encoding considerations
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-21 20:20:48 +00:00
Tom Lane
16e77740ea Add a new GUC parameter backslash_quote, which determines whether the SQL
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-05-21 20:12:20 +00:00
Tom Lane
ee7c1a3fd4 Update release notes. 2006-02-12 22:36:16 +00:00
Bruce Momjian
da91fde3e8 Update FAQ latest version 2006-02-12 18:50:07 +00:00
Bruce Momjian
c551fd362e Stamp releases for 2006-02-14 release 2006-02-12 18:41:22 +00:00
Bruce Momjian
db4534e31f Update release notes for 2006-02-14 release 2006-02-12 18:23:00 +00:00
Tom Lane
751c4818bf Release-note updates and copy editing. 2006-01-06 03:00:46 +00:00
Bruce Momjian
a93eb7cef2 New pgcrypto item wording. 2006-01-05 15:17:08 +00:00
Bruce Momjian
e6e13b5da9 Wording improvements. 2006-01-05 15:11:07 +00:00
Bruce Momjian
7251950412 Improve markup. 2006-01-05 14:52:40 +00:00
Bruce Momjian
00214b611c *** empty log message *** 2006-01-05 05:21:40 +00:00
Bruce Momjian
44a3ad2ab0 Stamp release 7.3.13. 2006-01-05 03:59:21 +00:00
Tom Lane
fbb687fa1b Stamp 7.3.12. 2005-12-09 20:56:45 +00:00
Tom Lane
52d70a3088 Add release notes for back branches (7.3 and up).
Also minor improvements to 8.1.1 release notes.
2005-12-09 20:41:11 +00:00
Bruce Momjian
62b91ec937 Properly document return value of strpos(). 2005-11-16 03:58:08 +00:00
Tom Lane
ae049f191d Stamp release 7.3.11. 2005-10-03 17:24:27 +00:00
Tom Lane
69fbf4816b Update release notes for pending back-branch releases. 2005-10-03 16:05:29 +00:00
Tom Lane
e5921b3230 Update release notes for upcoming re-releases. 2005-05-09 00:10:35 +00:00
Tom Lane
07e3879c95 Stamp release 7.3.10. 2005-05-05 20:09:12 +00:00
Tom Lane
ecbc6dd3e9 Alter the signature for encoding conversion functions to declare the
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-05-03 19:18:48 +00:00
Tom Lane
d40cda00f5 Recommend security@postgresql.org as the contact point for security-related bugs. 2005-01-30 21:32:20 +00:00
Tom Lane
7929303d61 Stamp release 7.3.9. 2005-01-30 20:08:15 +00:00
Tom Lane
42a8068b5c Stamp release 7.3.8. 2004-10-22 00:27:05 +00:00
Tom Lane
1bc489bc9c Stamp 7.3.7. 2004-08-15 00:52:02 +00:00
Tom Lane
2d558b2baa Brand 7.3.6. 2004-03-02 00:44:55 +00:00
Tom Lane
040f11db24 Update release notes for 7.3.6. 2004-03-02 00:39:09 +00:00
Tom Lane
d367707827 Replace unportable use of /dev/stdin with lynx's -stdin switch. 2004-03-02 00:03:15 +00:00
Tom Lane
7af352f103 Brand 7.3.5. 2003-12-02 16:26:00 +00:00
Tom Lane
3299a092e2 Update release notes for 7.3.5. 2003-12-02 16:15:47 +00:00
Joe Conway
8582f21afd Make PQescapeBytea and byteaout consistent with each other, and
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-11-30 20:52:37 +00:00
Bruce Momjian
5a8e537441 Add Hungarian/Turkish FAQ's to 7.3.4. 2003-07-24 00:53:57 +00:00
Bruce Momjian
0878a5e277 Add to 7.3.4 release notes:
* Repair breakage in timestamp-to-date conversion for dates before 2000
2003-07-24 00:44:24 +00:00
Bruce Momjian
97dcee285b New WAL fix release text is:
Prevent rare possibility of server startup failure (Tom)
2003-07-23 22:59:39 +00:00
Bruce Momjian
79b0da6e7c Update all FAQ's for 7.3.4. 2003-07-23 04:13:13 +00:00
Bruce Momjian
1ecc0fdb00 Stamp 7.3.4 release. 2003-07-23 04:10:16 +00:00
Tom Lane
5218f77c52 Fix misstatement in release-notes item. 2003-05-26 18:58:36 +00:00
Tom Lane
9bc3438b03 Brand 7.3.3. 2003-05-22 20:17:24 +00:00
Tom Lane
2ff6e92f46 Update release history for impending 7.3.3 release. 2003-05-22 18:32:01 +00:00
Tom Lane
8fe728b009 Back-patch changes to validate page header fields immediately after
reading in any page.  Also back-port the zero_damaged_pages boolean
that determines what to do about it.
2003-04-04 00:32:57 +00:00
Bruce Momjian
56650f3fda Update FAQ's in head and 7.3.X. 2003-02-14 14:05:52 +00:00
Bruce Momjian
cc3c67784a > > They work the same as table constraints with in-line declaration (no
> > 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-13 05:32:58 +00:00
Bruce Momjian
caa72ad57f Add mention of CURRENT_SCHEMA for object creation. 2003-02-03 15:57:03 +00:00
Tom Lane
0f36c544d9 Brand 7.3.2. 2003-02-02 19:56:46 +00:00
Tom Lane
84fdea1be7 Update release history for 7.3.2. 2003-02-02 19:48:30 +00:00
Tom Lane
d77c6396bb Remove restriction that cast functions cannot be volatile. This
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-02-01 22:09:41 +00:00
Tom Lane
5c508b7da1 Fix regression in .pgpass support. From Neil Conway. 2003-01-30 19:50:07 +00:00
Tom Lane
cc16e49789 Update release history for 7.2.4. 2003-01-29 22:13:56 +00:00