Commit Graph

7379 Commits

Author SHA1 Message Date
Tom Lane
66156f2432 information_schema.key_column_usage.position_in_unique_constraint was
misdocumented as not being implemented.  In reality it has worked since
the release of 8.2.
2008-11-25 20:47:55 +00:00
Marc G. Fournier
400e915c62 tag 8.2.11 2008-10-31 02:44:09 +00:00
Tom Lane
614b828fb3 Update back-branch release notes. 2008-10-30 22:22:57 +00:00
Tom Lane
3e86678ffe Install a more robust solution for the problem of infinite error-processing
recursion when we are unable to convert a localized error message to the
client's encoding.  We've been over this ground before, but as reported by
Ibrar Ahmed, it still didn't work in the case of conversion failures for
the conversion-failure message itself :-(.  Fix by installing a "circuit
breaker" that disables attempts to localize this message once we get into
recursion trouble.

Patch all supported branches, because it is in fact broken in all of them;
though I had to add some missing translations to the older branches in
order to expose the failure in the particular test case I was using.
2008-10-27 19:37:36 +00:00
Tom Lane
c564931da0 Fix COPY documentation to not imply that HEADER can be used outside CSV mode.
Per gripe from Bill Thoen.
2008-10-10 21:46:49 +00:00
Marc G. Fournier
6967e894fd tag for 8.2.10 2008-09-19 03:12:08 +00:00
Tom Lane
c82cf66508 Update back-branch release notes. 2008-09-19 02:45:33 +00:00
Tom Lane
063ec6cf82 Fix pg_dump docs to acknowledge that you can use -Z with plain text output. Pointed out by Daniel Migowski. 2008-08-26 00:03:30 +00:00
Tom Lane
32e409ba8a Update link to Oleg and Teodor's GIN page.
(Extracted from fast-insert patch, since it ought to be back-patched)
2008-07-22 22:05:42 +00:00
Tom Lane
ea83cc1f98 Stamp 8.2.9 (except for configure.in/configure) 2008-06-08 22:14:31 +00:00
Tom Lane
414d4b8abe Update release notes for ALTER AGGREGATE fix. 2008-06-08 21:46:26 +00:00
Tom Lane
742627a27e Update release notes for 8.3.3 et al. 2008-06-07 22:10:57 +00:00
Tom Lane
f0f335eddb Stamp 8.2.8 (except for configure.in/configure) 2008-06-05 23:55:50 +00:00
Tom Lane
c1e9481c4f Draft release notes for upcoming back-branch updates. 2008-06-04 03:16:23 +00:00
Bruce Momjian
0e804581b6 Update odbc URL. 2008-05-29 02:01:07 +00:00
Tom Lane
a943df0ba5 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:53 +00:00
Magnus Hagander
a18d6de197 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:41 +00:00
Magnus Hagander
c68182e2cc 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:12 +00:00
Tom Lane
3dbe7e40ee Stamp version 8.2.7, except for configure.in/configure. 2008-03-13 23:58:25 +00:00
Tom Lane
4dd2586aac Update release notes for 8.3.1 and 8.2.7 releases. 2008-03-13 23:48:11 +00:00
Tom Lane
3917c397f0 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:01 +00:00
Tom Lane
6909d80982 Improve pg_autovacuum documentation to clarify that the enabled field cannot
prevent anti-wraparound vacuuming, and to caution against setting unreasonably
small values of freeze_max_age.  Also put in a notice that this catalog is
likely to disappear entirely in some future release.  Per discussion of
bug #3898 from Steven Flatt.
2008-01-31 18:40:09 +00:00
Tom Lane
dcd462a9c0 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:25 +00:00
Tom Lane
e29972bb56 Stamp release 8.2.6.
Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
2008-01-03 21:40:50 +00:00
Tom Lane
f3c52c64e8 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:36 +00:00
Tom Lane
3af35f8d40 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:23:45 +00:00
Magnus Hagander
20a637db07 Fix invalid ipv6 address in example. Per doc comment 7211. 2008-01-02 19:53:21 +00:00
Tatsuo Ishii
d3786c0458 Fix "Overall Page Layout" table. The second row should be ItemIdData, not
ItemPointerData.
2007-11-23 00:28:25 +00:00
Tom Lane
132b004ddf Update shared-memory-size info for 8.2 branch. 2007-11-01 19:11:31 +00:00
Tom Lane
4ef631fe2c 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:19 +00:00
Tom Lane
ee24168d2c Update release notes for last-minute fix. 2007-09-16 03:03:13 +00:00
Tom Lane
038be7ea31 Fix markup that doesn't work in back branches. 2007-09-14 16:13:22 +00:00
Tom Lane
b7bddb3442 Minor editorialization on release notes. 2007-09-14 15:51:04 +00:00
Bruce Momjian
7e82fa8b7a Clarify tar documentation about return error codes.
Backpatch to 8.2.X.
2007-09-14 13:26:36 +00:00
Bruce Momjian
6f5d343405 Update GNU tar error code documentation.
Backpatch to 8.2.X.
2007-09-14 04:16:44 +00:00
Bruce Momjian
ebeec05f8a Update Japanese FAQ, backpatch.
Jun Kuwamura
2007-09-13 03:34:23 +00:00
Bruce Momjian
7d880486d0 Update Japanese FAQ to current release number. 2007-09-12 03:11:49 +00:00
Bruce Momjian
5dc3723781 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:30 +00:00
Bruce Momjian
6dfff52791 Stamp 2007-09-11 17:20:01 +00:00
Tom Lane
7c92618676 Fix array_dims() example to be consistent with the data previously shown.
Christian Rossow
2007-06-07 14:50:00 +00:00
Neil Conway
4ad43de791 Remove incorrect semicolon in example. This was previously fixed in
HEAD only -- backporting to 8.2. Per report from Frank van Vugt.
2007-06-02 15:15:30 +00:00
Neil Conway
75103cc218 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:15 +00:00
Peter Eisentraut
06df9a69e8 Fix spurious German index entry 2007-05-21 15:10:20 +00:00
Peter Eisentraut
0b98091e23 Fix inappropriate comments 2007-05-18 09:43:15 +00:00
Neil Conway
fbef95ef13 Fix a bunch of bad grammar in the docs: "<link>, which see for more
information" is un-good English.
2007-05-15 19:43:59 +00:00
Neil Conway
10d1f31253 Add a note to the documentation to clarify that even when
"autovacuum = off", the system may still periodically start autovacuum
processes to prevent XID wraparound. Patch from David Fetter, with
editorializing.
2007-05-15 15:35:58 +00:00
Magnus Hagander
38e6aea5a7 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:40 +00:00
Tom Lane
4a898fbb20 Fix my oversight in enabling domains-of-domains: ALTER DOMAIN ADD CONSTRAINT
needs to check the new constraint against columns of derived domains too.

Also, make it error out if the domain to be modified is used within any
composite-type columns.  Eventually we should support that case, but it seems
a bit painful, and not suitable for a back-patch.  For the moment just let the
user know we can't do it.

Backpatch to 8.2, which is the only released version that allows nested
domains.  Possibly the other part should be back-patched further.
2007-05-11 20:18:21 +00:00
Alvaro Herrera
61f9c3a54d Fix a few more double words in docs. 2007-05-03 15:47:37 +00:00
Neil Conway
6c6ab55b8c Fix some typos in the documentation. Patch from Brian Gough. Backport
the relevant fixes to 8.2 as well.
2007-05-03 15:06:13 +00:00
Neil Conway
6d0e96df6f Fix newly-introduced documentation typo. 2007-04-23 16:52:56 +00:00
Tom Lane
ce8a3e6c88 Fix markup.
Security: CVE-2007-2138
2007-04-20 03:27:34 +00:00
Tom Lane
d694bdd1c9 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:37:49 +00:00
Bruce Momjian
9de4b61388 Release wording updates for releases 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 13:03:07 +00:00
Bruce Momjian
90e4b46998 Stamp releases 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 03:07:32 +00:00
Bruce Momjian
fe48792a11 Release note updates for 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 02:47:52 +00:00
Bruce Momjian
65c531df04 Update docs/error message for CSV quote/escape --- must be ASCII.
Backpatch doc change to 8.2.X.
2007-04-18 02:29:39 +00:00
Bruce Momjian
4e93443455 Document that the COPY delimiter must be an ASCII byte, rather than a
multi-byte value.  It can also be a single-byte encoded character if
the client and server versions match.

Backpatch to 8.2.X.
2007-04-18 00:18:31 +00:00
Bruce Momjian
627939c337 Backpatch doc change SYMETRIC -> SYMMETRIC, for 8.2.X. 2007-04-07 15:43:47 +00:00
Bruce Momjian
4dd2d9192d Update SSL description for when SSL root.crt/server.crt is required;
add link to libpq SSL does from server docs.

Backpatch to 8.2.X.
2007-03-30 03:19:19 +00:00
Tom Lane
a467a7a910 Fix seriously broken markup for libpq-envars cross-references. 2007-03-26 17:23:45 +00:00
Bruce Momjian
720a9cc0e5 Document that LDAP URLs should be double-quoted in pg_hba.conf because
commas are often present in the URL.

Backpatch to 8.2.X.
2007-03-24 21:46:25 +00:00
Tom Lane
1e0cba90fd Fix broken markup. 2007-03-24 16:46:28 +00:00
Tom Lane
1a72f357e3 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:15 +00:00
Bruce Momjian
9395aa5392 Update Chinese FAQs to have two versions, a traditional Chinese version (Taiwan)
and a Simplified version (China (PRC)).

Backpatch to 8.2.X.

Daojing.Zhou
2007-02-21 16:42:43 +00:00
Bruce Momjian
664009ecb1 Update "encode" documentation to mention that 'escape' only changes null
bytes and backslashes, remove "ASCII" mention.  Backpatch to 8.2.X.
2007-02-20 19:59:18 +00:00
Bruce Momjian
6f9027372b Update information_schema documentation to match system tables.
Backpatch to 8.2.X.
2007-02-20 18:47:34 +00:00
Bruce Momjian
57bcfe0065 More clearly document that most PostgreSQL utilities support libpq
environment variables.  Backpatch to 8.2.X.
2007-02-20 18:11:17 +00:00
Bruce Momjian
44764fba1b Spell check on array patch. 2007-02-20 14:54:51 +00:00
Bruce Momjian
0586e9b682 Update array slice documentation to be clearer. 2007-02-20 14:34:29 +00:00
Bruce Momjian
7194ab3f55 Comment-out documentation for IS OF because it doesn't conform to the
ISO SQL behavior. Backpatch removal to 8.2.X.
2007-02-20 14:05:02 +00:00
Bruce Momjian
d9341ce1b8 Document IS [NOT] OF, which was added in 7.3. 2007-02-20 00:25:16 +00:00
Bruce Momjian
c2039e4477 Update PQfree() documentation to be clearer, backpatch to 8.2.X. 2007-02-19 22:06:30 +00:00
Bruce Momjian
760f4823e6 This patch fixes shared_preload_libraries on Windows hosts. It forces
each backend to re-load all shared_preload_libraries.

Backpatch to 8.2.X.

Korry Douglas
2007-02-08 17:04:48 +00:00
Bruce Momjian
e1c266493c Update URL for "Generalized Partial Indexes" paper to point to a cached
version.

Backpatch to 8.2.X.
2007-02-08 04:31:41 +00:00
Bruce Momjian
76f46f5cf6 Document that wal_sync_method open_* methods use O_DIRECT, if available.
Backpatch to 8.2.X.
2007-02-08 03:57:52 +00:00
Bruce Momjian
d015e14880 Stamp releases notes for 8.2.3, 8.1.8, 8.0.12. 2007-02-07 04:23:01 +00:00
Bruce Momjian
98e08d1aa0 Stamp releases 8.2.3, 8.1.8, 8.0.12. No release notes yet. 2007-02-07 03:48:58 +00:00
Bruce Momjian
0b36bbf8f2 Update FAQ for 8.2.3. 2007-02-07 03:16:59 +00:00
Bruce Momjian
b93d4a75a0 Backpatch FAQs to 8.2.X branch. 2007-02-06 18:38:04 +00:00
Tom Lane
5338847fcd Not only did we agree that this 'hint' doesn't belong here, but the
markup's broken.  So just remove it...
2007-02-06 03:05:00 +00:00
Bruce Momjian
de9acc94f1 Trim down environment variable instructions for Win32, backpatch to 8.2.X. 2007-02-05 22:18:18 +00:00
Bruce Momjian
e5352a2556 Update wording. 2007-02-04 04:00:33 +00:00
Bruce Momjian
1015fd53b6 Add documentation for Windows on how to set an environment variable.
Backpatch to 8.2.X.
2007-02-04 03:58:58 +00:00
Bruce Momjian
d68f1ecbe2 Document that a client-only install using:
gmake -C src/bin install

does install a few server-only binaries.
2007-02-03 23:01:13 +00:00
Neil Conway
3714d82f76 Reword suggestion that libpq.dll be installed in WINNT\SYSTEM32 under
Windows. Per Magnus Hagander, this is not recommended.
2007-02-02 16:10:10 +00:00
Tom Lane
d06a16c589 Stamp release 8.2.2.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:14:22 +00:00
Tom Lane
40cf433eb6 Update release notes for security-related releases in all active branches.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:10:33 +00:00
Bruce Momjian
14a866b18d Mention file system replication as a high availability solution in the
shared hardware section, and mention DRBD as a popular solution.
2007-02-01 21:03:00 +00:00
Neil Conway
3c7d9add71 Backpatch last night's fix for broken markup to the 8.2 branch. 2007-02-01 19:18:14 +00:00
Bruce Momjian
e3b12f76af Add 8.2.0 "Incomatibilities" documentation that pg_dump's -n and -t
behavior has changed.
2007-02-01 05:12:46 +00:00
Bruce Momjian
da45866c42 Backpatch FAQs to stable branch. 2007-02-01 04:56:41 +00:00
Bruce Momjian
8c14912cc1 Document need for periodic REINDEX in VACUUM FULL cases. 2007-01-31 04:13:28 +00:00
Bruce Momjian
e2d6898827 Update documentation for backslashes to mention escape string syntax
more, and standard_conforming_strings less, because in the future non-E
strings will not treat backslashes specially.

Also use E'' strings where backslashes are used in examples. (The
existing examples would have drawn warnings.)

Backpatch to 8.2.X.
2007-01-30 22:29:40 +00:00
Bruce Momjian
c22f642f2f Clarify paramater handling for pg_get_serial_sequence(). 2007-01-30 02:32:05 +00:00
Bruce Momjian
891b9fbba5 Update documentation about postgresqlconf to mention default units that
match the postgresql.conf file.  Also add units to descriptions that
lacked them.  Wording improvements.  Mention pg_settings.unit as the way
to find the default units for setting.

Backpatch to 8.2.X.
2007-01-20 21:30:35 +00:00
Bruce Momjian
55391ab6a7 Document that to remove template1, datistemplate must be 'false'.
Backpatch to 8.2.
2007-01-20 15:43:58 +00:00
Neil Conway
20fe8b033a 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:48 +00:00
Tom Lane
65fe39ee0a Fix handling of CC (century) format spec in to_date/to_char. According to
standard convention the 21st century runs from 2001-2100, not 2000-2099,
so make it work like that.  Per bug #2885 from Akio Iwaasa.

Backpatch to 8.2, but no further, since this is really a definitional
change; users of older branches are probably more interested in stability.
2007-01-12 23:35:04 +00:00
Tom Lane
acb01484d6 Minor copy-editing for release note updates. 2007-01-05 22:34:46 +00:00