1. 24 3月, 2016 1 次提交
  2. 23 3月, 2016 4 次提交
  3. 22 3月, 2016 4 次提交
    • H
      Support explicit cast for ARRAY[] constructor · 3ab62529
      Haozhou Wang 提交于
      Backport below commits from upstream:
      
          commit adac22bf
          Author: Tom Lane <tgl@sss.pgh.pa.us>
          Date:   Fri Dec 19 05:04:35 2008 +0000
      
              When we added the ability to have zero-element ARRAY[] constructs by adding an
              explicit cast to show the intended array type, we forgot to teach ruleutils.c
              to print out such constructs properly.  Found by noting bogus output from
              recent changes in polymorphism regression test.
      
          commit 30137bde6db48a8b8c1ffc736eb239bd7381f04d
          Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
          Date:   Fri Nov 13 19:48:26 2009 +0000
      
              A better fix for the "ARRAY[...]::domain" problem. The previous patch worked,
              but the transformed ArrayExpr claimed to have a return type of "domain",
              even though the domain constraint was only checked by the enclosing
              CoerceToDomain node. With this fix, the ArrayExpr is correctly labeled with
              the base type of the domain. Per gripe by Tom Lane.
      
          commit 6b0706ac
          Author: Tom Lane <tgl@sss.pgh.pa.us>
          Date:   Thu Mar 20 21:42:48 2008 +0000
      
              Arrange for an explicit cast applied to an ARRAY[] constructor to be applied
              directly to all the member expressions, instead of the previous implementation
              where the ARRAY[] constructor would infer a common element type and then we'd
              coerce the finished array after the fact.  This has a number of benefits,
              one being that we can allow an empty ARRAY[] construct so long as its
              element type is specified by such a cast.
      
      Besides, this commit also adds 'location' field in array related
      structures, but they are not actived yet. Thanks to Heikki's suggestion.
      3ab62529
    • A
      Make data directory and TCP ports for demo cluster configurable on the fly · fd2e045f
      Andreas Scherbaum 提交于
      The data directory and the TCP ports can be changed when "make cluster" is
      executed to build the demo cluster:
      
      DATADIRS=/tmp/gpdb-cluster MASTER_PORT=15432 PORT_BASE=25432 make cluster
      
      This fixes #441 and #442
      
      Also make the TCP port for the regression tests configurable.
      fd2e045f
    • F
    • F
  4. 19 3月, 2016 2 次提交
  5. 18 3月, 2016 2 次提交
    • M
      Remove deprecated and duplicate schedules · 0229e1ec
      Marbin Tan 提交于
      Since we only test the higher level "wrappers" for gp_dump, pg_dump. We
      can remove those tests. gpmgmt1: gpsys1 is a depercrated functionality.
      python mpp8987.py tests unicode for loggers, special characters can deal
      with this now, so we can remove it.
      
      Conflicts:
      	src/test/regress/bugbuster/expected/bkup_gp.out
      	src/test/regress/bugbuster/expected/bkup_pg.out
      	src/test/regress/bugbuster/expected/gpmgmt1.out
      	src/test/regress/bugbuster/known_good_schedule
      	src/test/regress/bugbuster/sql/gpmgmt1.sql
      
      Authors: Marbin Tan & Chris Hajas
      0229e1ec
    • N
      Porting misc_jiras tests from cdbfast to ICG · 993bc9c9
      Nikos Armenatzoglou 提交于
      993bc9c9
  6. 16 3月, 2016 4 次提交
  7. 12 3月, 2016 7 次提交
  8. 11 3月, 2016 2 次提交
  9. 10 3月, 2016 4 次提交
    • H
      Fix unused-initplans-removal machinery to handle SubPlans in PRECEDING clause. · 3a03d334
      Heikki Linnakangas 提交于
      remove_unused_initplans() didn't notice if there were references to a
      subplan in the PRECEDING or FOLLOWING clause of a window function, because
      plan/expression walkers didn't visit the PRECEDING/FOLLOWING clauses. Fix
      the walkers.
      
      We already had a test case for this in the regression suite, in
      gp_optimizer, but instead of fixing the bug we had memorized the internal
      ERROR message in the expected output. Oopsie.
      3a03d334
    • H
      Fix handling of sub-plans that return multiple Params. · 9926d5e3
      Heikki Linnakangas 提交于
      The code to remove unnecessary InitPlans assumed that an InitPlan can only
      return a single Param, which is wrong. Fix the code to handle multiple
      Params.
      
      Bug report and test case by CK Tan.
      9926d5e3
    • D
      Move version tests in mapreduce suite in under ignore blocks · 595586bb
      Daniel Gustafsson 提交于
      Moves the Python and Perl version tests in under ignore blocks to
      make the test less fragile. Testing for specific versions is not
      ideal, if this is to be kept as a real test it should be rewritten
      to look for interpreters satisfying minimum version requirements
      rather then exact (although the value of that can be argued as
      well). Keep the version output in the test though since it can be
      good information when debugging where access is limited to the
      regression.diffs file. Also fix a trivial typo in a comment while
      in there.
      595586bb
    • K
      Add support for anonymous code blocks (DO blocks) · cacb2839
      Kuien Liu 提交于
      Commits backported from upstream are listed below.
      
      	commit 87f2ad13
      	Author: Tom Lane <tgl@sss.pgh.pa.us>
      	Date:   Sun Mar 27 12:51:04 2011 -0400
      
      	    Fix plpgsql to release SPI plans when a function or DO block is freed.
      
      	    This fixes the gripe I made a few months ago about DO blocks getting
      	    slower with repeated use.  At least, it fixes it for the case where
      	    the DO block isn't aborted by an error.  We could try running
      	    plpgsql_free_function_memory() even during error exit, but that seems
      	    a bit scary since it makes a lot of presumptions about the data
      	    structures being in good shape.  It's probably reasonable to assume
      	    that repeated failures of DO blocks isn't a performance-critical case.
      
      	commit 42b2907d
      	Author: Tom Lane <tgl@sss.pgh.pa.us>
      	Date:   Sun Nov 29 03:02:27 2009 +0000
      
      	    Add support for anonymous code blocks (DO blocks) to PL/Perl.
      
      	    Joshua Tolley, reviewed by Brendan Jurd and Tim Bunce
      
      	commit 9048b731
      	Author: Tom Lane <tgl@sss.pgh.pa.us>
      	Date:   Tue Sep 22 23:43:43 2009 +0000
      
      	    Implement the DO statement to support execution of PL code without having
      	    to create a function for it.
      
      	    Procedural languages now have an additional entry point, namely a function
      	    to execute an inline code block.  This seemed a better design than trying
      	    to hide the transient-ness of the code from the PL.  As of this patch, only
      	    plpgsql has an inline handler, but probably people will soon write handlers
      	    for the other standard PLs.
      
      	    In passing, remove the long-dead LANCOMPILER option of CREATE LANGUAGE.
      
      	    Petr Jelinek
      cacb2839
  10. 09 3月, 2016 1 次提交
  11. 08 3月, 2016 3 次提交
  12. 05 3月, 2016 1 次提交
    • H
      Handle constants correctly in cdbpullup_findPathKeyExprInTargetList · 81b5a62b
      Heikki Linnakangas 提交于
      If a PathKey contains a constant member, it can be evaluated without
      any entries in the target list, and can always be returned in
      cdbpullup_findPathKeyExprInTargetList. This fixes the "Unexpected intarnal
      error" you got with the included test query.
      
      Closes issue #348, reported by liruto. Thanks for the report!
      81b5a62b
  13. 04 3月, 2016 1 次提交
    • H
      Remove inaccurate assertion. · 04fe0202
      Heikki Linnakangas 提交于
      When DELETEing or UPDATEing an inherited table, some tables in the
      inheritance tree might need an explicit Motion node to bring the targeted
      tuples back to the segment where they reside, and some might not. The code
      to build the plan handled that correctly, but this assertion incorrecly
      assumed that it's all or nothing.
      
      Remove the assertion, as it doesn't seem very useful in the first place.
      The code that inserted the Motion nodes is just above the assertion, and
      the assertion was basically just testing the same thing that the code
      just did, and not some general invariant that should always hold.
      
      Fixes issue #332
      04fe0202
  14. 03 3月, 2016 2 次提交
  15. 02 3月, 2016 1 次提交
  16. 01 3月, 2016 1 次提交