1. 06 1月, 2012 2 次提交
    • P
      Improve ALTER DOMAIN / DROP CONSTRAINT with nonexistent constraint · 104e7dac
      Peter Eisentraut 提交于
      ALTER DOMAIN / DROP CONSTRAINT on a nonexistent constraint name did
      not report any error.  Now it reports an error.  The IF EXISTS option
      was added to get the usual behavior of ignoring nonexistent objects to
      drop.
      104e7dac
    • A
      Work around perl bug in SvPVutf8(). · 2abefd9a
      Andrew Dunstan 提交于
      Certain things like typeglobs or readonly things like $^V cause
      perl's SvPVutf8() to die nastily and crash the backend. To avoid
      that bug we make a copy of the object, which will subsequently be
      garbage collected.
      
      Back patched to 9.1 where we first started using SvPVutf8().
      
      Per -hackers discussion. Original problem reported by David Wheeler.
      2abefd9a
  2. 05 1月, 2012 2 次提交
    • M
      Ecpglib stores variables that are used in DECLARE statements in a global list. · 8cf82ac5
      Michael Meskes 提交于
      This list is now freed when the last connection has been closed.
      
      Closes: #6366
      8cf82ac5
    • T
      Make executor's SELECT INTO code save and restore original tuple receiver. · dfd26f9c
      Tom Lane 提交于
      As previously coded, the QueryDesc's dest pointer was left dangling
      (pointing at an already-freed receiver object) after ExecutorEnd.  It's a
      bit astonishing that it took us this long to notice, and I'm not sure that
      the known problem case with SQL functions is the only one.  Fix it by
      saving and restoring the original receiver pointer, which seems the most
      bulletproof way of ensuring any related bugs are also covered.
      
      Per bug #6379 from Paul Ramsey.  Back-patch to 8.4 where the current
      handling of SELECT INTO was introduced.
      dfd26f9c
  3. 04 1月, 2012 3 次提交
  4. 03 1月, 2012 4 次提交
  5. 02 1月, 2012 12 次提交
  6. 31 12月, 2011 3 次提交
  7. 30 12月, 2011 3 次提交
  8. 29 12月, 2011 1 次提交
  9. 28 12月, 2011 5 次提交
  10. 27 12月, 2011 1 次提交
  11. 25 12月, 2011 1 次提交
    • T
      Rethink representation of index clauses' mapping to index columns. · 472d3935
      Tom Lane 提交于
      In commit e2c2c2e8 I made use of nested
      list structures to show which clauses went with which index columns, but
      on reflection that's a data structure that only an old-line Lisp hacker
      could love.  Worse, it adds unnecessary complication to the many places
      that don't much care which clauses go with which index columns.  Revert
      to the previous arrangement of flat lists of clauses, and instead add a
      parallel integer list of column numbers.  The places that care about the
      pairing can chase both lists with forboth(), while the places that don't
      care just examine one list the same as before.
      
      The only real downside to this is that there are now two more lists that
      need to be passed to amcostestimate functions in case they care about
      column matching (which btcostestimate does, so not passing the info is not
      an option).  Rather than deal with 11-argument amcostestimate functions,
      pass just the IndexPath and expect the functions to extract fields from it.
      That gets us down to 7 arguments which is better than 11, and it seems
      more future-proof against likely additions to the information we keep
      about an index path.
      472d3935
  12. 24 12月, 2011 1 次提交
    • T
      Improve planner's handling of duplicated index column expressions. · e2c2c2e8
      Tom Lane 提交于
      It's potentially useful for an index to repeat the same indexable column
      or expression in multiple index columns, if the columns have different
      opclasses.  (If they share opclasses too, the duplicate column is pretty
      useless, but nonetheless we've allowed such cases since 9.0.)  However,
      the planner failed to cope with this, because createplan.c was relying on
      simple equal() matching to figure out which index column each index qual
      is intended for.  We do have that information available upstream in
      indxpath.c, though, so the fix is to not flatten the multi-level indexquals
      list when putting it into an IndexPath.  Then we can rely on the sublist
      structure to identify target index columns in createplan.c.  There's a
      similar issue for index ORDER BYs (the KNNGIST feature), so introduce a
      multi-level-list representation for that too.  This adds a bit more
      representational overhead, but we might more or less buy that back by not
      having to search for matching index columns anymore in createplan.c;
      likewise btcostestimate saves some cycles.
      
      Per bug #6351 from Christian Rudolph.  Likely symptoms include the "btree
      index keys must be ordered by attribute" failure shown there, as well as
      "operator MMMM is not a member of opfamily NNNN".
      
      Although this is a pre-existing problem that can be demonstrated in 9.0 and
      9.1, I'm not going to back-patch it, because the API changes in the planner
      seem likely to break things such as index plugins.  The corner cases where
      this matters seem too narrow to justify possibly breaking things in a minor
      release.
      e2c2c2e8
  13. 23 12月, 2011 2 次提交