1. 01 6月, 2013 2 次提交
  2. 31 5月, 2013 3 次提交
  3. 30 5月, 2013 2 次提交
  4. 29 5月, 2013 2 次提交
  5. 27 5月, 2013 1 次提交
    • S
      Documentation fix for ALTER TYPE .. RENAME · 05624220
      Stephen Frost 提交于
      The documentation for ALTER TYPE .. RENAME claimed to support a
      RESTRICT/CASCADE option at the 'type' level, which wasn't implemented
      and doesn't make a whole lot of sense to begin with.  What is supported,
      and previously undocumented, is
      
      ALTER TYPE .. RENAME ATTRIBUTE .. RESTRICT/CASCADE.
      
      I've updated the documentation and back-patched this to 9.1 where it was
      first introduced.
      05624220
  6. 24 5月, 2013 1 次提交
  7. 23 5月, 2013 2 次提交
    • R
      Fix typo in comment. · 6eb971bd
      Robert Haas 提交于
      Pavan Deolasee
      6eb971bd
    • H
      Print line number correctly in COPY. · e2ef2893
      Heikki Linnakangas 提交于
      When COPY uses the multi-insert method to insert a batch of tuples into the
      heap at a time, incorrect line number was printed if something went wrong in
      inserting the index tuples (primary key failure, for exampl), or processing
      after row triggers.
      
      Fixes bug #8173 reported by Lloyd Albin. Backpatch to 9.2, where the multi-
      insert code was added.
      e2ef2893
  8. 22 5月, 2013 3 次提交
  9. 21 5月, 2013 4 次提交
  10. 20 5月, 2013 3 次提交
  11. 19 5月, 2013 2 次提交
  12. 18 5月, 2013 1 次提交
  13. 17 5月, 2013 3 次提交
    • T
      Fix crash when trying to display a NOTIFY rule action. · 403bd6a1
      Tom Lane 提交于
      Fixes oversight in commit 2ffa740b.
      Per report from Josh Kupershmidt.
      
      I think we've broken this case before, so let's add a regression test
      this time.
      403bd6a1
    • T
      Fix fd.c to preserve errno where needed. · 6563fb2b
      Tom Lane 提交于
      PathNameOpenFile failed to ensure that the correct value of errno was
      returned to its caller after a failure (because it incorrectly supposed
      that free() can never change errno).  In some cases this would result
      in a user-visible failure because an expected ENOENT errno was replaced
      with something else.  Bogus EINVAL failures have been observed on OS X,
      for example.
      
      There were also a couple of places that could mangle an important value
      of errno if FDDEBUG was defined.  While the usefulness of that debug
      support is highly debatable, we might as well make it safe to use,
      so add errno save/restore logic to the DO_DB macro.
      
      Per bug #8167 from Nelson Minar, diagnosed by RhodiumToad.
      Back-patch to all supported branches.
      6563fb2b
    • T
      Fix some uses of "the quick brown fox". · e7bfc7e4
      Tom Lane 提交于
      If we're going to quote a well-known pangram, we should quote it
      accurately.  Per gripe from Thom Brown.
      e7bfc7e4
  14. 16 5月, 2013 1 次提交
    • T
      Allow CREATE FOREIGN TABLE to include SERIAL columns. · b1420686
      Tom Lane 提交于
      The behavior is that the required sequence is created locally, which is
      appropriate because the default expression will be evaluated locally.
      Per gripe from Brad Nicholson that this case was refused with a confusing
      error message.  We could have improved the error message but it seems
      better to just allow the case.
      
      Also, remove ALTER TABLE's arbitrary prohibition against being applied to
      foreign tables, which was pretty inconsistent considering we allow it for
      views, sequences, and other relation types that aren't even called tables.
      This is needed to avoid breaking pg_dump, which sometimes emits column
      defaults using separate ALTER TABLE commands.  (I think this can happen
      even when the default is not associated with a sequence, so that was a
      pre-existing bug once we allowed column defaults for foreign tables.)
      b1420686
  15. 15 5月, 2013 1 次提交
  16. 14 5月, 2013 4 次提交
  17. 13 5月, 2013 1 次提交
    • T
      Fix handling of strict non-set functions with NULLs in set-valued inputs. · 904af8db
      Tom Lane 提交于
      In a construct like "select plain_function(set_returning_function(...))",
      the plain function is applied to each output row of the SRF successively.
      If some of the SRF outputs are NULL, and the plain function is strict,
      you'd expect to get NULL results for such rows ... but what actually
      happened was that such rows were omitted entirely from the result set.
      This was due to confusion of this case with what should happen for nested
      set-returning functions; a strict SRF is indeed supposed to yield an empty
      set for null input.  Per bug #8150 from Erwin Brandstetter.
      
      Although this has been broken forever, we're not back-patching because
      of the possibility that some apps out there expect the incorrect behavior.
      This change should be listed as a possible incompatibility in the 9.3
      release notes.
      904af8db
  18. 12 5月, 2013 4 次提交
    • P
      pgbench: Fix order of options in --help output · f0ed3a8a
      Peter Eisentraut 提交于
      f0ed3a8a
    • P
      pg_xlogdump: Improve --help output · a4fd3366
      Peter Eisentraut 提交于
      a4fd3366
    • T
      Fix to_number() to correctly ignore thousands separator when it's '.'. · 35d50b52
      Tom Lane 提交于
      The existing code in NUM_numpart_from_char has hard-wired logic to treat
      '.' as decimal point, even when we're using a locale-aware format string
      and the locale says that '.' is the thousands separator.  This results in
      clearly wrong answers in FM mode (where we must be able to identify the
      decimal point location), as per bug report from Patryk Kordylewski.
      
      Since the initialization code in NUM_prepare_locale already sets up
      Np->decimal as either the locale decimal-point string or "." depending
      on which decimal-point format code was used, there's really no need to
      have any extra logic at all in NUM_numpart_from_char: we only need to
      test for a match to Np->decimal.
      
      (Note: AFAICS there's nothing in here that explicitly checks for thousands
      separators --- rather, any unmatched character is silently skipped over.
      That's pretty bogus IMO but it's not the issue being complained of.)
      
      This is a longstanding bug, but it's possible that some existing apps
      are depending on '.' being recognized as decimal point even when using
      a D format code.  Hence, no back-patch.  We should probably list this
      as a potential incompatibility in the 9.3 release notes.
      35d50b52
    • T
      Fix buildfarm incompatibility in updated pg_upgrade test script. · 8cade04c
      Tom Lane 提交于
      Looks like some versions of the buildfarm script try to set the port via
      --port in $EXTRA_REGRESS_OPTS.  Override that ...
      8cade04c