Commit graph

4447 commits

Author SHA1 Message Date
Tom Lane
32184bfa0c Improve GRANT documentation to point out that UPDATE and DELETE typically
require SELECT privilege as well, since you normally need to read existing
column values within such commands.  This behavior is according to spec,
but we'd never documented it before.  Per gripe from Volkan Yazici.
2008-05-28 00:45:59 +00:00
Magnus Hagander
0f130711d0 Replace developer FAQ with a reference to the wiki, which is where
it now lives (per discussion). Leave the other FAQs alone for now.
2008-04-22 09:26:39 +00:00
Magnus Hagander
3cf4913d17 Add link to major version release notes at the top of the minor
version ones, to make it clear to users just browsing the notes
that there are a lot more changes available from whatever version
they are at than what's in the minor version release notes.
2008-04-21 09:45:05 +00:00
Tom Lane
e8051df2c1 Fix LISTEN/NOTIFY race condition reported by Laurent Birtz, by postponing
pg_listener modifications commanded by LISTEN and UNLISTEN until the end
of the current transaction.  This allows us to hold the ExclusiveLock on
pg_listener until after commit, with no greater risk of deadlock than there
was before.  Aside from fixing the race condition, this gets rid of a
truly ugly kludge that was there before, namely having to ignore
HeapTupleBeingUpdated failures during NOTIFY.  There is a small potential
incompatibility, which is that if a transaction issues LISTEN or UNLISTEN
and then looks into pg_listener before committing, it won't see any resulting
row insertion or deletion, where before it would have.  It seems unlikely
that anyone would be depending on that, though.

This patch also disallows LISTEN and UNLISTEN inside a prepared transaction.
That case had some pretty undesirable properties already, such as possibly
allowing pg_listener entries to be made for PIDs no longer present, so
disallowing it seems like a better idea than trying to maintain the behavior.
2008-03-12 20:12:14 +00:00
Tom Lane
78f53d5a00 Fix an ancient oversight in libpq's handling of V3-protocol COPY OUT mode:
we need to be able to swallow NOTICE messages, and potentially also
ParameterStatus messages (although the latter would be a bit weird),
without exiting COPY OUT state.  Fix it, and adjust the protocol documentation
to emphasize the need for this.  Per off-list report from Alexander Galler.
2008-01-14 18:46:33 +00:00
Tom Lane
bf4d342f8e Update release notes for security releases.
Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
2008-01-03 21:35:49 +00:00
Tom Lane
46cf9c260d Make standard maintenance operations (including VACUUM, ANALYZE, REINDEX,
and CLUSTER) execute as the table owner rather than the calling user, using
the same privilege-switching mechanism already used for SECURITY DEFINER
functions.  The purpose of this change is to ensure that user-defined
functions used in index definitions cannot acquire the privileges of a
superuser account that is performing routine maintenance.  While a function
used in an index is supposed to be IMMUTABLE and thus not able to do anything
very interesting, there are several easy ways around that restriction; and
even if we could plug them all, there would remain a risk of reading sensitive
information and broadcasting it through a covert channel such as CPU usage.

To prevent bypassing this security measure, execution of SET SESSION
AUTHORIZATION and SET ROLE is now forbidden within a SECURITY DEFINER context.

Thanks to Itagaki Takahiro for reporting this vulnerability.

Security: CVE-2007-6600
2008-01-03 21:24:26 +00:00
Magnus Hagander
af3de8077e Fix invalid ipv6 address in example. Per doc comment 7211. 2008-01-02 19:53:19 +00:00
Tatsuo Ishii
d4becb639d Fix "Overall Page Layout" table. The second row should be ItemIdData, not
ItemPointerData.
2007-11-23 00:30:58 +00:00
Tom Lane
9618af7b27 Make archive recovery always start a new timeline, rather than only when a
recovery stop time was used.  This avoids a corner-case risk of trying to
overwrite an existing archived copy of the last WAL segment, and seems
simpler and cleaner all around than the original definition.  Per example
from Jon Colverson and subsequent analysis by Simon.
2007-09-29 01:36:29 +00:00
Tom Lane
1498c45806 Update release notes for last-minute fix. 2007-09-16 03:03:27 +00:00
Tom Lane
b061801569 Fix markup that doesn't work in back branches. 2007-09-14 16:08:33 +00:00
Tom Lane
0fcc0224fe Minor editorialization on release notes. 2007-09-14 15:51:18 +00:00
Bruce Momjian
1116c0d4d3 Stamp releases 8.2.5, 8.1.10, 8.0.14, 7.4.18, 7.3.20.
Update FAQs for 8.2.5.
2007-09-11 17:37:08 +00:00
Bruce Momjian
07403e67dd Stamp 2007-09-11 17:19:36 +00:00
Tom Lane
5e25d43893 Fix array_dims() example to be consistent with the data previously shown.
Christian Rossow
2007-06-07 14:50:07 +00:00
Neil Conway
21b8d51de6 Fix a bug in input processing for the "interval" type. Previously,
"microsecond" and "millisecond" units were not considered valid input
by themselves, which caused inputs like "1 millisecond" to be rejected
erroneously.

Update the docs, add regression tests, and backport to 8.2 and 8.1
2007-05-29 04:59:44 +00:00
Peter Eisentraut
3c49269b90 Fix spurious German index entry 2007-05-21 15:09:46 +00:00
Magnus Hagander
6a94e76e47 Document that CLUSTER breaks MVCC visibility rules.
(Not needed in cvs head, because CLUSTER itself is fixed there)

Heikki Linnakangas
2007-05-13 16:04:35 +00:00
Neil Conway
a99381619e Fix newly-introduced documentation typo. 2007-04-23 16:52:58 +00:00
Tom Lane
d8f365365b Fix markup.
Security: CVE-2007-2138
2007-04-20 03:27:43 +00:00
Tom Lane
fc52d13ca6 Support explicit placement of the temporary-table schema within search_path.
This is needed to allow a security-definer function to set a truly secure
value of search_path.  Without it, a malicious user can use temporary objects
to execute code with the privileges of the security-definer function.  Even
pushing the temp schema to the back of the search path is not quite good
enough, because a function or operator at the back of the path might still
capture control from one nearer the front due to having a more exact datatype
match.  Hence, disable searching the temp schema altogether for functions and
operators.

Security: CVE-2007-2138
2007-04-20 02:38:05 +00:00
Bruce Momjian
9e7ea85984 Release wording updates for releases 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 13:02:30 +00:00
Bruce Momjian
6f4baccdb1 Update FAQ to mention most recent release for releases
8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19.
2007-04-19 04:04:50 +00:00
Bruce Momjian
05465579c3 Release note updates for 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 02:47:17 +00:00
Peter Eisentraut
eb19be2e0f Fix spelling: SYMETRIC -> SYMMETRIC 2007-04-09 07:40:23 +00:00
Tom Lane
45ca0be21b Arrange to install a "posixrules" entry in our timezone database, so that
POSIX-style timezone specs that don't exactly match any database entry will
be treated as having correct USA DST rules.  Also, document that this can
be changed if you want to use some other DST rules with a POSIX zone spec.

We could consider changing localtime.c's TZDEFRULESTRING, but since that
facility can only deal with one DST transition rule, it seems fairly useless
now; might as well just plan to override it using a "posixrules" entry.

Backpatch as far as 8.0.  There isn't much we can do in 7.x ... either your
libc gets it right, or it doesn't.
2007-03-14 17:38:22 +00:00
Bruce Momjian
c0190adff9 Stamp releases notes for 8.2.3, 8.1.8, 8.0.12. 2007-02-07 04:22:25 +00:00
Neil Conway
2c39737843 Reword suggestion that libpq.dll be installed in WINNT\SYSTEM32 under
Windows. Per Magnus Hagander, this is not recommended.
2007-02-02 16:10:13 +00:00
Tom Lane
43072a7ec1 Update release notes for security-related releases in all active branches.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:10:42 +00:00
Neil Conway
bdc9d70edd Correct a minor inaccuracy in the pg_dumpall reference page: -g dumps
roles and tablespaces, no longer users and groups. Per Dave Page.

Backport to 8.2 and 8.1.
2007-01-15 17:22:51 +00:00
Tom Lane
c3013376b2 Links to GUC variables from HISTORY don't work in back branches... 2007-01-06 06:01:37 +00:00
Bruce Momjian
96959c18c6 Fix markup because older releases couldn't link to the reference section. 2007-01-06 04:17:59 +00:00
Tom Lane
17406c92ac Minor copy-editing for release note updates. 2007-01-05 22:34:54 +00:00
Bruce Momjian
9b9758bb77 Stamp release 8.1.6. 2007-01-05 20:53:49 +00:00
Bruce Momjian
f921940be5 Create release notes for 8.1.6. 2007-01-05 20:03:46 +00:00
Tom Lane
2244ccd408 Document the recently-understood hazard that a rollback can release row-level
locks that logically should not be released, because when a subtransaction
overwrites XMAX all knowledge of the previous lock state is lost.  It seems
unlikely that we will be able to fix this before 8.3...
2006-12-01 20:49:59 +00:00
Bruce Momjian
35f9bf3725 Add release entry for 8.1.5 that was missing:
<listitem><para>Fix rare bug in continuous archiving (Tom)</para></listitem>
2006-11-23 03:31:04 +00:00
Tom Lane
23092b9928 Correct documentation error: in 8.1 and 8.2, %p in archive and restore
command strings inserts relative not absolute path of file to process.
This is a side-effect of 2005-07-04 change that makes the server use
relative paths in general.  Noted by Bernd Helmle.
2006-11-04 18:20:40 +00:00
Bruce Momjian
09b98773ab Update Japanese FAQ.
Jun Kuwamura
2006-10-13 17:30:13 +00:00
Tom Lane
91ddf5b548 Fix typo in version number. 2006-10-13 15:25:09 +00:00
Tom Lane
9d457ea802 Update release notes for SQL functions vs triggers fix. 2006-10-12 19:25:22 +00:00
Tom Lane
23c64e18ec A bit of copy-editing on back-branch release notes. 2006-10-11 20:56:01 +00:00
Bruce Momjian
61c91fd2d2 Backpatch FAQs to 8.1.X. 2006-10-10 00:29:15 +00:00
Bruce Momjian
7cec8b4e4a Stamp releases 7.3.16, 7.4.14, 8.0.9, and 8.1.5. 2006-10-09 23:39:03 +00:00
Bruce Momjian
5c13747ac9 Update release notes for releases 7.3.16, 7.4.14, 8.0.9, and 8.1.5. 2006-10-09 23:24:06 +00:00
Tom Lane
4af74cc007 date_trunc also accepts 'quarter'. Noted by Yoshihisa Nakano. 2006-10-01 18:54:40 +00:00
Tom Lane
574878f110 Remove obsolete tip about casting bool to int, per Taiki Yamaguchi. 2006-08-21 16:24:02 +00:00
Tom Lane
dc84334f1e Fix documentation error: GRANT/REVOKE for roles only accept role names
as grantees, not PUBLIC ... and you can't say GROUP either.  Noted by
Brian Hurt.
2006-08-02 16:30:00 +00:00
Alvaro Herrera
8aa826a965 Fix confusion between COPY FROM and COPY TO, per Gavin Sharry and Arul Shaji. 2006-07-31 01:13:58 +00:00