1. 19 3月, 2016 7 次提交
    • X
      Update README to reflect new Vagrantfile · 7015d674
      Xin Zhang 提交于
      7015d674
    • J
      Add some AO/CO tests and Bitmap cardinality tests. · 1c3b8388
      Jimmy Yih 提交于
      Add more AO/CO test coverage which covers a fixed bug from v4.1.0.0. Also,
      add some cardinality and domain tests on bitmap indexes and scans. Most of
      these test additions are modified/inspired from Pivotal's internal testing.
      1c3b8388
    • N
    • X
      Vagrant CentOs VM with GPORCA support [#114923155] · a705d51f
      Xin Zhang 提交于
      - Change the current vagrant to clone the GPDB inside and run it, to avoid confusion between host and guest environment.
      - Change the VM size to 8GB and 4 cpus to better compile and test performance
      - At the end of the vagrant the GPDB will up and running with gpdemo (3 seg and 3 mirrors)
      - use `vagrant up gpdb` to build GPDB with GPORCA using option --enable-orca
      - use `vagrant up gpdb_without_gporca` to build GPDB without GPORCA
      Signed-off-by: NXin Zhang <xzhang@pivotal.io>
      a705d51f
    • M
      Remove gpfdist library dependencies on the top level. · a1ecb3e3
      Marbin Tan 提交于
      We do not need to link all of the gpfdist libraries to
      the backend. Make sure that gpfdist is the only one who uses
      libyaml, libevent, and libapr-1 for now.
      a1ecb3e3
    • A
      Validate pg_class pg_type tuple after index fetch. · 0ff952e7
      Ashwin Agrawal 提交于
      While fetching the pg_class or pg_type tuple using index, perform sanity
      check to make sure tuple intended to read, is the tuple index is
      pointing too. This is just sanity check to make sure index is not broken
      and not returning some incorrect tuple to contain the damage.
      0ff952e7
    • A
      Validate gp_relation_node tuple after index fetch. · c8a21e0d
      Ashwin Agrawal 提交于
      This commit makes sure while accessing gp_relation_node through its
      index, sanity check is always performed to verify the tuple being
      operated on is the intended tuple, else for any reason index is broken
      and provide bad tuple fail the operation instead of causing damage.
      For some scenarios like delete gp_relation_code tuple case it adds extra tuple
      deform call which was not done earlier but doesn't seem heavy enough to
      be performed on ddl operation.
      c8a21e0d
  2. 18 3月, 2016 5 次提交
  3. 16 3月, 2016 5 次提交
  4. 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
  5. 14 3月, 2016 4 次提交
  6. 12 3月, 2016 7 次提交
  7. 11 3月, 2016 5 次提交
  8. 10 3月, 2016 4 次提交
    • 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