1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-28 05:21:27 +03:00

10977 Commits

Author SHA1 Message Date
Tom Lane
6acf90bc6e Fix typo in information_schema documentation.
Shigeru Hanada
2012-09-05 23:37:45 -04:00
Tom Lane
8a66a37d6d Make one last copy-editing pass over the 9.2 release notes.
Also, set the release date to 2012-09-10, since we're pretty well
committed to that now.
2012-09-05 21:28:27 -04:00
Bruce Momjian
469530b370 Document that pg_upgrade requires PGHOST be set for any pre-9.1 servers
with a socket directory mismatch with the new server.

Backpatch to 9.2.
2012-09-04 09:17:28 -04:00
Magnus Hagander
ee7a48c5b3 Mention basebackup-from-slave next to cascading replication 2012-09-04 14:37:51 +02:00
Tom Lane
5c7e91e9c3 Back-patch recent pg_upgrade fixes into 9.2.
This syncs contrib/pg_upgrade in the 9.2 branch with HEAD, except for the
HEAD changes related to converting XLogRecPtr to 64-bit int.  It includes
back-patching these commits:

666d494d19dbd5dc7a177709a2f7069913f8ab89
pg_upgrade: abstract out copying of files from old cluster to new
7afa8bed65ea925208f128048f3a528a64e1319a
pg_upgrade: Run the created scripts in the test suite
ab577e63faf792593ca728625a8ef0b1dfaf7500
Remove analyze_new_cluster.sh on make clean, too
34c02044ed7e7defde5a853b26dcd806c872d974
Fix thinko in comment
088c065ce8e405fafbfa966937184ece9defcf20
pg_upgrade: Fix exec_prog API to be less flaky
f763b77193b04eba03a1f4ce46df34dc0348419e
Fix pg_upgrade to cope with non-default unix_socket_directory scenarios.
2012-09-03 15:03:08 -04:00
Robert Haas
d561fc5396 Fix checkpoint_timeout documentation to reflect current behavior.
Jeff Janes
2012-08-30 15:08:53 -04:00
Robert Haas
36bffe4ffa Document how to prevent PostgreSQL itself from exhausting memory.
The existing documentation in Linux Memory Overcommit seemed to
assume that PostgreSQL itself could never be the problem, or at
least it didn't tell you what to do about it.

Per discussion with Craig Ringer and Kevin Grittner.
2012-08-30 14:23:19 -04:00
Tom Lane
a63b7744fa Improve a couple of 9.2 release note entries.
Clarify the compatibility notes about EXTRACT() and about statistics
timing columns.
2012-08-27 20:54:00 -04:00
Tom Lane
60888e232f Add section IDs to subsections of syntax.sgml that lacked them.
This is so that these sections will have stable HTML tags that one can
link to, rather than things like "AEN1902".  Perhaps we should mount a
campaign to do this everywhere, but I've found myself pointing at
syntax.sgml subsections often enough to be sure it's useful here.
2012-08-27 20:17:16 -04:00
Peter Eisentraut
019498f0c8 Some spelling adjustments in release notes 2012-08-24 22:37:30 -04:00
Peter Eisentraut
2e435eb38a Normalize some British spellings 2012-08-24 22:35:53 -04:00
Peter Eisentraut
5171a400cb Put options on man page and in help output in slightly better order 2012-08-24 00:07:44 -04:00
Tom Lane
e8c736ca71 Stamp 9.2rc1. 2012-08-23 18:06:49 -04:00
Heikki Linnakangas
ebcc0158f1 Fix typo in example. 2012-08-23 11:59:30 +03:00
Tom Lane
ead31d1a72 Remove overly-pessimistic statement about constraint exclusion.
As of 9.2, constraint exclusion should work okay with prepared statements:
the planner will try custom plans with actual values of the parameters,
and observe that they are a lot cheaper than the generic plan, and thus
never fall back to using the generic plan.  Noted by Tatsuhito Kasahara.
2012-08-22 23:55:57 -04:00
Tom Lane
d333773127 Make a cut at a major-features list for 9.2.
This is open to debate of course, but it's past time we had *something*
here.
2012-08-22 17:58:17 -04:00
Tom Lane
a902d46475 Make an editorial pass over the 9.2 release notes.
A very large number of small improvements ...
2012-08-22 17:37:13 -04:00
Tom Lane
9e8f8ef1f0 Fix erroneous documentation of synchronous_commit = remote_write.
The docs claimed that this mode only waits for the standby to receive WAL
data, but actually it waits for the data to be written out to the standby's
OS; which is a pretty significant difference because it removes the risk of
crash of the walreceiver process.
2012-08-22 14:04:49 -04:00
Tom Lane
3f9abab590 Update 9.2 release notes to reflect commits to date.
I was unable to entirely resist the temptation to copy-edit related
entries, but will save most of that for a separate pass.
2012-08-21 22:57:45 -04:00
Tom Lane
d5bcb33603 Stamp 9.2beta4. 2012-08-14 18:38:49 -04:00
Tom Lane
333a54a584 Update release notes for 9.1.5, 9.0.9, 8.4.13, 8.3.20. 2012-08-14 18:34:02 -04:00
Tom Lane
2ec75967d9 Prevent access to external files/URLs via contrib/xml2's xslt_process().
libxslt offers the ability to read and write both files and URLs through
stylesheet commands, thus allowing unprivileged database users to both read
and write data with the privileges of the database server.  Disable that
through proper use of libxslt's security options.

Also, remove xslt_process()'s ability to fetch documents and stylesheets
from external files/URLs.  While this was a documented "feature", it was
long regarded as a terrible idea.  The fix for CVE-2012-3489 broke that
capability, and rather than expend effort on trying to fix it, we're just
going to summarily remove it.

While the ability to write as well as read makes this security hole
considerably worse than CVE-2012-3489, the problem is mitigated by the fact
that xslt_process() is not available unless contrib/xml2 is installed,
and the longstanding warnings about security risks from that should have
discouraged prudent DBAs from installing it in security-exposed databases.

Reported and fixed by Peter Eisentraut.

Security: CVE-2012-3488
2012-08-14 18:31:43 -04:00
Bruce Momjian
30f891151e In documentation, change "recommendable" to "recommended", per
consultation with word definitions.

Backpatch to 9.2.
2012-08-14 12:36:46 -04:00
Tom Lane
ce36ecda51 Add link from COPY ref page to psql \copy.
Jeff Janes
2012-08-11 13:51:40 -04:00
Magnus Hagander
63e719ec51 Fix upper limit of superuser_reserved_connections, add limit for wal_senders
Should be limited to the maximum number of connections excluding
autovacuum workers, not including.

Add similar check for max_wal_senders, which should never be higher than
max_connections.
2012-08-10 14:51:57 +02:00
Simon Riggs
cc23119af5 Doc correction to point out that 9.2+ can overwrite pg_xlog files.
Noted by Noah Misch, patch by Fujii Masao
2012-08-08 22:36:55 +01:00
Robert Haas
73a7a6460e Typo fixes for previous commit.
Noted by Thom Brown.
2012-08-06 16:12:35 -04:00
Robert Haas
e022ed91d7 Warn more vigorously about the non-transactional behavior of sequences.
Craig Ringer, edited fairly heavily by me
2012-08-06 15:19:26 -04:00
Bruce Momjian
a411f7e770 Reword documentation for concurrent index rebuilds to be clearer.
Backpatch to 9.1 and 9.2.
2012-08-04 10:35:46 -04:00
Bruce Momjian
bf92fb6c2d Add link to synchronous_commit variables in high availability docs.
Backpatch to 9.2

Erik Rijkers
2012-08-03 16:33:18 -04:00
Bruce Momjian
e7d9f26a60 Document that trying to exceed temp_file_limit causes a query cancel.
Backpatch to 9.2.
2012-08-03 15:15:27 -04:00
Bruce Momjian
91668fcc31 Document that, for psql -c, only the result of the last command is
returned, per report from Aleksey Tsalolikhin

Backpatch to 9.2 and 9.1.
2012-08-03 14:02:22 -04:00
Tom Lane
f30b05b8a4 Stamp 9.2beta3. 2012-08-02 18:23:20 -04:00
Tom Lane
87a2379568 Update release notes for libpq feature change. 2012-08-02 13:21:24 -04:00
Tom Lane
ea56ed9a1e Replace libpq's "row processor" API with a "single row" mode.
After taking awhile to digest the row-processor feature that was added to
libpq in commit 92785dac2ee7026948962cd61c4cd84a2d052772, we've concluded
it is over-complicated and too hard to use.  Leave the core infrastructure
changes in place (that is, there's still a row processor function inside
libpq), but remove the exposed API pieces, and instead provide a "single
row" mode switch that causes PQgetResult to return one row at a time in
separate PGresult objects.

This approach incurs more overhead than proper use of a row processor
callback would, since construction of a PGresult per row adds extra cycles.
However, it is far easier to use and harder to break.  The single-row mode
still affords applications the primary benefit that the row processor API
was meant to provide, namely not having to accumulate large result sets in
memory before processing them.  Preliminary testing suggests that we can
probably buy back most of the extra cycles by micro-optimizing construction
of the extra results, but that task will be left for another day.

Marko Kreen
2012-08-02 13:10:36 -04:00
Tom Lane
f6fb9f103f Add documentation cross-reference for JSON functions.
Thom Brown
2012-08-01 00:41:45 -04:00
Alvaro Herrera
65f3335249 pg_basebackup: stylistic adjustments
The most user-visible part of this is to change the long options
--statusint and --noloop to --status-interval and --no-loop,
respectively, per discussion.

Also, consistently enclose file names in double quotes, per our
conventions; and consistently use the term "transaction log file" to
talk about WAL segments.  (Someday we may need to go over this
terminology and make it consistent across the whole source code.)

Finally, reflow the code to better fit in 80 columns, and have pgindent
fix it up some more.
2012-07-31 11:02:21 -04:00
Bruce Momjian
99dd2a390f Now that the diskchecker.pl author has updated the download link on his
website, revert the separate link to the download git repository.

Backpatch from 9.0 to current.
2012-07-30 10:15:57 -04:00
Bruce Momjian
9ebe82bd48 Update doc mention of diskchecker.pl to add URL for script; retain URL
for description.

Patch to 9.0 and later, where script is mentioned.
2012-07-26 21:25:26 -04:00
Bruce Momjian
54e3c4af23 Document that the pg_upgrade user of rsync might want to skip some
files, like postmaster.pid.

Backpatch to 9.2.
2012-07-26 14:32:24 -04:00
Peter Eisentraut
7332aa6c79 Document that pg_basebackup will create its output directory 2012-07-25 22:01:04 +03:00
Alvaro Herrera
68043258ac Change syntax of new CHECK NO INHERIT constraints
The initially implemented syntax, "CHECK NO INHERIT (expr)" was not
deemed very good, so switch to "CHECK (expr) NO INHERIT" instead.  This
way it looks similar to SQL-standards compliant constraint attribute.

Backport to 9.2 where the new syntax and feature was introduced.

Per discussion.
2012-07-24 16:02:18 -04:00
Peter Eisentraut
3d03c97a45 Show step titles in the pg_upgrade man page
The upstream XSLT stylesheets missed that case.

found by Álvaro Herrera
2012-07-17 21:35:30 +03:00
Peter Eisentraut
eb972f3eca Add link to PEP 394 regarding python2 vs python3 naming 2012-07-14 13:06:46 +03:00
Bruce Momjian
4810ebe103 Document that Log-Shipping Standby Servers cannot be upgraded by
pg_upgrade.

Backpatch to 9.2.
2012-07-10 23:08:19 -04:00
Bruce Momjian
2bc09ff499 Run newly-configured perltidy script on Perl files.
Run on HEAD and 9.2.
2012-07-04 21:47:48 -04:00
Magnus Hagander
5c5d54870f Remove reference to default wal_buffers being 8
This hasn't been true since 9.1, when the default was changed to -1.
Remove the reference completely, keeping the discussion of the parameter
and it's shared memory effects on the config page.
2012-07-04 09:23:31 +02:00
Magnus Hagander
a963e06c0c Remove references to PostgreSQL bundled on Solaris
Also remove special references to downloads off pgfoundry since they are
not correct - downloads are done through the main website.
2012-07-04 09:11:29 +02:00
Magnus Hagander
ed4cd4b664 Fix typo
gabrielle
2012-07-04 09:06:35 +02:00
Magnus Hagander
5f2fa7f561 Remove references to pgfoundry as recommended hosting platform
pgfoundry is deprectaed and no longer accepting new projects,
so we really shouldn't be directing people there.
2012-07-04 09:01:52 +02:00