summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2012-01-01Update copyright notices for year 2012.Bruce Momjian
2011-12-31Send new protocol keepalive messages to standby servers.Simon Riggs
Allows streaming replication users to calculate transfer latency and apply delay via internal functions. No external functions yet.
2011-12-26Minor enhancements to MVCC chapterAlvaro Herrera
Author: Erik Rijkers
2011-12-24Rethink representation of index clauses' mapping to index columns.Tom Lane
In commit e2c2c2e8b1df7dfdb01e7e6f6191a569ce3c3195 I made use of nested list structures to show which clauses went with which index columns, but on reflection that's a data structure that only an old-line Lisp hacker could love. Worse, it adds unnecessary complication to the many places that don't much care which clauses go with which index columns. Revert to the previous arrangement of flat lists of clauses, and instead add a parallel integer list of column numbers. The places that care about the pairing can chase both lists with forboth(), while the places that don't care just examine one list the same as before. The only real downside to this is that there are now two more lists that need to be passed to amcostestimate functions in case they care about column matching (which btcostestimate does, so not passing the info is not an option). Rather than deal with 11-argument amcostestimate functions, pass just the IndexPath and expect the functions to extract fields from it. That gets us down to 7 arguments which is better than 11, and it seems more future-proof against likely additions to the information we keep about an index path.
2011-12-23Add bytea_agg, parallel to string_agg.Robert Haas
Pavel Stehule
2011-12-22Typo fixes.Robert Haas
All noted by Jaime Casanova.
2011-12-22Add a security_barrier option for views.Robert Haas
When a view is marked as a security barrier, it will not be pulled up into the containing query, and no quals will be pushed down into it, so that no function or operator chosen by the user can be applied to rows not exposed by the view. Views not configured with this option cannot provide robust row-level security, but will perform far better. Patch by KaiGai Kohei; original problem report by Heikki Linnakangas (in October 2009!). Review (in earlier versions) by Noah Misch and others. Design advice by Tom Lane and myself. Further review and cleanup by me.
2011-12-22Add ALTER DOMAIN ... RENAMEPeter Eisentraut
You could already rename domains using ALTER TYPE, but with this new command it is more consistent with how other commands treat domains as a subcategory of types.
2011-12-21sepgsql: Check CREATE permissions for some object types.Robert Haas
KaiGai Kohei, reviewed by Dimitri Fontaine and me.
2011-12-20Add support for privileges on typesPeter Eisentraut
This adds support for the more or less SQL-conforming USAGE privilege on types and domains. The intent is to be able restrict which users can create dependencies on types, which restricts the way in which owners can alter types. reviewed by Yeb Havinga
2011-12-19Allow CHECK constraints to be declared ONLYAlvaro Herrera
This makes them enforceable only on the parent table, not on children tables. This is useful in various situations, per discussion involving people bitten by the restrictive behavior introduced in 8.4. Message-Id: 8762mp93iw.fsf@comcast.net CAFaPBrSMMpubkGf4zcRL_YL-AERUbYF_-ZNNYfb3CVwwEqc9TQ@mail.gmail.com Authors: Nikhil Sontakke, Alex Hunsaker Reviewed by Robert Haas and myself
2011-12-19Teach SP-GiST to do index-only scans.Tom Lane
Operator classes can specify whether or not they support this; this preserves the flexibility to use lossy representations within an index. In passing, move constant data about a given index into the rd_amcache cache area, instead of doing fresh lookups each time we start an index operation. This is mainly to try to make sure that spgcanreturn() has insignificant cost; I still don't have any proof that it matters for actual index accesses. Also, get rid of useless copying of FmgrInfo pointers; we can perfectly well use the relcache's versions in-place.
2011-12-18Replace simple constant pg_am.amcanreturn with an AM support function.Tom Lane
The need for this was debated when we put in the index-only-scan feature, but at the time we had no near-term expectation of having AMs that could support such scans for only some indexes; so we kept it simple. However, the SP-GiST AM forces the issue, so let's fix it. This patch only installs the new API; no behavior actually changes.
2011-12-18Remove tabs in SGML file.Bruce Momjian
2011-12-17Add SP-GiST (space-partitioned GiST) index access method.Tom Lane
SP-GiST is comparable to GiST in flexibility, but supports non-balanced partitioned search structures rather than balanced trees. As described at PGCon 2011, this new indexing structure can beat GiST in both index build time and query speed for search problems that it is well matched to. There are a number of areas that could still use improvement, but at this point the code seems committable. Teodor Sigaev and Oleg Bartunov, with considerable revisions by Tom Lane
2011-12-17Same clarification for pg_restore.Andrew Dunstan
2011-12-17Clarify the post-data status on unvalidated check constraints.Andrew Dunstan
Per gripe from Thom Brown.
2011-12-16Add --section option to pg_dump and pg_restore.Andrew Dunstan
Valid values are --pre-data, data and post-data. The option can be given more than once. --schema-only is equivalent to --section=pre-data --section=post-data. --data-only is equivalent to --section=data. Andrew Dunstan, reviewed by Joachim Wieland and Josh Berkus.
2011-12-16Fix reference to "verify-ca" and "verify-full" in a note in the docs.Heikki Linnakangas
2011-12-15include_if_exists facility for config file.Andrew Dunstan
This works the same as include, except that an error is not thrown if the file is missing. Instead the fact that it's missing is logged. Greg Smith, reviewed by Euler Taveira de Oliveira.
2011-12-14Fix docs build I inadvertantly broke.Andrew Dunstan
2011-12-14Add --exclude-table-data option to pg_dump.Andrew Dunstan
Andrew Dunstan, reviewed by Josh Berkus, Robert Haas and Peter Geoghegan. This allows dumping of a table definition but not its data, on a per table basis. Table name patterns are supported just as for --exclude-table.
2011-12-14Add support for passing cursor parameters in named notation in PL/pgSQL.Heikki Linnakangas
Yeb Havinga, reviewed by Kevin Grittner, with small changes by me.
2011-12-09Add ALTER FOREIGN DATA WRAPPER / RENAME and ALTER SERVER / RENAMEPeter Eisentraut
2011-12-07Remove spclocation field from pg_tablespaceMagnus Hagander
Instead, add a function pg_tablespace_location(oid) used to return the same information, and do this by reading the symbolic link. Doing it this way makes it possible to relocate a tablespace when the database is down by simply changing the symbolic link.
2011-12-07Create a "sort support" interface API for faster sorting.Tom Lane
This patch creates an API whereby a btree index opclass can optionally provide non-SQL-callable support functions for sorting. In the initial patch, we only use this to provide a directly-callable comparator function, which can be invoked with a bit less overhead than the traditional SQL-callable comparator. While that should be of value in itself, the real reason for doing this is to provide a datatype-extensible framework for more aggressive optimizations, as in Peter Geoghegan's recent work. Robert Haas and Tom Lane
2011-12-06Make command-line tools smarter about finding a DB to connect to.Robert Haas
If unable to connect to "postgres", try "template1". This allows things to work more smoothly in the case where the postgres database has been dropped. And just in case that's not good enough, also allow the user to specify a maintenance database to be used for the initial connection, to cover the case where neither postgres nor template1 is suitable.
2011-12-06Add missing documentation for function pg_stat_get_wal_senders()Magnus Hagander
Euler Taveira de Oliveira
2011-12-05In pg_upgrade, allow tables using regclass to be upgraded because weBruce Momjian
preserve pg_class oids since PG 9.0.
2011-12-05plpython: Add SPI cursor supportPeter Eisentraut
Add a function plpy.cursor that is similar to plpy.execute but uses an SPI cursor to avoid fetching the entire result set into memory. Jan UrbaƄski, reviewed by Steve Singer
2011-12-04Add a \setenv command to psql.Andrew Dunstan
This can be used to set (or unset) environment variables that will affect programs called by psql (such as the PAGER), probably most usefully in a .psqlrc file. Andrew Dunstan, reviewed by Josh Kupershmidt.
2011-12-04Remove incorrect instructions to run CREATE FOREIGN DATA WRAPPERMagnus Hagander
The CREATE EXTENSION step does this automatically. Doing it again will cause an error.
2011-12-02Update documentation suggestions for debugging the backend.Bruce Momjian
Tom Lane, with minor adjustments by me.
2011-12-02Add some weasel wording about threaded usage of PGresults.Tom Lane
PGresults used to be read-only from the application's viewpoint, but now that we've exposed various functions that allow modification of a PGresult, that sweeping statement is no longer accurate. Noted by Dmitriy Igrishin.
2011-12-01Clarify documentation about SQL:2008 variant of LIMIT/OFFSET syntax.Tom Lane
The point that you need parentheses for non-constant expressions apparently needs to be brought out a bit more clearly, per bug #6315.
2011-12-01Add file-fdw documentation example.Bruce Momjian
Josh Berkus
2011-12-01Add documentation mention that 7 != NULL also returns NULL.Bruce Momjian
2011-11-30Update information about configuring SysV IPC parameters on NetBSD.Tom Lane
Per Emmanuel Kasper, sysctl works fine as of NetBSD 5.0.
2011-11-30Draft release notes for 9.1.2, 9.0.6, 8.4.10, 8.3.17, 8.2.23.Tom Lane
2011-11-29Change installation docs to mention general debugging options.Bruce Momjian
2011-11-29In docs, suggest "-O0 -g" only if using a debugger.Bruce Momjian
2011-11-29Suggest configure options for server developers.Bruce Momjian
Greg Smith
2011-11-28Remove erroneous claim about use of pg_locks.objid for advisory locks.Tom Lane
The correct information appears in the text, so just remove the statement in the table, where it did not fit nicely anyway. (Curiously, the correct info has been there much longer than the erroneous table entry.) Resolves problem noted by Daniele Varrazzo. In HEAD and 9.1, also do a bit of wordsmithing on other text on the page.
2011-11-28Add libpq connection option to disable SSL compressionMagnus Hagander
This can be used to remove the overhead of SSL compression on fast networks. Laurenz Albe
2011-11-24Fix unsupported options in CREATE TABLE ... AS EXECUTE.Tom Lane
The WITH [NO] DATA option was not supported, nor the ability to specify replacement column names; the former limitation wasn't even documented, as per recent complaint from Naoya Anzai. Fix by moving the responsibility for supporting these options into the executor. It actually takes less code this way ... catversion bump due to change in representation of IntoClause, which might affect stored rules.
2011-11-23Some more editing of the range-types documentation.Tom Lane
Be more thorough about specifying the expectations for canonical and subtype_diff functions, and move that info to the same place.
2011-11-23Remove user-selectable ANALYZE option for range types.Tom Lane
It's not clear that a per-datatype typanalyze function would be any more useful than a generic typanalyze for ranges. What *is* clear is that letting unprivileged users select typanalyze functions is a crash risk or worse. So remove the option from CREATE TYPE AS RANGE, and instead put in a generic typanalyze function for ranges. The generic function does nothing as yet, but hopefully we'll improve that before 9.2 release.
2011-11-22Remove zero- and one-argument range constructor functions.Tom Lane
Per discussion, the zero-argument forms aren't really worth the catalog space (just write 'empty' instead). The one-argument forms have some use, but they also have a serious problem with looking too much like functional cast notation; to the point where in many real use-cases, the parser would misinterpret what was wanted. Committing this as a separate patch, with the thought that we might want to revert part or all of it if we can think of some way around the cast ambiguity.
2011-11-22Small markup and wording improvementPeter Eisentraut
2011-11-20Further code review for range types patch.Tom Lane
Fix some bugs in coercion logic and pg_dump; more comment cleanup; minor cosmetic improvements.