summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
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.
2011-11-18Further review of range-types patch.Tom Lane
Lots of documentation cleanup today, and still more type_sanity tests.
2011-11-17Extend the unknowns-are-same-as-known-inputs type resolution heuristic.Tom Lane
For a very long time, one of the parser's heuristics for resolving ambiguous operator calls has been to assume that unknown-type literals are of the same type as the other input (if it's known). However, this was only used in the first step of quickly checking for an exact-types match, and thus did not help in resolving matches that require coercion, such as matches to polymorphic operators. As we add more polymorphic operators, this becomes more of a problem. This patch adds another use of the same heuristic as a last-ditch check before failing to resolve an ambiguous operator or function call. In particular this will let us define the range inclusion operator in a less limited way (to come in a follow-on patch).
2011-11-17Remove ancient downcasing code from procedural language operations.Robert Haas
A very long time ago, language names were specified as literals rather than identifiers, so this code was added to do case-folding. But that style has ben deprecated for many years so this isn't needed any more. Language names will still be downcased when specified as unquoted identifiers, but quoted identifiers or the old style using string literals will be left as-is.
2011-11-14Return NULL instead of throwing error when desired bound is not available.Tom Lane
Change range_lower and range_upper to return NULL rather than throwing an error when the input range is empty or the relevant bound is infinite. Per discussion, throwing an error seems likely to be unduly hard to work with. Also, this is more consistent with the behavior of the constructors, which treat NULL as meaning an infinite bound.
2011-11-14Return FALSE instead of throwing error for comparisons with empty ranges.Tom Lane
Change range_before, range_after, range_adjacent to return false rather than throwing an error when one or both input ranges are empty. The original definition is unnecessarily difficult to use, and also can result in undesirable planner failures since the planner could try to compare an empty range to something else while deriving statistical estimates. (This was, in fact, the cause of repeatable regression test failures on buildfarm member jaguar, as well as intermittent failures elsewhere.) Also tweak rangetypes regression test to not drop all the objects it creates, so that the final state of the regression database contains some rangetype objects for pg_dump testing.
2011-11-12Add psql expanded auto modePeter Eisentraut
This adds the "auto" option to the \x command, which switches to the expanded mode when the normal output would be wider than the screen. reviewed by Noah Misch
2011-11-10Correct documentation for trace_userlocks.Robert Haas
2011-11-10Revert removal of trace_userlocks, because userlocks aren't gone.Robert Haas
This reverts commit 0180bd6180511875db046bf8ddcaa633a2952dfd. contrib/userlock is gone, but user-level locking still exists, and is exposed via the pg_advisory* family of functions.
2011-11-10Document that PQexec() can handle a NULL res pointer just fine.Bruce Momjian
Backpatch to 9.1. Mark Hills
2011-11-08Adjust range type docs for some last-minute changes I made to the patch.Heikki Linnakangas
non_empty(anyrange) function was removed, empty(anyrange) was renamed to isempty(anyrange), and !? operators were removed.
2011-11-08-DLINUX_OOM_ADJ=0 should be in CPPFLAGS, not CFLAGSPeter Eisentraut
2011-11-07Remove hstore's text => text operator.Robert Haas
Since PostgreSQL 9.0, we've emitted a warning message when an operator named => is created, because the SQL standard now reserves that token for another use. But we've also shipped such an operator with hstore. Use of the function hstore(text, text) has been recommended in preference to =>(text, text). Per discussion, it's now time to take the next step and stop shipping the operator. This will allow us to prohibit the use of => as an operator name in a future release if and when we wish to support the SQL standard use of this token. The release notes should mention this incompatibility. Patch by me, reviewed by David Wheeler, Dimitri Fontaine and Tom Lane.
2011-11-07Minor grammar improvements.Robert Haas
2011-11-04Fix archive_command examplePeter Eisentraut
The given archive_command example didn't use %p or %f, which wouldn't really work in practice.
2011-11-04Add note about using GNU tar warning options for base backupsPeter Eisentraut
2011-11-03Role membership of superusers is only by explicit membership for HBA.Andrew Dunstan
Document that this rule applies to 'samerole' as well as to named roles. Per gripe from Tom Lane.
2011-11-03Do not treat a superuser as a member of every role for HBA purposes.Andrew Dunstan
This makes it possible to use reject lines with group roles. Andrew Dunstan, reviewd by Robert Haas.
2011-11-03Support range data types.Heikki Linnakangas
Selectivity estimation functions are missing for some range type operators, which is a TODO. Jeff Davis
2011-11-03Improve docs for timing and skipping of checkpointsSimon Riggs
Greg Smith
2011-11-01Document that multiple LDAP servers can be specifiedMagnus Hagander
2011-10-28Clarify that ORDER BY/FOR UPDATE can't malfunction at higher iso levels.Robert Haas
Kevin Grittner
2011-10-28Change "and and" to "and".Robert Haas
Report by Vik Reykja, patch by Kevin Grittner.
2011-10-26Typo fixes.Tom Lane
expect -> except, noted by Andrew Dunstan. Also, "cannot" seems more readable here than "can not", per David Wheeler.
2011-10-26Implement streaming xlog for backup toolsMagnus Hagander
Add option for parallel streaming of the transaction log while a base backup is running, to get the logfiles before the server has removed them. Also add a tool called pg_receivexlog, which streams the transaction log into files, creating a log archive without having to wait for segments to complete, thus decreasing the window of data loss without having to waste space using archive_timeout. This works best in combination with archive_command - suggested usage docs etc coming later.
2011-10-25Fix typoMagnus Hagander
2011-10-25Support configurable eventlog application names on WindowsMagnus Hagander
This allows different instances to use the eventlog with different identifiers, by setting the event_source GUC, similar to how syslog_ident works. Original patch by MauMau, heavily modified by Magnus Hagander