- Dec 17, 2011
-
-
Andrew Dunstan authored
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.
-
- Dec 16, 2011
-
-
Heikki Linnakangas authored
-
Andrew Dunstan authored
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.
-
- Dec 14, 2011
-
-
Andrew Dunstan authored
-
Andrew Dunstan authored
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.
-
Heikki Linnakangas authored
Yeb Havinga, reviewed by Kevin Grittner, with small changes by me.
-
- Dec 09, 2011
-
-
Peter Eisentraut authored
-
- Dec 07, 2011
-
-
Magnus Hagander authored
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.
-
Tom Lane authored
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
-
- Dec 06, 2011
-
-
Robert Haas authored
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.
-
Magnus Hagander authored
Euler Taveira de Oliveira
-
- Dec 05, 2011
-
-
Bruce Momjian authored
preserve pg_class oids since PG 9.0.
-
Peter Eisentraut authored
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
-
- Dec 04, 2011
-
-
Andrew Dunstan authored
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.
-
Magnus Hagander authored
The CREATE EXTENSION step does this automatically. Doing it again will cause an error.
-
- Dec 02, 2011
-
-
Bruce Momjian authored
Tom Lane, with minor adjustments by me.
-
Tom Lane authored
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.
-
- Dec 01, 2011
-
-
Tom Lane authored
The point that you need parentheses for non-constant expressions apparently needs to be brought out a bit more clearly, per bug #6315.
-
Bruce Momjian authored
Josh Berkus
-
Bruce Momjian authored
-
Tom Lane authored
Per Emmanuel Kasper, sysctl works fine as of NetBSD 5.0.
-
Tom Lane authored
-
- Nov 30, 2011
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- Nov 29, 2011
-
-
Bruce Momjian authored
Greg Smith
-
- Nov 28, 2011
-
-
Tom Lane authored
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.
-
Magnus Hagander authored
This can be used to remove the overhead of SSL compression on fast networks. Laurenz Albe
-
- Nov 25, 2011
-
-
Tom Lane authored
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.
-
- Nov 24, 2011
-
-
Tom Lane authored
Be more thorough about specifying the expectations for canonical and subtype_diff functions, and move that info to the same place.
-
- Nov 23, 2011
-
-
Tom Lane authored
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.
-
Tom Lane authored
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.
-
- Nov 22, 2011
-
-
Peter Eisentraut authored
-
- Nov 21, 2011
-
-
Tom Lane authored
Fix some bugs in coercion logic and pg_dump; more comment cleanup; minor cosmetic improvements.
-
- Nov 19, 2011
-
-
Tom Lane authored
Lots of documentation cleanup today, and still more type_sanity tests.
-
- Nov 18, 2011
-
-
Tom Lane authored
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).
-
- Nov 17, 2011
-
-
Robert Haas authored
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.
-
- Nov 14, 2011
-
-
Tom Lane authored
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.
-
Tom Lane authored
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.
-
- Nov 12, 2011
-
-
Peter Eisentraut authored
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
-
- Nov 11, 2011
-
-
Robert Haas authored
-