1. 18 3月, 2016 2 次提交
  2. 16 3月, 2016 5 次提交
  3. 15 3月, 2016 3 次提交
    • C
      Update and add test for gpdbrestore AO/CO stat update · 0914d764
      Chris Hajas 提交于
      * Fix stat check for older behave test:
          Used to rely on gp_restore to do the stat update, but is now on
          python.
      * Fix the tests to indiviudally check the statistics for each
      partition table as the top level table does not gather statistics from its
      subpartitions.
      * Add specific gpdbrestore -T stat update check
      * Add specific gpdbrestore -S stat update check
      
      Add unit tests for generating the correct tables to restore.
      
      Authors: Marbin Tan & Chris Hajas
      0914d764
    • M
      Fix gp_update_ao_master_stats for gpdbrestore with full backup. · 3fb6ca82
      Marbin Tan 提交于
      When doing a restore of a specific table or a specific schema (-T or -S)
      with a full backup, it will update all statistics for all AO/CO tables; it should
      update only the specified table/schema.
      
      Moved gp_update_ao_master_stats from the C side to the python code.
      gpdbrestore -T and -S will now update AO/CO stats through the python code
      
      Authors: Marbin Tan & Chris Hajas
      3fb6ca82
    • C
      Fixes NoneType error where schema tries to iterate through empty dump · c992c450
      Christopher Hajas 提交于
      file.
      
      Authors: Marbin Tan, Chris Hajas and Pencheng Tang
      c992c450
  4. 14 3月, 2016 4 次提交
  5. 12 3月, 2016 7 次提交
  6. 11 3月, 2016 5 次提交
  7. 10 3月, 2016 13 次提交
    • H
      Stop using catullus.pl to generate the DATA lines in pg_type.h · 30c6ae3e
      Heikki Linnakangas 提交于
      We only have a few extra types in GPDB, so it doesn't seem worth maintaining
      the catullus mechanism for updating pg_type.h. When a new column is added
      in the upstream, we'll just fix the GPDB-added lines manually. There are no
      GPDB-added columns in pg_type.h, so we don't need the GPDB_COLUMN_DEFAULT
      tricks we used in pg_proc.h.
      
      Catullus.pl still needs type information to map the type names in
      pg_proc_gp.sql to type OIDs. It used to get that information from the
      pg_type.sql file, but I changed it to read the DATA lines in pg_type.h
      directly.
      
      Also revert unnecessary whitespace and comment changes against upstream, to
      make merge easier.
      30c6ae3e
    • 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
      Remove dead code · 06c11b10
      Daniel Gustafsson 提交于
      ExecCopySlotHeapTupleTo() is not used anywhere (anymore) so remove.
      06c11b10
    • D
      4d33134e
    • D
      Remove unused compiler flags from mapreduce Makefile · 97f7896c
      Daniel Gustafsson 提交于
      GPMapreduce isn't threaded so -pthreads is a noop causing annoying
      warning messages in clang.
      97f7896c
    • 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
    • D
      Connect GPMapreduce to the build · e60fe566
      Daniel Gustafsson 提交于
      This adds a new switch to autoconf, --enable-mapreduce, to connect
      the GPMapreduce extension to the build. If set to on the mapreduce
      extension in gpAux/extensions will be built and installed.  As a
      side effect this will properly clean and distclean for gpfdist in
      gpAux/extensions as well. Autoconf checks for libyaml since it's
      a depedency for GPMapreduce.
      
      This is the first stab at gpmapreduce, once in we can start moving
      gpmapreduce back into src/bin and move the mapreduce test suite in
      under gpAux/extensions.
      e60fe566
    • D
      Fix header guard definitions in gpmapreduce · c54bfd8b
      Daniel Gustafsson 提交于
      c54bfd8b
    • 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
    • H
      Update README.md to clarify the Perl and Python modules · 18e88659
      Haisheng Yuan 提交于
      Update to avoid misunderstanding. `--with-perl` means building Perl modules (PL/Perl) instead of perl runtime, `--with-python` means building Python modules (PL/Python) instead of python runtime.
      18e88659
    • A
    • H
      Revert accidentally backported 8.4 changes from pg_trgm sources. · ef145fe3
      Heikki Linnakangas 提交于
      The trgm2int() function was backported from PostgreSQL 8.4, but never used.
      And the TRGMINT() macro was removed as part of that backport, without
      changing the callers.
      
      This makes the code to compile, and the regression tests to pass, except
      for the fact that GPDB doesn't support GIN, which produces an error.
      
      Fixes issue #491, reported by @digoal.
      ef145fe3
  8. 09 3月, 2016 1 次提交