1. 08 6月, 2016 4 次提交
  2. 07 6月, 2016 17 次提交
  3. 06 6月, 2016 5 次提交
    • H
      Fix ORCA alternative expected outputs. · d4506033
      Heikki Linnakangas 提交于
      I neglected these in previous commit.
      d4506033
    • H
      Backport b153c092 from PostgreSQL 8.4 · 78b0a42e
      Heikki Linnakangas 提交于
      This is a partial backport of a larger body of work which also already have
      been partially backported.
      
      Remove the GPDB-specific "breadcrumbs" mechanism from the parser. It is
      made obsolete by the upstream mechanism. We lose context information from
      a few errors, which is unfortunate, but seems acceptable. Upstream doesn't
      have context information for those errors either.
      
      The backport was originally done by Daniel Gustafsson, on top of the
      PostgreSQL 8.3 merge. I tweaked it to apply it to master, before the
      merge.
      
      Upstream commit:
      
        commit b153c092
        Author: Tom Lane <tgl@sss.pgh.pa.us>
        Date:   Mon Sep 1 20:42:46 2008 +0000
      
          Add a bunch of new error location reports to parse-analysis error messages.
          There are still some weak spots around JOIN USING and relation alias lists,
          but most errors reported within backend/parser/ now have locations.
      78b0a42e
    • H
      Revert contain_vars_of_level() to match the upstream. · 756241e2
      Heikki Linnakangas 提交于
      The function was rewritten in GPDB, and its behaviour was changed to also
      return 'true' if the expression contains an Aggref of the given level.
      That change in behaviour was made back in 2006, as part of a commit
      containing a lot of subquery optimization changes. I could not find an
      explanation for that particular change, and all the regression tests pass
      without so I assume that it has become obsolete at some point over they
      years.
      
      This smoothens the way for future merges with upstream, by reducing the
      diff in both code and behaviour. Also, you get a more accurate error
      message in a few cases, as seen by the changes to expected output.
      756241e2
    • D
      Add intarray contrib module from upstream PostgreSQL 8.3 · 26330731
      Daniel Gustafsson 提交于
      This brings in the intarray contrib module from 8.3 with a few
      minor changes.
      
         * The Gin operator class is removed from the installation since
           Gin indexes are currently turned off in GPDB
         * A few compiler warnings are silenced
         * fdf2dbda which contains many
           bug-fixes is cherry-picked from upstream
         * A bug in bench.pl for printing the query plan is fixed
         * gppkg files are provided in package/
      26330731
    • T
      Add array_contains_nulls() function in arrayfuncs.c. · e85d268f
      Tom Lane 提交于
      This will support fixing contrib/intarray (and probably other places)
      so that they don't have to fail on arrays that contain a null bitmap
      but no live null entries.
      e85d268f
  4. 05 6月, 2016 5 次提交
  5. 04 6月, 2016 2 次提交
  6. 03 6月, 2016 7 次提交
    • H
      Add missing field to readRangeTblEntry, improve comment in fast version. · fd6741f9
      Heikki Linnakangas 提交于
      The readRangeTblEntry() function was missing the line for 'pseudocols'
      field. I'm surprised the function worked at all, I thought the read
      functions don't work if there are any extra fields. Maybe they're more
      forgiving if it's last field that's missing. In any case, seems like an
      oversight. It doesn't matter in practice, as the pseudocols field is only
      used during planning, and we don't serialize nodes at that stage. Rule
      definitions are serialized before planning, and for the transfer between
      QD and QEs, we use the 'fast' versions of these functions.
      
      In the 'fast' version, the 'pseudocols' is missing from both the out
      function and the read function. That seems intentional, so add a comment
      about it.
      fd6741f9
    • H
      Remove unused 'rewindPlanIDs' fields. · efc1052c
      Heikki Linnakangas 提交于
      The copy/out/read functions for it were wrong: a Bitmapset is not a Node,
      so one should use e.g. COPY_BITMAPSET_FIELD() instead of COPY_NODE_FIELD()
      for them. But since the fields are currently unused, let's just remove them.
      
      These fields will be resurrected soon, by the PostgreSQL 8.3 merge, as they
      were introduced in PostgreSQL 8.3. Then they will actually be used, too.
      efc1052c
    • H
      Remove bogus ORDER BY from test query. · 9122bf9d
      Heikki Linnakangas 提交于
      The multiset_5 function returns a "SET OF example", but the 'a' column
      was dropped from 'example' table earlier. The statement currently produces
      a different error, because anytable cannot be passed to PREPARE, but if
      that worked, this would fail because of the broken ORDER BY. The purpose
      of this test is to test PREPARE with anytable, so let's not have a broken
      ORDER BY.
      9122bf9d
    • H
      Remove NOTICEs from ORCA expected output. · ae50210a
      Heikki Linnakangas 提交于
      Just to keep the normal expected output and ORCA expected output as close
      to each other as possible. You do get those NOTICEs when you run the
      queries, but they are ignored thanks to the "init-file" we use.
      ae50210a
    • H
    • H
      Clean up 'percentile' regression test. · 1077cdcd
      Heikki Linnakangas 提交于
      Reformat some of the test queries, and make sure the formatting is the same
      between the .sql file and .out file (pg_regress uses "diff -w", which masks
      out some of the differences, but it was annoying while doing a manual diff).
      1077cdcd
    • H
      Mask trivial differences in EXPLAIN output in bfv_index test. · b2d28285
      Heikki Linnakangas 提交于
      pg_regress uses gpdiff.pl to mask differences in costs etc. of EXPLAIN
      output, so that trivial changes in the plan output don't cause a
      regression failure. That mechanism didn't work for this EXPLAIN query,
      because the "explain" and "select" were on different lines. Remove the
      newline, to make gpdiff.pl recognize the query as an EXPLAIN query, to
      make the test case less fragile.
      b2d28285