1. 07 Jul, 2009 4 commits
  2. 06 Jul, 2009 6 commits
    • Tom Lane's avatar
      Use floor() not rint() when reducing precision of fractional seconds in · 47386fed
      Tom Lane authored
      timestamp_trunc, timestamptz_trunc, and interval_trunc().  This change
      only affects the float-datetime case; the integer-datetime case already
      behaved like truncation instead of rounding.  Per gripe from Mario Splivalo.
      
      This is a pre-existing issue but I'm choosing not to backpatch, because
      it's such a corner case and there have not been prior complaints.  The
      issue is largely moot anyway given the trend towards integer datetimes.
      47386fed
    • Heikki Linnakangas's avatar
      Fix ancient bug in handling of to_char modifier 'TH', when used with HH. · 44886bd8
      Heikki Linnakangas authored
      In what seems like an oversight, we used to treat 'TH' the same as lowercase
      'th', but only with HH/HH12.
      44886bd8
    • Tom Lane's avatar
      Fix set_append_rel_pathlist() to deal intelligently with cases where · 9b27eab7
      Tom Lane authored
      substituting a child rel's output expressions into the appendrel's restriction
      clauses yields a pseudoconstant restriction.  We might be able to skip scanning
      that child rel entirely (if we get constant FALSE), or generate a one-time
      filter.  8.3 more or less accidentally generated plans that weren't completely
      stupid in these cases, but that was only because an extra recursive level of
      subquery_planner() always occurred and allowed const-simplification to happen.
      8.4's ability to pull up appendrel members with non-Var outputs exposes the
      fact that we need to work harder here.  Per gripe from Sergey Burladyan.
      9b27eab7
    • Peter Eisentraut's avatar
      Show definition of index columns in \d on index · bf6570ab
      Peter Eisentraut authored
      This adds a column called "Definition" to the output of psql \d on an
      index, which shows the full expression behind the index column.  For indexes
      on plain columns, this is redundant,  but for expression indexes, this
      reveals the real expression.
      
      Author: Khee Chin <kheechin@gmail.com>
      bf6570ab
    • Tom Lane's avatar
      Per SQL spec (in particular, the grammar in SQL:2008 7.13) we should allow · 869312e6
      Tom Lane authored
      parentheses around the <query expression body> that follows a WITH clause, eg
      	with cte(foo) as ( values(0) ) ((select foo from cte));
      This seems to be just an oversight/thinko in gram.y.  Noted while
      experimenting with bug #4902.
      869312e6
    • Tom Lane's avatar
      Fix handling of changed-Param signaling for CteScan plan nodes. We were using · 9298d2ff
      Tom Lane authored
      the "cteParam" as a proxy for the possibility that the underlying CTE plan
      depends on outer-level variables or Params, but that doesn't work very well
      because it sometimes causes calling subqueries to be treated as SubPlans when
      they could be InitPlans.  This is inefficient and also causes the outright
      failure exhibited in bug #4902.  Instead, leave the cteParam out of it and
      copy the underlying CTE plan's extParams directly.  Per bug #4902 from
      Marko Tiikkaja.
      9298d2ff
  3. 03 Jul, 2009 2 commits
  4. 02 Jul, 2009 3 commits
  5. 01 Jul, 2009 2 commits
  6. 30 Jun, 2009 1 commit
  7. 27 Jun, 2009 2 commits
    • Tom Lane's avatar
      Revert addition of "o" to tar options. This was intended to fix bug #4883, · 4d53a2f9
      Tom Lane authored
      but the cure appears to be worse than the disease.  It turns out that GNU
      tar versions 1.14.x misinterpret -o as --same-owner, not --no-same-owner,
      leading to exactly the wrong behavior for both root and nonroot users.
      While that bug has been fixed for nearly five years, these tar versions
      are still found in the wild, notably in OS X 10.4.  Given that #4883 was
      the first complaint we'd heard, it's definitely not worth fixing at the
      risk of breaking things for other users.  Perhaps revisit at a later date
      when we're not up against a release deadline.
      4d53a2f9
    • Marc G. Fournier's avatar
      · 41f467f3
      Marc G. Fournier authored
      Bundle v8.4.0
      41f467f3
  8. 26 Jun, 2009 7 commits
  9. 25 Jun, 2009 7 commits
  10. 24 Jun, 2009 3 commits
  11. 23 Jun, 2009 3 commits