summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2014-02-10Don't generate plain-text HISTORY and src/test/regress/README anymore.Tom Lane
Providing this information as plain text was doubtless worth the trouble ten years ago, but it seems likely that hardly anyone reads it in this format anymore. And the effort required to maintain these files (in the form of extra-complex markup rules in the relevant parts of the SGML documentation) is significant. So, let's stop doing that and rely solely on the other documentation formats. Per discussion, the plain-text INSTALL instructions might still be worth their keep, so we continue to generate that file. Rather than remove HISTORY and src/test/regress/README from distribution tarballs entirely, replace them with simple stub files that tell the reader where to find the relevant documentation. This is mainly to avoid possibly breaking packaging recipes that expect these files to exist. Back-patch to all supported branches, because simplifying the markup requirements for release notes won't help much unless we do it in all branches.
2014-02-05doc: Disable indentation of XHTML outputPeter Eisentraut
Indenting the XHTML output can lead to incorrect rendering. This only affects the build via XSLT.
2014-02-05Minor improvements to replication slot documentation.Robert Haas
Fix a thinko pointed out by Jeff Davis, and convert a couple of other references into links.
2014-02-03Rephrase text to avoid links in regress.sgmlRobert Haas
Otherwise, the standalone regress_README build gets unhappy.
2014-02-03Document a few more regression test hazards.Robert Haas
Michael Paquier, reviewed by Christian Kruse
2014-02-03Add <indexterm> for functions pg_sleep_for and pg_sleep_until.Fujii Masao
2014-02-02Fix typos in docs and comments.Fujii Masao
Thom Brown
2014-01-31Introduce replication slots.Robert Haas
Replication slots are a crash-safe data structure which can be created on either a master or a standby to prevent premature removal of write-ahead log segments needed by a standby, as well as (with hot_standby_feedback=on) pruning of tuples whose removal would cause replication conflicts. Slots have some advantages over existing techniques, as explained in the documentation. In a few places, we refer to the type of replication slots introduced by this patch as "physical" slots, because forthcoming patches for logical decoding will also have slots, but with somewhat different properties. Andres Freund and Robert Haas
2014-01-31docs: mention 'g' is not in the regex embedded options tableBruce Momjian
Mentioned in substring() and regexp_replace() sections.
2014-01-31doc: mention statistics reset during crash recoveryBruce Momjian
Takayuki Tsunakawa
2014-01-31doc: mention data page checksums in WAL sectionBruce Momjian
Backpatch to 9.3 Adjusted patch from Ian Lawrence Barwick
2014-01-31docs: mention tgconstrindid supports exclusion constraintsBruce Momjian
Dean Rasheed
2014-01-31Add some examples to the postgres_fdw documentation.Tom Lane
Michael Paquier
2014-01-31doc: authentication wording improvementsBruce Momjian
Suggested by David Tonhofer
2014-01-31docs: specify FOR UPDATE/SHARE incompatibilitiesBruce Momjian
Document that FOR UPDATE/SHARE are incompatible with GROUP BY, DISTINCT, HAVING and window functions. Michael Paquier
2014-01-31Fix documented return type of json_array_elements_text.Andrew Dunstan
Per gripe from hubert depesz lubaczewski. Also improve examples for this and json_array_elements so they match the example results.
2014-01-30Add convenience functions pg_sleep_for and pg_sleep_until.Robert Haas
Vik Fearing, reviewed by Pavel Stehule and myself
2014-01-30docs: improve xref description for xreflabel and refentry linksBruce Momjian
2014-01-30docs: mention SGML refentry also pulls text from the linkBruce Momjian
2014-01-30docs: add mention of index swappingBruce Momjian
Backpatch to 9.3 Greg Smith
2014-01-30Add checks for interval overflow/underflowBruce Momjian
New checks include input, month/day/time internal adjustments, addition, subtraction, multiplication, and negation. Also adjust docs to correctly specify interval size in bytes. Report from Rok Kralj
2014-01-29Include planning time in EXPLAIN ANALYZE output.Robert Haas
This doesn't work for prepared queries, but it's not too easy to get the information in that case and there's some debate as to exactly what the right thing to measure is, so just do this for now. Andreas Karlsson, with slight doc changes by me.
2014-01-29Add json_array_elements_text function.Andrew Dunstan
This was a notable omission from the json functions added in 9.3 and there have been numerous complaints about its absence. Laurence Rowe.
2014-01-29Remedy two small omissions in the new json functions docs.Andrew Dunstan
2014-01-29Fix docs build.Heikki Linnakangas
Broken by the huge_tlb_pages patch. Vik Fearing.
2014-01-29Allow using huge TLB pages on Linux (MAP_HUGETLB)Heikki Linnakangas
This patch adds an option, huge_tlb_pages, which allows requesting the shared memory segment to be allocated using huge pages, by using the MAP_HUGETLB flag in mmap(). This can improve performance. The default is 'try', which means that we will attempt using huge pages, and fall back to non-huge pages if it doesn't work. Currently, only Linux has MAP_HUGETLB. On other platforms, the default 'try' behaves the same as 'off'. In the passing, don't try to round the mmap() size to a multiple of pagesize. mmap() doesn't require that, and there's no particular reason for PostgreSQL to do that either. When using MAP_HUGETLB, however, round the request size up to nearest 2MB boundary. This is to work around a bug in some Linux kernel versions, but also to avoid wasting memory, because the kernel will round the size up anyway. Many people were involved in writing this patch, including Christian Kruse, Richard Poole, Abhijit Menon-Sen, reviewed by Peter Geoghegan, Andres Freund and me.
2014-01-28Minor docs fixes for new json functions.Andrew Dunstan
Thom Brown.
2014-01-28New json functions.Andrew Dunstan
json_build_array() and json_build_object allow for the construction of arbitrarily complex json trees. json_object() turns a one or two dimensional array, or two separate arrays, into a json_object of name/value pairs, similarly to the hstore() function. json_object_agg() aggregates its two arguments into a single json object as name value pairs. Catalog version bumped. Andrew Dunstan, reviewed by Marko Tiikkaja.
2014-01-29Add pg_stat_archiver statistics view.Fujii Masao
This view shows the statistics about the WAL archiver process's activity. Gabriele Bartolini, reviewed by Michael Paquier, refactored a bit by me.
2014-01-27Keep pg_stat_statements' query texts in a file, not in shared memory.Tom Lane
This change allows us to eliminate the previous limit on stored query length, and it makes the shared-memory hash table very much smaller, allowing more statements to be tracked. (The default value of pg_stat_statements.max is therefore increased from 1000 to 5000.) In typical scenarios, the hash table can be large enough to hold all the statements commonly issued by an application, so that there is little "churn" in the set of tracked statements, and thus little need to do I/O to the file. To further reduce the need for I/O to the query-texts file, add a way to retrieve all the columns of the pg_stat_statements view except for the query text column. This is probably not of much interest for human use but it could be exploited by programs, which will prefer using the queryid anyway. Ordinarily, we'd need to bump the extension version number for the latter change. But since we already advanced pg_stat_statements' version number from 1.1 to 1.2 in the 9.4 development cycle, it seems all right to just redefine what 1.2 means. Peter Geoghegan, reviewed by Pavel Stehule
2014-01-27Relax the requirement that all lwlocks be stored in a single array.Robert Haas
This makes it possible to store lwlocks as part of some other data structure in the main shared memory segment, or in a dynamic shared memory segment. There is still a main LWLock array and this patch does not move anything out of it, but it provides necessary infrastructure for doing that in the future. This change is likely to increase the size of LWLockPadded on some platforms, especially 32-bit platforms where it was previously only 16 bytes. Patch by me. Review by Andres Freund and KaiGai Kohei.
2014-01-27Code review for auto-tuned effective_cache_size.Tom Lane
Fix integer overflow issue noted by Magnus Hagander, as well as a bunch of other infelicities in commit ee1e5662d8d8330726eaef7d3110cb7add24d058 and its unreasonably large number of followups.
2014-01-26Provide for client-only installs with MSVC.Andrew Dunstan
MauMau.
2014-01-26Enable building with Visual Studion 2013.Andrew Dunstan
Backpatch to 9.3. Brar Piening.
2014-01-26Use E, not e, for escaping in example docsStephen Frost
From the Department of Nitpicking, be consistent with other escaping and use 'E' instead of 'e' to escape the string in the example docs for GET DISAGNOSTICS stack = PG_CONTEXT. Noticed by Department Chief Magnus Hagander.
2014-01-25Copy-editing docs for recovery_target='immediate', and "ie."Heikki Linnakangas
Phrase the sentence better. Also, spell "i.e." rather than "ie." Thom Brown
2014-01-25docs: mention CREATE TABLE LIKE linkage using INCLUDING DEFAULTSBruce Momjian
Mention that CREATE TABLE LIKE INCLUDING DEFAULTS creates a link between the original and new tables if a default function modifies the database, like nextval().
2014-01-25Add recovery_target='immediate' option.Heikki Linnakangas
This allows ending recovery as a consistent state has been reached. Without this, there was no easy way to e.g restore an online backup, without replaying any extra WAL after the backup ended. MauMau and me.
2014-01-23ALTER TABLESPACE ... MOVE ... OWNED BYStephen Frost
Add the ability to specify the objects to move by who those objects are owned by (as relowner) and change ALL to mean ALL objects. This makes the command always operate against a well-defined set of objects and not have the objects-to-be-moved based on the role of the user running the command. Per discussion with Simon and Tom.
2014-01-24Remove duplicate index entry DATE_TRUNC in document.Fujii Masao
2014-01-24Add libpq function PQhostaddr().Fujii Masao
There was a bug in the psql's meta command \conninfo. When the IP address was specified in the hostaddr and psql used it to create a connection (i.e., psql -d "hostaddr=xxx"), \conninfo could not display that address. This is because \conninfo got the connection information only from PQhost() which could not return hostaddr. This patch adds PQhostaddr(), and changes \conninfo so that it can display not only the host name that PQhost() returns but also the IP address which PQhostaddr() returns. The bug has existed since 9.1 where \conninfo was introduced. But it's too late to add new libpq function into the released versions, so no backpatch.
2014-01-22Add date_trunc('', interval) documentation mentionBruce Momjian
Report from Eric Howe
2014-01-21Add a cardinality function for arrays.Robert Haas
Unlike our other array functions, this considers the total number of elements across all dimensions, and returns 0 rather than NULL when the array has no elements. But it seems that both of those behaviors are almost universally disliked, so hopefully that's OK. Marko Tiikkaja, reviewed by Dean Rasheed and Pavel Stehule
2014-01-19Remove support for native krb5 authenticationMagnus Hagander
krb5 has been deprecated since 8.3, and the recommended way to do Kerberos authentication is using the GSSAPI authentication method (which is still fully supported). libpq retains the ability to identify krb5 authentication, but only gives an error message about it being unsupported. Since all authentication is initiated from the backend, there is no need to keep it at all in the backend.
2014-01-18Add CREATE TABLESPACE ... WITH ... OptionsStephen Frost
Tablespaces have a few options which can be set on them to give PG hints as to how the tablespace behaves (perhaps it's faster for sequential scans, or better able to handle random access, etc). These options were only available through the ALTER TABLESPACE command. This adds the ability to set these options at CREATE TABLESPACE time, removing the need to do both a CREATE TABLESPACE and ALTER TABLESPACE to get the correct options set on the tablespace. Vik Fearing, reviewed by Michael Paquier.
2014-01-18Add ALTER TABLESPACE ... MOVE commandStephen Frost
This adds a 'MOVE' sub-command to ALTER TABLESPACE which allows moving sets of objects from one tablespace to another. This can be extremely handy and avoids a lot of error-prone scripting. ALTER TABLESPACE ... MOVE will only move objects the user owns, will notify the user if no objects were found, and can be used to move ALL objects or specific types of objects (TABLES, INDEXES, or MATERIALIZED VIEWS).
2014-01-17Add gen_random_uuid() to contrib/pgcrypto.Tom Lane
This function provides a way of generating version 4 (pseudorandom) UUIDs based on pgcrypto's PRNG. The main reason for doing this is that the OSSP UUID library depended on by contrib/uuid-ossp is becoming more and more of a porting headache, so we need an alternative for people who can't install that. A nice side benefit though is that this implementation is noticeably faster than uuid-ossp's uuid_generate_v4() function. Oskari Saarenmaa, reviewed by Emre Hasegeli
2014-01-16doc: rename "Equals" to "Equal"Bruce Momjian
2014-01-16doc: fix := description typo.Bruce Momjian
2014-01-16docs: update PL/pgSQL docs about the use of := and =Bruce Momjian