summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2011-01-27Improve grammar and spelling in durability discussion.Tom Lane
2011-01-27Update non-durable docs about non-synchronous-commit allowingBruce Momjian
transaction loss for a _database_ crash.
2011-01-26Restructure streaming docs so streaming seems more integrated in theBruce Momjian
paragraphs, per suggestion from Dan Birken.
2011-01-26Update contrib documention mentions to point to actual documentationBruce Momjian
sections, rather than just calling it "/contrib/module_name". Also update pg_test_fsync build instructions now that it is in /contrib.
2011-01-26Update sync commit performance documentation to be consistent with otherBruce Momjian
non-durable items, per Robert Haas.
2011-01-26Make 'on' uppercase in a sql example.Itagaki Takahiro
2011-01-25Update warning about synchronous-commit durability, per suggestion fromBruce Momjian
Robvert Haas.
2011-01-25Correct ALTER TYPE -> SET DATA TYPE in ALTER TABLE documentation.Robert Haas
The latter is the correct name of the operation to change the data type of a column. Noah Misch
2011-01-25Remove old claim that ExclusiveLock is sometimes taken on system catalogs.Tom Lane
We used to do that on pg_listener, but pg_listener is no more. Also add a bit more documentation for ShareRowExclusive mode.
2011-01-25Fix thinko in ALTER FOREIGN TABLE documentation.Robert Haas
Noah Misch
2011-01-25Replace pg_class.relhasexclusion with pg_index.indisexclusion.Tom Lane
There isn't any need to track this state on a table-wide basis, and trying to do so introduces undesirable semantic fuzziness. Move the flag to pg_index, where it clearly describes just a single index and can be immutable after index creation.
2011-01-25Implement ALTER TABLE ADD UNIQUE/PRIMARY KEY USING INDEX.Tom Lane
This feature allows a unique or pkey constraint to be created using an already-existing unique index. While the constraint isn't very functionally different from the bare index, it's nice to be able to do that for documentation purposes. The main advantage over just issuing a plain ALTER TABLE ADD UNIQUE/PRIMARY KEY is that the index can be created with CREATE INDEX CONCURRENTLY, so that there is not a long interval where the table is locked against updates. On the way, refactor some of the code in DefineIndex() and index_create() so that we don't have to pass through those functions in order to create the index constraint's catalog entries. Also, in parse_utilcmd.c, pass around the ParseState pointer in struct CreateStmtContext to save on notation, and add error location pointers to some error reports that didn't have one before. Gurjeet Singh, reviewed by Steve Singer and Tom Lane
2011-01-24More documentation cleanup for sepgsql.Robert Haas
Thom Brown and Robert Haas
2011-01-23First round of cleanup of sepgsql code and documentation.Robert Haas
Robert Haas, with a few suggestions from Thom Brown
2011-01-23sepgsql, an SE-Linux integration for PostgreSQLRobert Haas
This is still pretty rough - among other things, the documentation needs work, and the messages need a visit from the style police - but this gets the basic framework in place. KaiGai Kohei
2011-01-23Add 'directory' format to pg_dump. The new directory format is compatibleHeikki Linnakangas
with the 'tar' format, in that untarring a tar format archive produces a valid directory format archive. Joachim Wieland and Heikki Linnakangas
2011-01-23Only show pg_stat_replication details to superusersMagnus Hagander
2011-01-23Add pg_basebackup tool for streaming base backupsMagnus Hagander
This tool makes it possible to do the pg_start_backup/ copy files/pg_stop_backup step in a single command. There are still some steps to be done before this is a complete backup solution, such as the ability to stream the required WAL logs, but it's still usable, and could do with some buildfarm coverage. In passing, make the checkpoint request optionally fast instead of hardcoding it. Magnus Hagander, reviewed by Fujii Masao and Dimitri Fontaine
2011-01-22Allow the wal_buffers setting to be auto-tuned to a reasonable value.Tom Lane
If wal_buffers is initially set to -1 (which is now the default), it's replaced by 1/32nd of shared_buffers, with a minimum of 8 (the old default) and a maximum of the XLOG segment size. The allowed range for manual settings is still from 4 up to whatever will fit in shared memory. Greg Smith, with implementation correction by me.
2011-01-21Clean up pg_test_fsync commit.Tom Lane
Actually rename the program, rather than just claiming we did. Hook it into the build system. Get rid of useless dependency on libpq. Clean up #include list and messy whitespace.
2011-01-21Fix broken markup, also minor copy-editing.Tom Lane
2011-01-21Emphasize where OVER needs to be when using a window function.Robert Haas
Jeff Turner
2011-01-21Update SGML docs to point to new /contrib/pg_test_fsync.Bruce Momjian
2011-01-21Move test_fsync to /contrib.Bruce Momjian
2011-01-20Add new psql command \dL to list languages.Robert Haas
Original patch by Fernando Ike, revived by Josh Kuperschmidt, reviewed by Andreas Karlsson, and in earlier versions by Tom Lane and Peter Eisentraut.
2011-01-19Document that WITH queries are also called Common Table Expressions.Robert Haas
Peter Geoghegan, reviewed by Stephen Frost
2011-01-19Show correct datatype for pg_class.relpersistence, plus a typo fix.Tom Lane
Thom Brown
2011-01-17In the docs, better distinguish server from client SSL settings in the ↵Bruce Momjian
documentation. Ray Stell Also fix some libpq title capitalization problems.
2011-01-14Use a lexer and grammar for parsing walsender commandsMagnus Hagander
Makes it easier to parse mainly the BASE_BACKUP command with it's options, and avoids having to manually deal with quoted identifiers in the label (previously broken), and makes it easier to add new commands and options in the future. In passing, refactor the case statement in the walsender to put each command in it's own function.
2011-01-13Code review for postmaster.pid contents changes.Tom Lane
Fix broken test for pre-existing postmaster, caused by wrong code for appending lines to the lockfile; don't write a failed listen_address setting into the lockfile; don't arbitrarily change the location of the data directory in the lockfile compared to previous releases; provide more consistent and useful definitions of the socket path and listen_address entries; avoid assuming that pg_ctl has the same DEFAULT_PGSOCKET_DIR as the postmaster; assorted code style improvements.
2011-01-13More libpq documentation adjustments from Leslie S Satenstein, reviewedBruce Momjian
by Robert Haas.
2011-01-13Don't run regression tests in SQL_ASCII encoding by defaultPeter Eisentraut
Instead, run them in the encoding that the locale selects, which is more representative of real use. Also document how locale and encoding for regression test runs can be selected.
2011-01-12Apply libpq documentation patches submitted by Leslie S Satenstein andBruce Momjian
reviewed by Robert Haas.
2011-01-12Revert patch adding support for logging the current role.Robert Haas
This reverts commit a8a8867912c46a68c9ac14903b3dba2fab8f7097, committed by me earlier today (2011-01-12). This isn't safe inside an aborted transaction. Noted by Tom Lane.
2011-01-12Add support for logging the current role.Robert Haas
Stephen Frost, with some editorialization by me.
2011-01-11Add some subsection headingsPeter Eisentraut
2011-01-11Track walsender state in shared memory and expose in pg_stat_replicationMagnus Hagander
2011-01-11Typo fixMagnus Hagander
Josh Kupershmidt
2011-01-10Backend support for streaming base backupsMagnus Hagander
Add BASE_BACKUP command to walsender, allowing it to stream a base backup to the client (in tar format). The syntax is still far from ideal, that will be fixed in the switch to use a proper grammar for walsender. No client included yet, will come as a separate commit. Magnus Hagander and Heikki Linnakangas
2011-01-09Fix assorted corner-case bugs in contrib/intarray.Tom Lane
The array containment operators now behave per mathematical expectation for empty arrays (ie, an empty array is contained in anything). Both these operators and the query_int operators now work as expected in GiST and GIN index searches, rather than having corner cases where the index searches gave different answers. Also, fix unexpected failures where the operators would claim that an array contained nulls, when in fact there was no longer any null present (similar to bug #5784). The restriction to not have nulls is still there, as removing it would take a lot of added code complexity and probably slow things down significantly. Also, remove the arbitrary restriction to 1-D arrays; unlike the other restriction, this was buying us nothing performance-wise. Assorted cosmetic improvements and marginal performance improvements, too.
2011-01-08Remove pg_am.amindexnulls.Tom Lane
The only use we have had for amindexnulls is in determining whether an index is safe to cluster on; but since the addition of the amclusterable flag, that usage is pretty redundant. In passing, clean up assorted sloppiness from the last patch that touched pg_am.h: Natts_pg_am was wrong, and ambuildempty was not documented.
2011-01-08Remove bogus claims regarding createuser defaults.Robert Haas
Josh Kupershmidt
2011-01-07Fix GIN to support null keys, empty and null items, and full index scans.Tom Lane
Per my recent proposal(s). Null key datums can now be returned by extractValue and extractQuery functions, and will be stored in the index. Also, placeholder entries are made for indexable items that are NULL or contain no keys according to extractValue. This means that the index is now always complete, having at least one entry for every indexed heap TID, and so we can get rid of the prohibition on full-index scans. A full-index scan is implemented much the same way as partial-match scans were already: we build a bitmap representing all the TIDs found in the index, and then drive the results off that. Also, introduce a concept of a "search mode" that can be requested by extractQuery when the operator requires matching to empty items (this is just as cheap as matching to a single key) or requires a full index scan (which is not so cheap, but it sure beats failing or giving wrong answers). The behavior remains backward compatible for opclasses that don't return any null keys or request a non-default search mode. Using these features, we can now make the GIN index opclass for anyarray behave in a way that matches the actual anyarray operators for &&, <@, @>, and = ... which it failed to do before in assorted corner cases. This commit fixes the core GIN code and ginarrayprocs.c, updates the documentation, and adds some simple regression test cases for the new behaviors using the array operators. The tsearch and contrib GIN opclass support functions still need to be looked over and probably fixed. Another thing I intend to fix separately is that this is pretty inefficient for cases where more than one scan condition needs a full-index search: we'll run duplicate GinScanEntrys, each one of which builds a large bitmap. There is some existing logic to merge duplicate GinScanEntrys but it needs refactoring to make it work for entries belonging to different scan keys. Note that most of gin.h has been split out into a new file gin_private.h, so that gin.h doesn't export anything that's not supposed to be used by GIN opclasses or the rest of the backend. I did quite a bit of other code beautification work as well, mostly fixing comments and choosing more appropriate names for things.
2011-01-07Document pg_stat_replication, bump catversion since that was overlooked.Robert Haas
Itagaki Takahiro, edited by me.
2011-01-07Improve markup of unnest examplePeter Eisentraut
2011-01-07Improve array_upper examplePeter Eisentraut
The previous example didn't make it clear whether array_upper returned the last element or the index of the last element.
2011-01-05Update documentation to say that \lo_import sets :LASTOID, notBruce Momjian
lo_insert.
2011-01-05Give superusers REPLIACTION permission by defaultMagnus Hagander
This can be overriden by using NOREPLICATION on the CREATE ROLE statement, but by default they will have it, making it backwards compatible and "less surprising" (given that superusers normally override all checks).
2011-01-03Add views and functions to monitor hot standby query conflictsMagnus Hagander
Add the view pg_stat_database_conflicts and a column to pg_stat_database, and the underlying functions to provide the information.
2011-01-03Add missing part of replication role docsMagnus Hagander
Noted by Peter E.