Commit Graph

8353 Commits

Author SHA1 Message Date
Peter Eisentraut
4d20da794e Backpatch some blatant spelling mistakes 2010-08-17 04:49:32 +00:00
Robert Haas
38095bd06d Fix one more incorrect errno definition in the ECPG manual.
Again, back-patch all the way to 7.4.
2010-08-11 19:03:46 +00:00
Robert Haas
d6e900e5b2 Fix incorrect errno definitions in ECPG manual.
ecpgerrno.h hasn't materially changed since PostgreSQL 7.4, so this has
been wrong for a very long time.  Back-patch all the way.

Satoshi Nagayasu
2010-08-11 18:52:33 +00:00
Peter Eisentraut
5f836f9acb Fix indexterm spelling 2010-08-06 20:08:59 +00:00
Peter Eisentraut
3c93b54b93 Spelling fix 2010-07-27 18:55:44 +00:00
Peter Eisentraut
0aab3c0c8d Fix grammar
backpatched to 8.1
2010-07-26 20:29:35 +00:00
Tom Lane
b1a33e6719 Fix assorted misstatements and poor wording in the descriptions of the I/O
formats for geometric types.  Per bug #5536 from Jon Strait, and my own
testing.

Back-patch to all supported branches, since this doco has been wrong right
along -- we certainly haven't changed the I/O behavior of these types in
many years.
2010-07-03 04:03:21 +00:00
Robert Haas
8ce3f26fab Deprecate the use of => as an operator name.
In HEAD, emit a warning when an operator named => is defined.
In both HEAD and the backbranches (except in 8.2, where contrib
modules do not have documentation), document that hstore's text =>
text operator may be removed in a future release, and encourage the
use of the hstore(text, text) function instead.  This function only
exists in HEAD (previously, it was called tconvert), so backpatch
it back to 8.2, when hstore was added.  Per discussion.
2010-06-22 11:36:36 +00:00
Robert Haas
c261e08ef3 Fix longstanding typo in V1 calling conventions documentation.
Erik Rijkers
2010-05-16 03:56:19 +00:00
Tom Lane
0194b7f597 Improve documentation of pg_restore's -l and -L switches to point out their
interactions with filtering switches, such as -n and -t.  Per a complaint
from Russell Smith.
2010-05-15 18:11:19 +00:00
Marc G. Fournier
c70af4d2fc tag 8.3.11 2010-05-14 03:27:08 +00:00
Tom Lane
405f02b083 Update release notes with security issues.
Security: CVE-2010-1169, CVE-2010-1170
2010-05-13 21:27:15 +00:00
Tom Lane
36b4b365f7 Use an entity instead of non-ASCII letter. Thom Brown 2010-05-13 19:16:27 +00:00
Tom Lane
6a358de1f9 Prevent PL/Tcl from loading the "unknown" module from pltcl_modules unless
that is a regular table or view owned by a superuser.  This prevents a
trojan horse attack whereby any unprivileged SQL user could create such a
table and insert code into it that would then get executed in other users'
sessions whenever they call pltcl functions.

Worse yet, because the code was automatically loaded into both the "normal"
and "safe" interpreters at first use, the attacker could execute unrestricted
Tcl code in the "normal" interpreter without there being any pltclu functions
anywhere, or indeed anyone else using pltcl at all: installing pltcl is
sufficient to open the hole.  Change the initialization logic so that the
"unknown" code is only loaded into an interpreter when the interpreter is
first really used.  (That doesn't add any additional security in this
particular context, but it seems a prudent change, and anyway the former
behavior violated the principle of least astonishment.)

Security: CVE-2010-1170
2010-05-13 18:29:25 +00:00
Andrew Dunstan
58dd2648ea Abandon the use of Perl's Safe.pm to enforce restrictions in plperl, as it is
fundamentally insecure. Instead apply an opmask to the whole interpreter that
imposes restrictions on unsafe operations. These restrictions are much harder
to subvert than is Safe.pm, since there is no container to be broken out of.
Backported to release 7.4.

In releases 7.4, 8.0 and 8.1 this also includes the necessary backporting of
the two interpreters model for plperl and plperlu adopted in release 8.2.

In versions 8.0 and up, the use of Perl's POSIX module to undo its locale
mangling on Windows has become insecure with these changes, so it is
replaced by our own routine, which is also faster.

Nice side effects of the changes include that it is now possible to use perl's
"strict" pragma in a natural way in plperl, and that perl's $a and
$b variables now work as expected in sort routines, and that function
compilation is significantly faster.

Tim Bunce and Andrew Dunstan, with reviews from Alex Hunsaker and
Alexey Klyukin.

Security: CVE-2010-1169
2010-05-13 16:42:51 +00:00
Magnus Hagander
1f34a7207e Fix some spelling errors.
Thom Brown
2010-05-13 14:16:51 +00:00
Tom Lane
060973808c Preliminary release notes for releases 8.4.4, 8.3.11, 8.2.17, 8.1.21, 8.0.25,
7.4.29.
2010-05-12 23:27:36 +00:00
Heikki Linnakangas
7e23e15967 Fix incorrect parameter tag in docs, spotted by KOIZUMI Satoru. 2010-05-05 15:14:24 +00:00
Robert Haas
750503cea5 Provide better guidance for adjusting shared_buffers.
This change was previously committed to HEAD, but the consensus seems to be
in favor of back-patching it.  I'm only backpatching as far as 8.3.X, however,
because it's not clear to me to what degree this advice applies to older
branches, and in any case our first advice to anyone attempting to tune those
versions is likely to be "upgrade".
2010-04-19 00:00:22 +00:00
Peter Eisentraut
02915f614d IP port -> TCP port
backpatched to 8.1, where this first appeared
2010-04-15 20:47:06 +00:00
Magnus Hagander
62056d9685 Typo fixes.
Fujii Masao
2010-03-17 18:04:25 +00:00
Marc G. Fournier
e842325ac1 tag 8.3.10 2010-03-12 03:40:31 +00:00
Tom Lane
2ecea6f450 Preliminary release notes for releases 8.4.3, 8.3.10, 8.2.16, 8.1.20, 8.0.24,
7.4.28.
2010-03-10 01:58:38 +00:00
Magnus Hagander
266c5e4d4f Add missing space in example.
Tim Landscheidt
2010-03-08 12:39:42 +00:00
Magnus Hagander
0a1ec273a0 Add configuration parameter ssl_renegotiation_limit to control
how often we do SSL session key renegotiation. Can be set to
0 to disable renegotiation completely, which is required if
a broken SSL library is used (broken patches to CVE-2009-3555
a known cause) or when using a client library that can't do
renegotiation.
2010-02-25 13:26:23 +00:00
Heikki Linnakangas
a085a6a77c Add a note to the documentation of pg_standby that it's important that
the postgres process has permissions to delete the trigger file, per
suggestion by Mason Hale.

Also fix pg_standby to do a more predictable exit(200) instead of the
current exit(-1) when the unlink of the trigger file fails anyway.

This only affects 8.3 branch. Older versions didn't have pg_standby,
and in 8.4 upwards pg_standby is no longer responsible for deleting the
trigger file; it's supposed to be done by recovery_end_command instead.
2010-02-05 11:08:02 +00:00
Marc G. Fournier
f25013104a tag 8.3.9 2009-12-10 03:02:07 +00:00
Tom Lane
8e692a9fb2 Update release notes for releases 8.4.2, 8.3.9, 8.2.15, 8.1.19, 8.0.23,
7.4.27.
2009-12-10 00:31:34 +00:00
Peter Eisentraut
602878d5ab Fix syntax in extract() examples
Author: Erik Rijkers <er@xs4all.nl>
2009-11-24 19:20:53 +00:00
Tom Lane
81f7305211 Fix erroneous handling of shared dependencies (ie dependencies on roles)
in CREATE OR REPLACE FUNCTION.  The original code would update pg_shdepend
as if a new function was being created, even if it wasn't, with two bad
consequences: pg_shdepend might record the wrong owner for the function,
and any dependencies for roles mentioned in the function's ACL would be lost.
The fix is very easy: just don't touch pg_shdepend at all when doing a
function replacement.

Also update the CREATE FUNCTION reference page, which never explained
exactly what changes and doesn't change in a function replacement.
In passing, fix the CREATE VIEW reference page similarly; there's no
code bug there, but the docs didn't say what happens.
2009-10-02 18:13:19 +00:00
Marc G. Fournier
e01fdca9f7 Tag 8.3.8 2009-09-04 00:53:29 +00:00
Tom Lane
7e2024be10 Final updates of release notes for 8.4.1, 8.3.8, 8.2.14, 8.1.18, 8.0.22,
7.4.26.
2009-09-03 22:14:07 +00:00
Tom Lane
5927d9f642 Make LOAD of an already-loaded library into a no-op, instead of attempting
to unload and re-load the library.

The difficulty with unloading a library is that we haven't defined safe
protocols for doing so.  In particular, there's no safe mechanism for
getting out of a "hook" function pointer unless libraries are unloaded
in reverse order of loading.  And there's no mechanism at all for undefining
a custom GUC variable, so GUC would be left with a pointer to an old value
that might or might not still be valid, and very possibly wouldn't be in
the same place anymore.

While the unload and reload behavior had some usefulness in easing
development of new loadable libraries, it's of no use whatever to normal
users, so just disabling it isn't giving up that much.  Someday we might
care to expend the effort to develop safe unload protocols; but even if
we did, there'd be little certainty that every third-party loadable module
was following them, so some security restrictions would still be needed.

Back-patch to 8.2; before that, LOAD was superuser-only anyway.

Security: unprivileged users could crash backend.  CVE not assigned yet
2009-09-03 22:11:22 +00:00
Bruce Momjian
143373bee5 Update release notes for 7.4.26, 8.0.22, 8.1.18, 8.2.14, 8.3.8, 8.4.1. 2009-08-27 01:27:24 +00:00
Tom Lane
2792c59a82 Fix imprecise documentation of random(): it never returns 1.0.
This was changed in 8.2 but the documentation was not corrected.
Per gripe from Sam Mason.
2009-08-16 19:55:38 +00:00
Bruce Momjian
29e6cedad0 Remove tabs from SGML. 2009-08-15 20:23:20 +00:00
Andrew Dunstan
bbe2168e65 Re-add documentation for --no-readline option of psql, mistakenly removed a decade ago. Backpatch to release 7.4. 2009-08-10 02:39:24 +00:00
Tom Lane
252d2b1e4e Split the release notes into a separate file for each (active) major branch,
as per my recent proposal.  release.sgml itself is now just a stub that should
change rarely; ideally, only once per major release to add a new include line.
Most editing work will occur in the release-N.N.sgml files.  To update a back
branch for a minor release, just copy the appropriate release-N.N.sgml
file(s) into the back branch.

This commit doesn't change the end-product documentation at all, only the
source layout.  However, it makes it easy to start omitting ancient information
from newer branches' documentation, should we ever decide to do that.
2009-05-02 20:17:33 +00:00
Tom Lane
f3676bcee5 Fix textsearch documentation examples to not recommend concatenating separate
fields without putting a space between.  Per gripe from Rick Schumeyer.
2009-04-19 20:36:13 +00:00
Alvaro Herrera
781e1557e1 Update URL to Python bug tracker. Backpatch to 8.3; doesn't seem worthy of
further backpatch.
2009-03-30 16:16:13 +00:00
Tom Lane
6cc0e006ee Fix contrib/hstore to throw an error for keys or values that don't fit in its
data structure, rather than silently truncating them.  Andrew Gierth
2009-03-15 22:05:25 +00:00
Marc G. Fournier
c87a4d31f4 tag 8.3.7 2009-03-13 02:08:41 +00:00
Tom Lane
894fc06d63 Update back-branch release notes. 2009-03-12 22:35:57 +00:00
Marc G. Fournier
5298d511ee tag for 8.3.6 2009-01-30 02:59:29 +00:00
Tom Lane
fb85c50390 Update back-branch release notes. 2009-01-30 00:37:42 +00:00
Bruce Momjian
879d780f65 Document that SELECT FOR UPDATE/SHARE with ORDER BY might return results
in the incorrect order, per bug 4593.  Backpatch to 8.3.X.
2009-01-22 22:56:54 +00:00
Heikki Linnakangas
3dc19e440b Change explanation of pg_switch_xlog()'s return value to match code. 2009-01-15 18:23:17 +00:00
Bruce Momjian
74216bc8c8 Update release notes for 8.3.5, 8.2.11, and 8.1.15 to mention the need
to reindex GiST indexes:

	If you were running a previous 8.X.X release, REINDEX all GiST
	indexes after the upgrade.
2009-01-09 01:47:14 +00:00
Tom Lane
72a3bc4a1d Remove references to pgsql-ports and pgsql-patches mailing lists from
various documentation, since those lists are now dead/deprecated.
Point to pgsql-bugs and/or pgsql-hackers as appropriate.
2009-01-06 17:27:19 +00:00
Magnus Hagander
f6bab28488 Clearify how processes are started by autovacuum, and what the effect
of autovacuum_max_workers parameter is.

Per discussion with Alvaro.
2008-12-08 20:31:00 +00:00