summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2016-08-17Disable update_process_title by default on WindowsMagnus Hagander
The performance overhead of this can be significant on Windows, and most people don't have the tools to view it anyway as Windows does not have native support for process titles. Discussion: <0A3221C70F24FB45833433255569204D1F5BE3E8@G01JPEXMBYT05> Takayuki Tsunakawa
2016-08-16docs: my third pass over the 9.6 release notesBruce Momjian
Backpatch-through: 9.6
2016-08-16doc: Remove some confusion from pg_archivecleanup docPeter Eisentraut
From: Jeff Janes <jeff.janes@gmail.com>
2016-08-16Fix typosPeter Eisentraut
From: Alexander Law <exclusion@gmail.com>
2016-08-16Doc: copy-editing in create_access_method.sgml.Tom Lane
Improve shaky English grammar. And markup.
2016-08-16Doc: remove out-of-date claim that pg_am rows must be inserted by hand.Tom Lane
Commit 473b93287 added a sentence about that, but neglected to remove the adjacent sentence it had falsified. Per Alexander Law.
2016-08-16Disable parallel query by default.Robert Haas
Per discussion, set the default value of max_parallel_workers_per_gather to 0 in 9.6 only. We'll leave it enabled in master so that it gets more testing and in the hope that it can be enable by default in v10.
2016-08-13Add SQL-accessible functions for inspecting index AM properties.Tom Lane
Per discussion, we should provide such functions to replace the lost ability to discover AM properties by inspecting pg_am (cf commit 65c5fcd35). The added functionality is also meant to displace any code that was looking directly at pg_index.indoption, since we'd rather not believe that the bit meanings in that field are part of any client API contract. As future-proofing, define the SQL API to not assume that properties that are currently AM-wide or index-wide will remain so unless they logically must be; instead, expose them only when inquiring about a specific index or even specific index column. Also provide the ability for an index AM to override the behavior. In passing, document pg_am.amtype, overlooked in commit 473b93287. Andrew Gierth, with kibitzing by me and others Discussion: <87mvl5on7n.fsf@news-spur.riddles.org.uk>
2016-08-12Doc: clarify that DROP ... CASCADE is recursive.Tom Lane
Apparently that's not obvious to everybody, so let's belabor the point. In passing, document that DROP POLICY has CASCADE/RESTRICT options (which it does, per gram.y) but they do nothing (I assume, anyway). Also update some long-obsolete commentary in gram.y. Discussion: <20160805104837.1412.84915@wrigleys.postgresql.org>
2016-08-12Correct TABLESAMPLE docsSimon Riggs
Original wording was correct but not the intended meaning. Reported by Patrik Wenger
2016-08-11Add ID property to replication slots' sect2Alvaro Herrera
2016-08-10docs: my second pass over the 9.6 release notesBruce Momjian
2016-08-10Doc: write some for adminpack.Tom Lane
Previous contents of adminpack.sgml were rather far short of project norms. Not to mention being outright wrong about the signature of pg_file_read().
2016-08-09docs: my first pass over the 9.6 release notesBruce Momjian
2016-08-09Doc: clarify description of CREATE/ALTER FUNCTION ... SET FROM CURRENT.Tom Lane
Per discussion with David Johnston.
2016-08-08doc: update list of pg_trgm authorsBruce Momjian
Author: Oleg Bartunov
2016-08-08Update 9.6 release notes through today.Tom Lane
2016-08-08Last-minute updates for release notes.Tom Lane
Security: CVE-2016-5423, CVE-2016-5424
2016-08-08Introduce a psql "\connect -reuse-previous=on|off" option.Noah Misch
The decision to reuse values of parameters from a previous connection has been based on whether the new target is a conninfo string. Add this means of overriding that default. This feature arose as one component of a fix for security vulnerabilities in pg_dump, pg_dumpall, and pg_upgrade, so back-patch to 9.1 (all supported versions). In 9.3 and later, comment paragraphs that required update had already-incorrect claims about behavior when no connection is open; fix those problems. Security: CVE-2016-5424
2016-08-08doc: Update benchmark resultsPeter Eisentraut
From: Alexander Law <exclusion@gmail.com>
2016-08-07Update 9.6 release notes through today.Tom Lane
2016-08-07Release notes for 9.5.4, 9.4.9, 9.3.14, 9.2.18, 9.1.23.Tom Lane
2016-08-07doc: Move mention of rsync of temp tables to better placePeter Eisentraut
2016-08-07Fix misestimation of n_distinct for a nearly-unique column with many nulls.Tom Lane
If ANALYZE found no repeated non-null entries in its sample, it set the column's stadistinct value to -1.0, intending to indicate that the entries are all distinct. But what this value actually means is that the number of distinct values is 100% of the table's rowcount, and thus it was overestimating the number of distinct values by however many nulls there are. This could lead to very poor selectivity estimates, as for example in a recent report from Andreas Joseph Krogh. We should discount the stadistinct value by whatever we've estimated the nulls fraction to be. (That is what will happen if we choose to use a negative stadistinct for a column that does have repeated entries, so this code path was just inconsistent.) In addition to fixing the stadistinct entries stored by several different ANALYZE code paths, adjust the logic where get_variable_numdistinct() forces an "all distinct" estimate on the basis of finding a relevant unique index. Unique indexes don't reject nulls, so there's no reason to assume that the null fraction doesn't apply. Back-patch to all supported branches. Back-patching is a bit of a judgment call, but this problem seems to affect only a few users (else we'd have identified it long ago), and it's bad enough when it does happen that destabilizing plan choices in a worse direction seems unlikely. Patch by me, with documentation wording suggested by Dean Rasheed Report: <VisenaEmail.26.df42f82acae38a58.156463942b8@tc7-visena> Discussion: <16143.1470350371@sss.pgh.pa.us>
2016-08-06First-draft release notes for 9.5.4.Tom Lane
As usual, the release notes for other branches will be made by cutting these down, but put them up for community review first.
2016-08-05Make array_to_tsvector() sort and de-duplicate the given strings.Tom Lane
This is required for the result to be a legal tsvector value. Noted while fooling with Andreas Seltenreich's ts_delete() crash. Discussion: <87invhoj6e.fsf@credativ.de>
2016-08-05docs: re-add spaces before units removedBruce Momjian
This reverts the spaces before k/M/G/TB units removed for consistency in commit ca0c37b56f4a80ad758774e34c86cc4335583d29. Discussion: 20160802165116.GC32575@momjian.us
2016-08-04docs: mention rsync of temp and unlogged tablesBruce Momjian
This happens when using rsync to pg_upgrade slaves. Reported-by: Jerry Sievers Discussion: 20160726161946.GA3511@momjian.us
2016-08-03doc: Move indexterms to avoid whitespace issue in man pagesPeter Eisentraut
2016-08-03doc: Remove documentation of nonexistent information schema columnsPeter Eisentraut
These were probably copied in by accident. From: Clément Prévost <prevostclement@gmail.com>
2016-08-03doc: Change recommendation to put NOTIFY into a rulePeter Eisentraut
Suggest a statement trigger instead.
2016-08-03Add OldSnapshotTimeMapLock to wait_event table in docs.Kevin Grittner
Ashutosh Sharma with minor fixes by me.
2016-08-02doc: Remove slightly confusing xreflabelsPeter Eisentraut
It seems clearer to refer to these tables in the normal way.
2016-08-02Small wording tweaksPeter Eisentraut
Dmitry Igrishin
2016-08-02doc: OS collation changes can break indexesBruce Momjian
Discussion: 20160702155517.GD18610@momjian.us Reviewed-by: Christoph Berg Backpatch-through: 9.1
2016-08-02doc: Whitespace fixes in man pagesPeter Eisentraut
2016-08-01pg_rewind docs: clarify handling of remote serversBruce Momjian
2016-08-01Fix pg_basebackup so that it accepts 0 as a valid compression level.Fujii Masao
The help message for pg_basebackup specifies that the numbers 0 through 9 are accepted as valid values of -Z option. But, previously -Z 0 was rejected as an invalid compression level. Per discussion, it's better to make pg_basebackup treat 0 as valid compression level meaning no compression, like pg_dump. Back-patch to all supported versions. Reported-By: Jeff Janes Reviewed-By: Amit Kapila Discussion: CAMkU=1x+GwjSayc57v6w87ij6iRGFWt=hVfM0B64b1_bPVKRqg@mail.gmail.com
2016-07-31Doc: remove claim that hash index creation depends on effective_cache_size.Tom Lane
This text was added by commit ff213239c, and not long thereafter obsoleted by commit 4adc2f72a (which made the test depend on NBuffers instead); but nobody noticed the need for an update. Commit 9563d5b5e adds some further dependency on maintenance_work_mem, but the existing verbiage seems to cover that with about as much precision as we really want here. Let's just take it all out rather than leaving ourselves open to more errors of omission in future. (That solution makes this change back-patchable, too.) Noted by Peter Geoghegan. Discussion: <CAM3SWZRVANbj9GA9j40fAwheQCZQtSwqTN1GBTVwRrRbmSf7cg@mail.gmail.com>
2016-07-30doc: improve wording of Error Message Style GuideBruce Momjian
Reported-by: Daniel Gustafsson Discussion: 48DB4EDA-96F8-4B2F-99C4-110900FC7540@yesql.se Author: Daniel Gustafsson
2016-07-30pgbench docs: fix incorrect "last two" fields textBruce Momjian
Reported-by: Alexander Law Discussion: 5786638C.8080508@gmail.com Backpatch-through: 9.4
2016-07-30docs: properly capitalize and space kB, MB, GB, TBBruce Momjian
2016-07-28Documentation spell checking and markup improvementsPeter Eisentraut
2016-07-28Improve documentation about CREATE TABLE ... LIKE.Tom Lane
The docs failed to explain that LIKE INCLUDING INDEXES would not preserve the names of indexes and associated constraints. Also, it wasn't mentioned that EXCLUDE constraints would be copied by this option. The latter oversight seems enough of a documentation bug to justify back-patching. In passing, do some minor copy-editing in the same area, and add an entry for LIKE under "Compatibility", since it's not exactly a faithful implementation of the standard's feature. Discussion: <20160728151154.AABE64016B@smtp.hushmail.com>
2016-07-28Fix incorrect description of udt_privileges view in documentation.Fujii Masao
The description of udt_privileges view contained an incorrect copy-pasted word. Back-patch to 9.2 where udt_privileges view was added. Author: Alexander Law
2016-07-26Fix constant-folding of ROW(...) IS [NOT] NULL with composite fields.Tom Lane
The SQL standard appears to specify that IS [NOT] NULL's tests of field nullness are non-recursive, ie, we shouldn't consider that a composite field with value ROW(NULL,NULL) is null for this purpose. ExecEvalNullTest got this right, but eval_const_expressions did not, leading to weird inconsistencies depending on whether the expression was such that the planner could apply constant folding. Also, adjust the docs to mention that IS [NOT] DISTINCT FROM NULL can be used as a substitute test if a simple null check is wanted for a rowtype argument. That motivated reordering things so that IS [NOT] DISTINCT FROM is described before IS [NOT] NULL. In HEAD, I went a bit further and added a table showing all the comparison-related predicates. Per bug #14235. Back-patch to all supported branches, since it's certainly undesirable that constant-folding should change the semantics. Report and patch by Andrew Gierth; assorted wordsmithing and revised regression test cases by me. Report: <20160708024746.1410.57282@wrigleys.postgresql.org>
2016-07-22Remove GetUserMappingId() and GetUserMappingById().Tom Lane
These functions were added in commits fbe5a3fb7 and a104a017f, but commit 45639a052 removed their only callers. Put the related code in foreign.c back to the way it was in 9.5, to avoid pointless cross-version diffs. Etsuro Fujita Patch: <d674a3f1-6b63-519c-ef3f-f3188ed6a178@lab.ntt.co.jp>
2016-07-20Fix typosMagnus Hagander
Alexander Law
2016-07-19Add comment & docs about no vacuum truncation with sto.Kevin Grittner
Omission noted by Andres Freund.
2016-07-18Doc: improve discussion of plpgsql's GET DIAGNOSTICS, other minor fixes.Tom Lane
9.4 added a second description of GET DIAGNOSTICS that was totally independent of the existing one, resulting in each description lying to the extent that it claimed the set of status items it described was complete. Fix that, and do some minor markup improvement. Also some other small fixes per bug #14258 from Dilian Palauzov. Discussion: <20160718181437.1414.40802@wrigleys.postgresql.org>