summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2013-12-10doc: Fix DocBook table column count declarationPeter Eisentraut
This was broken in d6464fdc0a591662e5e5ee1b0303932e89cb027c.
2013-12-10Add new wal_level, logical, sufficient for logical decoding.Robert Haas
When wal_level=logical, we'll log columns from the old tuple as configured by the REPLICA IDENTITY facility added in commit 07cacba983ef79be4a84fcd0e0ca3b5fcb85dd65. This makes it possible a properly-configured logical replication solution to correctly follow table updates even if they change the chosen key columns, or, with REPLICA IDENTITY FULL, even if the table has no key at all. Note that updates which do not modify the replica identity column won't log anything extra, making the choice of a good key (i.e. one that will rarely be changed) important to performance when wal_level=logical is configured. Each insert, update, or delete to a catalog table will also log the CMIN and/or CMAX values of stamped by the current transaction. This is necessary because logical decoding will require access to historical snapshots of the catalog in order to decode some data types, and the CMIN/CMAX values that we may need in order to judge row visibility may have been overwritten by the time we need them. Andres Freund, reviewed in various versions by myself, Heikki Linnakangas, KONDO Mitsumasa, and many others.
2013-12-10Rename TABLE() to ROWS FROM().Noah Misch
SQL-standard TABLE() is a subset of UNNEST(); they deal with arrays and other collection types. This feature, however, deals with set-returning functions. Use a different syntax for this feature to keep open the possibility of implementing the standard TABLE().
2013-12-09pgcrypto docs: update cpu type used in duration testingBruce Momjian
2013-12-09pgcrypto docs: update encryption timings and add relative timesBruce Momjian
Miles Elam
2013-12-07Fix a couple of typosMagnus Hagander
Noted by Peter Geoghegan
2013-12-07SSL: Support ECDH key exchangePeter Eisentraut
This sets up ECDH key exchange, when compiling against OpenSSL that supports EC. Then the ECDHE-RSA and ECDHE-ECDSA cipher suites can be used for SSL connections. The latter one means that EC keys are now usable. The reason for EC key exchange is that it's faster than DHE and it allows to go to higher security levels where RSA will be horribly slow. There is also new GUC option ssl_ecdh_curve that specifies the curve name used for ECDH. It defaults to "prime256v1", which is the most common curve in use in HTTPS. From: Marko Kreen <markokr@gmail.com> Reviewed-by: Adrian Klaver <adrian.klaver@gmail.com>
2013-12-08Expose qurey ID in pg_stat_statements view.Fujii Masao
The query ID is the internal hash identifier of the statement, and was not available in pg_stat_statements view so far. Daniel Farina, Sameer Thakur and Peter Geoghegan, reviewed by me.
2013-12-07SSL: Add configuration option to prefer server cipher orderPeter Eisentraut
By default, OpenSSL (and SSL/TLS in general) lets the client cipher order take priority. This is OK for browsers where the ciphers were tuned, but few PostgreSQL client libraries make the cipher order configurable. So it makes sense to have the cipher order in postgresql.conf take priority over client defaults. This patch adds the setting "ssl_prefer_server_ciphers" that can be turned on so that server cipher order is preferred. Per discussion, this now defaults to on. From: Marko Kreen <markokr@gmail.com> Reviewed-by: Adrian Klaver <adrian.klaver@gmail.com>
2013-12-06docs: update partition encryption optionsBruce Momjian
Text from Adam Vande More
2013-12-06docs: clarify SSL certificate authority chain docsBruce Momjian
Previously, the requirements of how intermediate certificates were handled and their chain to root certificates was unclear.
2013-12-04doc: split long query into multiple linesBruce Momjian
Report from Erik Rijkers
2013-12-03libpq: change PQconndefaults() to ignore invalid service filesBruce Momjian
Previously missing or invalid service files returned NULL. Also fix pg_upgrade to report "out of memory" for a null return from PQconndefaults(). Patch by Steve Singer, rewritten by me
2013-12-02doc: Refine documentation about recovery command exist statusPeter Eisentraut
Add more documentation about how different exit codes and signals are handled in each case. Reviewed-by: Peter Geoghegan <pg@heroku.com>
2013-12-02Update release notes for 9.3.2, 9.2.6, 9.1.11, 9.0.15, 8.4.19.Tom Lane
2013-12-02doc: update wording of ineffective SET and ABORT commandsBruce Momjian
Wording by Alvaro Herrera
2013-12-02Improve draft release notes.Tom Lane
Per suggestions from Andres Freund. Also fix spelling of Sergey Burladyan's name.
2013-12-01Draft release notes for 9.3.2.Tom Lane
I'm putting these up for review before I start to extract the relevant subsets for the older branches. It'll be easier to make any suggested wording improvements at this stage.
2013-12-01doc: Disable preface.autolabel in XSLTPeter Eisentraut
The makes the output more consistent with the existing DSSSL setup.
2013-11-30Editorial corrections to the October 2013 minor-release notes.Tom Lane
This is mostly to fix incorrect migration instructions: since the preceding minor releases advised reindexing some GIST indexes, it's important that we back-link to that advice rather than earlier instances. Also improve some bug descriptions and fix a few typos. No back-patch yet; these files will get copied into the back branches later in the release process.
2013-11-29doc: Simplify handling of variablelists in XSLT buildPeter Eisentraut
The previously used custom template is no longer necessary because parameters provided by the standard style sheet can achieve the same outcome.
2013-11-29doc: Enhance documentation of ssl_ciphers setting a bitPeter Eisentraut
2013-11-28doc: Allow selecting web site CSS style sheet in XSLT HTML buildPeter Eisentraut
2013-11-27doc: Set chunk.first.sections in XSLT, for consistency with DSSSL outputPeter Eisentraut
2013-11-27pg_buffercache docs: adjust order of fieldsBruce Momjian
Adjust order of fields to match view order. Jaime Casanova
2013-11-27doc: Put data types in alphabetical orderPeter Eisentraut
From: Andreas Karlsson <andreas@proxel.se>
2013-11-27Minor correction of READ COMMITTED isolation level docs.Kevin Grittner
Per report from AK
2013-11-27Documentation fix for ecpg.Michael Meskes
The latest fixes removed a limitation that was still in the docs, so Zoltan updated the docs, too.
2013-11-27Add --xlogdir option to pg_basebackup, for specifying the pg_xlog directory.Fujii Masao
Haribabu kommi, slightly modified by me.
2013-11-27Fix typo in release note.Fujii Masao
Backpatch to 9.1. Josh Kupershmidt
2013-11-26Implement information_schema.parameters.parameter_default columnPeter Eisentraut
Reviewed-by: Ali Dar <ali.munir.dar@gmail.com> Reviewed-by: Amit Khandekar <amit.khandekar@enterprisedb.com> Reviewed-by: Rodolfo Campero <rodolfo.campero@anachronics.com>
2013-11-26doc: Add id to index in XSLT buildPeter Eisentraut
That way, the HTML file name of the index will be the same as currently for the DSSSL build.
2013-11-25Change SET LOCAL/CONSTRAINTS/TRANSACTION and ABORT behaviorBruce Momjian
Change SET LOCAL/CONSTRAINTS/TRANSACTION behavior outside of a transaction block from error (post-9.3) to warning. (Was nothing in <= 9.3.) Also change ABORT outside of a transaction block from notice to warning.
2013-11-25More improvement to comment parsing in ecpg.Michael Meskes
ECPG is not supposed to allow and output nested comments in C. These comments are only allowed in the SQL parts and must not be written into the C file. Also the different handling of different comments is documented.
2013-11-23PL/Tcl: Add event trigger supportPeter Eisentraut
From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
2013-11-21Support multi-argument UNNEST(), and TABLE() syntax for multiple functions.Tom Lane
This patch adds the ability to write TABLE( function1(), function2(), ...) as a single FROM-clause entry. The result is the concatenation of the first row from each function, followed by the second row from each function, etc; with NULLs inserted if any function produces fewer rows than others. This is believed to be a much more useful behavior than what Postgres currently does with multiple SRFs in a SELECT list. This syntax also provides a reasonable way to combine use of column definition lists with WITH ORDINALITY: put the column definition list inside TABLE(), where it's clear that it doesn't control the ordinality column as well. Also implement SQL-compliant multiple-argument UNNEST(), by turning UNNEST(a,b,c) into TABLE(unnest(a), unnest(b), unnest(c)). The SQL standard specifies TABLE() with only a single function, not multiple functions, and it seems to require an implicit UNNEST() which is not what this patch does. There may be something wrong with that reading of the spec, though, because if it's right then the spec's TABLE() is just a pointless alternative spelling of UNNEST(). After further review of that, we might choose to adopt a different syntax for what this patch does, but in any case this functionality seems clearly worthwhile. Andrew Gierth, reviewed by Zoltán Böszörményi and Heikki Linnakangas, and significantly revised by me
2013-11-19docs: update page format to specify page checksum fieldBruce Momjian
Backpatch to 9.3 Per report from Steffen Hildebrandt
2013-11-17Add make_date() and make_time() functions.Tom Lane
Pavel Stehule, reviewed by Jeevan Chalke and Atri Sharma
2013-11-16Allow aggregates to provide estimates of their transition state data size.Tom Lane
Formerly the planner had a hard-wired rule of thumb for guessing the amount of space consumed by an aggregate function's transition state data. This estimate is critical to deciding whether it's OK to use hash aggregation, and in many situations the built-in estimate isn't very good. This patch adds a column to pg_aggregate wherein a per-aggregate estimate can be provided, overriding the planner's default, and infrastructure for setting the column via CREATE AGGREGATE. It may be that additional smarts will be required in future, perhaps even a per-aggregate estimation function. But this is already a step forward. This is extracted from a larger patch to improve the performance of numeric and int8 aggregates. I (tgl) thought it was worth reviewing and committing this infrastructure separately. In this commit, all built-in aggregates are given aggtransspace = 0, so no behavior should change. Hadi Moshayedi, reviewed by Pavel Stehule and Tomas Vondra
2013-11-15doc: Restore proper alphabetical order.Robert Haas
Colin 't Hart
2013-11-13Clarify CREATE FUNCTION documentation about handling of typmods.Tom Lane
The previous text was a bit misleading, as well as unnecessarily vague about what information would be discarded. Per gripe from Craig Skinner.
2013-11-13docs: clarify MVCC introduction to allow for per-statement snapshotsBruce Momjian
2013-11-12doc: Fix typo.Robert Haas
Reported by Thom Brown.
2013-11-10Fix whitespace issues found by git diff --check, add gitattributesPeter Eisentraut
Set per file type attributes in .gitattributes to fine-tune whitespace checks. With the associated cleanups, the tree is now clean for git
2013-11-08doc: Clarify under what circumstances pg_dump needs superuser access.Robert Haas
Inspired by, but different from, a patch from Ivan Lezhnjov IV
2013-11-08Add the notion of REPLICA IDENTITY for a table.Robert Haas
Pending patches for logical replication will use this to determine which columns of a tuple ought to be considered as its candidate key. Andres Freund, with minor, mostly cosmetic adjustments by me
2013-11-06Support default arguments and named-argument notation for window functions.Tom Lane
These things didn't work because the planner omitted to do the necessary preprocessing of a WindowFunc's argument list. Add the few dozen lines of code needed to handle that. Although this sounds like a feature addition, it's really a bug fix because the default-argument case was likely to crash previously, due to lack of checking of the number of supplied arguments in the built-in window functions. It's not a security issue because there's no way for a non-superuser to create a window function definition with defaults that refers to a built-in C function, but nonetheless people might be annoyed that it crashes rather than producing a useful error message. So back-patch as far as the patch applies easily, which turns out to be 9.2. I'll put a band-aid in earlier versions as a separate patch. (Note that these features still don't work for aggregates, and fixing that case will be harder since we represent aggregate arg lists as target lists not bare expression lists. There's no crash risk though because CREATE AGGREGATE doesn't accept defaults, and we reject named-argument notation when parsing an aggregate call.)
2013-11-05Improve the error message given for modifying a window with frame clause.Tom Lane
For rather inscrutable reasons, SQL:2008 disallows copying-and-modifying a window definition that has any explicit framing clause. The error message we gave for this only made sense if the referencing window definition itself contains an explicit framing clause, which it might well not. Moreover, in the context of an OVER clause it's not exactly obvious that "OVER (windowname)" implies copy-and-modify while "OVER windowname" does not. This has led to multiple complaints, eg bug #5199 from Iliya Krapchatov. Change to a hopefully more intelligible error message, and in the case where we have just "OVER (windowname)", add a HINT suggesting that omitting the parentheses will fix it. Also improve the related documentation. Back-patch to all supported branches.
2013-11-01Remove CTimeZone/HasCTZSet, root and branch.Tom Lane
These variables no longer have any useful purpose, since there's no reason to special-case brute force timezones now that we have a valid session_timezone setting for them. Remove the variables, and remove the SET/SHOW TIME ZONE code that deals with them. The user-visible impact of this is that SHOW TIME ZONE will now show a POSIX-style zone specification, in the form "<+-offset>-+offset", rather than an interval value when a brute-force zone has been set. While perhaps less intuitive, this is a better definition than before because it's actually possible to give that string back to SET TIME ZONE and get the same behavior, unlike what used to happen. We did not previously mention the angle-bracket syntax when describing POSIX timezone specifications; add some documentation so that people can figure out what these strings do. (There's still quite a lot of undocumented functionality there, but anybody who really cares can go read the POSIX spec to find out about it. In practice most people seem to prefer Olsen-style city names anyway.)
2013-10-28Improve documentation about usage of FDW validator functions.Tom Lane
SGML documentation, as well as code comments, failed to note that an FDW's validator will be applied to foreign-table options for foreign tables using the FDW. Etsuro Fujita