Skip to content
Snippets Groups Projects
  1. Dec 17, 2011
    • Andrew Dunstan's avatar
      Add --section option to pg_dump and pg_restore. · a4cd6abc
      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.
      a4cd6abc
  2. Dec 16, 2011
  3. Dec 14, 2011
  4. Dec 09, 2011
  5. Dec 07, 2011
    • Magnus Hagander's avatar
      Remove spclocation field from pg_tablespace · 16d8e594
      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.
      16d8e594
    • Tom Lane's avatar
      Create a "sort support" interface API for faster sorting. · c6e3ac11
      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
      c6e3ac11
  6. Dec 06, 2011
  7. Dec 05, 2011
  8. Dec 04, 2011
  9. Dec 02, 2011
  10. Dec 01, 2011
  11. Nov 30, 2011
  12. Nov 29, 2011
  13. Nov 28, 2011
  14. Nov 25, 2011
    • Tom Lane's avatar
      Fix unsupported options in CREATE TABLE ... AS EXECUTE. · 9ed439a9
      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.
      9ed439a9
  15. Nov 24, 2011
  16. Nov 23, 2011
    • Tom Lane's avatar
      Remove user-selectable ANALYZE option for range types. · 74c1723f
      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.
      74c1723f
    • Tom Lane's avatar
      Remove zero- and one-argument range constructor functions. · df735844
      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.
      df735844
  17. Nov 22, 2011
  18. Nov 21, 2011
  19. Nov 19, 2011
  20. Nov 18, 2011
    • Tom Lane's avatar
      Extend the unknowns-are-same-as-known-inputs type resolution heuristic. · 1a8b9fb5
      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).
      1a8b9fb5
  21. Nov 17, 2011
    • Robert Haas's avatar
      Remove ancient downcasing code from procedural language operations. · 67dc4eed
      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.
      67dc4eed
  22. Nov 14, 2011
    • Tom Lane's avatar
      Return NULL instead of throwing error when desired bound is not available. · 4f9e3306
      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.
      4f9e3306
    • Tom Lane's avatar
      Return FALSE instead of throwing error for comparisons with empty ranges. · 851c83fc
      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.
      851c83fc
  23. Nov 12, 2011
    • Peter Eisentraut's avatar
      Add psql expanded auto mode · 95d2af16
      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
      95d2af16
  24. Nov 11, 2011
Loading