Skip to content
Snippets Groups Projects
  1. Jul 07, 2009
  2. Jul 06, 2009
    • 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. Jul 03, 2009
  4. Jul 02, 2009
  5. Jun 30, 2009
  6. Jun 27, 2009
  7. Jun 26, 2009
  8. Jun 25, 2009
  9. Jun 24, 2009
Loading