Commit Graph

7401 Commits

Author SHA1 Message Date
Tom Lane fa1369a6b9 Stamp 8.2.23.
Hail and farewell, 8.2.
2011-12-01 16:59:19 -05:00
Tom Lane 0564f628fd Update information about configuring SysV IPC parameters on NetBSD.
Per Emmanuel Kasper, sysctl works fine as of NetBSD 5.0.
2011-11-30 20:55:22 -05:00
Tom Lane d3050ded99 Draft release notes for 9.1.2, 9.0.6, 8.4.10, 8.3.17, 8.2.23. 2011-11-30 19:35:10 -05:00
Tom Lane 7a0c5845bd Improve documentation of psql's \q command.
The documentation neglected to explain its behavior in a script file
(it only ends execution of the script, not psql as a whole), and failed
to mention the long form \quit either.
2011-10-12 14:00:23 -04:00
Tom Lane d08aa1937f Stamp 8.2.22. 2011-09-22 18:09:27 -04:00
Tom Lane 3a15399278 Update release notes for 9.1.1, 9.0.5, 8.4.9, 8.3.16, 8.2.22.
Man, we fixed a lotta bugs since April.
2011-09-22 17:40:39 -04:00
Tom Lane 1426abb516 Update type-conversion documentation for long-ago changes.
This example wasn't updated when we changed the behavior of bpcharlen()
in 8.0, nor when we changed the number of parameters taken by the bpchar()
cast function in 7.3.  Per report from lsliang.
2011-09-06 12:15:23 -04:00
Tom Lane 66cab2b600 Fix missed use of "cp -i" in an example, per Fujii Masao.
Also be more careful about markup: use & not just &.
2011-06-20 16:27:51 -04:00
Tom Lane 26996cf78e Don't use "cp -i" in the example WAL archive_command.
This is a dangerous example to provide because on machines with GNU cp,
it will silently do the wrong thing and risk archive corruption.  Worse,
during the 9.0 cycle somebody "improved" the discussion by removing the
warning that used to be there about that, and instead leaving the
impression that the command would work as desired on most Unixen.
It doesn't.  Try to rectify the damage by providing an example that is safe
most everywhere, and then noting that you can try cp -i if you want but
you'd better test that.

In back-patching this to all supported branches, I also added an example
command for Windows, which wasn't provided before 9.0.
2011-06-17 19:13:25 -04:00
Peter Eisentraut e5b50d0ffb Fix documentation of information_schema.element_types
The documentation of the columns collection_type_identifier and
dtd_identifier was wrong.  This effectively reverts commits
8e1ccad519 and
57352df66d and updates the name
array_type_identifier (the name in SQL:1999) to
collection_type_identifier.

closes bug #5926
2011-06-09 07:38:14 +03:00
Peter Eisentraut b9544a070b ECPG documentation fixes
Marc Cousin
2011-06-04 22:53:30 +03:00
Tom Lane 08779dc699 Protect GIST logic that assumes penalty values can't be negative.
Apparently sane-looking penalty code might return small negative values,
for example because of roundoff error.  This will confuse places like
gistchoose().  Prevent problems by clamping negative penalty values to
zero.  (Just to be really sure, I also made it force NaNs to zero.)
Back-patch to all supported branches.

Alexander Korotkov
2011-05-31 17:54:11 -04:00
Heikki Linnakangas 1aa24e2024 The arguments to pg_ctl kill are not optional - remove brackets in the docs.
Fujii Masao
2011-04-28 12:57:14 +03:00
Marc G. Fournier 1e289824b6 Tag 8.2.21. 2011-04-15 00:19:01 -03:00
Tom Lane 3d2835ec6a Update release notes for releases 9.0.4, 8.4.8, 8.3.15, and 8.2.21. 2011-04-14 15:51:55 -04:00
Robert Haas 93acf043b2 Correct "characters" to "bytes" in createdb docs.
Susanne Ebrecht
2011-03-27 21:29:32 -04:00
Tom Lane 63fe94d165 Improve user-defined-aggregates documentation.
On closer inspection, that two-element initcond value seems to have been
a little white lie to avoid explaining the full behavior of float8_accum.
But if people are going to expect the examples to be exactly correct,
I suppose we'd better explain.  Per comment from Thom Brown.
2011-03-23 16:57:41 -04:00
Tom Lane 24cdee8606 Fix ancient typo in user-defined-aggregates documentation.
The description of the initcond value for the built-in avg(float8)
aggregate has been wrong since it was written.  Noted by Disc Magnet.
2011-03-23 12:34:16 -04:00
Marc G. Fournier f62f223b8e Tag 8.2.20 2011-01-27 22:25:42 -04:00
Tom Lane f6ba576114 Update release notes.
Security: CVE-2010-4015
2011-01-27 17:47:32 -05:00
Tom Lane 85dfc488be Update release notes for releases 9.0.3, 8.4.7, 8.3.14, and 8.2.20. 2011-01-27 16:10:15 -05:00
Magnus Hagander 10de92f87f Document unavailable parameters in some configurations
Add a note to user-facing parameters that can be removed completely
(and not just empty) by #ifdef's depending on build configuration.
2010-12-18 16:33:43 +01:00
Marc G. Fournier 4d836f34b5 Tag 8.2.19. 2010-12-13 23:03:33 -04:00
Tom Lane 9410262c57 Update release notes for releases 9.0.2, 8.4.6, 8.3.13, 8.2.19, and 8.1.23. 2010-12-13 20:23:41 -05:00
Tom Lane 8b77981f89 Force default wal_sync_method to be fdatasync on Linux.
Recent versions of the Linux system header files cause xlogdefs.h to
believe that open_datasync should be the default sync method, whereas
formerly fdatasync was the default on Linux.  open_datasync is a bad
choice, first because it doesn't actually outperform fdatasync (in fact
the reverse), and second because we try to use O_DIRECT with it, causing
failures on certain filesystems (e.g., ext4 with data=journal option).
This part of the patch is largely per a proposal from Marti Raudsepp.
More extensive changes are likely to follow in HEAD, but this is as much
change as we want to back-patch.

Also clean up confusing code and incorrect documentation surrounding the
fsync_writethrough option.  Those changes shouldn't result in any actual
behavioral change, but I chose to back-patch them anyway to keep the
branches looking similar in this area.

In 9.0 and HEAD, also do some copy-editing on the WAL Reliability
documentation section.

Back-patch to all supported branches, since any of them might get used
on modern Linux versions.
2010-12-08 20:01:29 -05:00
Robert Haas 469a17fd5c Warn that views can be safely used to hide columns, but not rows. 2010-10-08 09:16:41 -04:00
Marc G. Fournier 61318f38c0 Tag 8.2.18 2010-10-01 10:37:09 -03:00
Tom Lane 7203065dc9 Use a separate interpreter for each calling SQL userid in plperl and pltcl.
There are numerous methods by which a Perl or Tcl function can subvert
the behavior of another such function executed later; for example, by
redefining standard functions or operators called by the target function.
If the target function is SECURITY DEFINER, or is called by such a
function, this means that any ordinary SQL user with Perl or Tcl language
usage rights can do essentially anything with the privileges of the target
function's owner.

To close this security hole, create a separate Perl or Tcl interpreter for
each SQL userid under which plperl or pltcl functions are executed within
a session.  However, all plperlu or pltclu functions run within a session
still share a single interpreter, since they all execute at the trust
level of a database superuser anyway.

Note: this change results in a functionality loss when libperl has been
built without the "multiplicity" option: it's no longer possible to call
plperl functions under different userids in one session, since such a
libperl can't support multiple interpreters in one process.  However, such
a libperl already failed to support concurrent use of plperl and plperlu,
so it's likely that few people use such versions with Postgres.

Security: CVE-2010-3433
2010-09-30 17:21:30 -04:00
Tom Lane a3f1f0d90e Update release notes for releases 9.0.1, 8.4.5, 8.3.12, 8.2.18, 8.1.22,
8.0.26, and 7.4.30.
2010-09-30 14:27:46 -04:00
Tom Lane 5a932fd521 Do some copy-editing on the Git usage docs. 2010-09-22 20:22:51 -04:00
Tom Lane 2972f83be2 Fix documentation gitignore for pre-9.0 doc build methods. 2010-09-22 18:26:24 -04:00
Magnus Hagander adbe80f7ae Remove anonymous cvs instructions, and replace them with instructions
for git. Change other references from cvs to git as well.
2010-09-22 20:10:39 +02:00
Magnus Hagander 1f2378b1ea Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:14 +02:00
Tom Lane e8254980df Remove obsolete remark that PQprepare() is more flexible than PREPARE.
Spotted by Dmitriy Igrishin.  Back-patch to 8.2, which is when the PREPARE
statement was improved to allow parameter types to be omitted.
2010-08-29 15:19:35 +00:00
Robert Haas 7f325c609a Fix one more incorrect errno definition in the ECPG manual.
Again, back-patch all the way to 7.4.
2010-08-11 19:03:56 +00:00
Robert Haas 385c84c0b2 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:43 +00:00
Peter Eisentraut 415cf7dc86 Fix indexterm spelling 2010-08-06 20:08:58 +00:00
Peter Eisentraut 9bdd3b82e6 Fix grammar
backpatched to 8.1
2010-07-26 20:29:56 +00:00
Tom Lane 03795ffbc8 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:27 +00:00
Robert Haas 23336cf49c Fix longstanding typo in V1 calling conventions documentation.
Erik Rijkers
2010-05-16 03:56:11 +00:00
Tom Lane 0c72b59bb8 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:25 +00:00
Marc G. Fournier 868de682e2 tag 8.2.17 2010-05-14 03:32:06 +00:00
Tom Lane 05b75b9624 Update release notes with security issues.
Security: CVE-2010-1169, CVE-2010-1170
2010-05-13 21:27:22 +00:00
Tom Lane 4b1558a060 Use an entity instead of non-ASCII letter. Thom Brown 2010-05-13 19:16:32 +00:00
Tom Lane 650d950efc 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:31 +00:00
Andrew Dunstan 64a42a2af8 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:43:14 +00:00
Magnus Hagander a68abcaacc Fix some spelling errors.
Thom Brown
2010-05-13 14:16:45 +00:00
Tom Lane 8404aba80f 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:43 +00:00
Peter Eisentraut b1954e95cb IP port -> TCP port
backpatched to 8.1, where this first appeared
2010-04-15 20:46:24 +00:00
Magnus Hagander 3f060dfa3b Typo fixes.
Fujii Masao
2010-03-17 18:04:21 +00:00