1. 22 2月, 2017 4 次提交
  2. 21 2月, 2017 17 次提交
    • H
      Resurrect one more file, in an attempt to fix the TINC test. · f1b32c09
      Heikki Linnakangas 提交于
      I'm not sure why this seemed to pass on my laptop without this file, but
      looking at the code, I'm pretty sure it's still needed for the
      test_uao_crash_update_with_ins_fault test. We'll see what the Concourse
      job thinks..
      f1b32c09
    • H
      Rewrite TINC test for freezing auxiliary tables on an empty relation. · 7408fffc
      Heikki Linnakangas 提交于
      These tests test for an old bug, where vacuuming an empty AO relation would
      not advance its relfrozenxid. Doesn't seem very likely for that particular
      bug to reappear, but seems like a good idea to have some coverage for
      freezing and relfrozenxid advancement. In this rewritten form, these tests
      are fairly quick, too (1-2 seconds on my laptop).
      7408fffc
    • H
      Re-resurrect file that is needed by fault injection test. · 34d1ada7
      Heikki Linnakangas 提交于
      Turns out that the remaining tests need both uao_crash_update2.sql, and
      uaocs_crash_update2.sql. [me puts on brown paper back]
      34d1ada7
    • H
      Resurrect the correct files this time. · 846168df
      Heikki Linnakangas 提交于
      The remaining tests needed uaocs_crash_update2.sql, not
      uao_crash_update2.sql
      846168df
    • H
      Resurrect test files that were still needed. · 1476185b
      Heikki Linnakangas 提交于
      I removed these files in commit b39c1356, but it turns out that some of
      the remaining tests still used those files.
      1476185b
    • H
      Remove uninteresting UAO fault-injection test cases. · b39c1356
      Heikki Linnakangas 提交于
      The pattern in these tests was:
      
      1. Create and populate a test append-only table
      2. Induce a fault with gpfaultinjector, to crash the server at beginning of
         appendonly_insert/update/delete function.
      3. Try to INSERT, UPDATE or DELETE some rows, crashing the server.
      
      Crashing the server at the beginning of the operation isn't very
      interesting, because we haven't done any on-disk modifications at that point
      yet. There is no reason to believe that there would be a problem at crash
      recovery at that point. In particular, after the crash, the state at disk
      will look identical in the INSERT, UPDATE and DELETE scenarios.
      
      Therefore, remove the tests.
      b39c1356
    • H
      Remove broken TRUNCATE and DROP COLUMN fault injection tests. · 5283aee2
      Heikki Linnakangas 提交于
      These tests set the appendonly_delete fault injection trigger, and then
      executed a TRUNCATE or ALTER TABLE DROP COLUMN on the table. However,
      neither command performs any DELETEs on the target table, and therefore
      don't even hit the fault. This is effectively the same as just testing
      TRUNCATE or ALTER TABLE DROP COLUMN on an AOCS table without any faults,
      and we have tests for that elsewhere already (e.g.
      src/test/regress/input/uao_dml/uao_dml.source and
      src/test/regress/sql/alter_table_aocs.sql).
      5283aee2
    • X
      Catalog change for resource group · 4ca52894
      xiong-gang 提交于
        - Add 2 catalog tables for resource group
        - add one column in pg_authid to record the resource group of a role
        - bump catalog version
        - hard code default resource group of roles temporarily
      Signed-off-by: NKenan Yao <kyao@pivotal.io>
      4ca52894
    • H
      Rewrite bitrotted planner test. · 7ec58358
      Heikki Linnakangas 提交于
      ANALYZE used to be implemented with fairly complicated aggregate queries,
      to count distinct number of values, and gather many other statistics.
      Once upon a time, there was a bug in the planner, that it tried to use
      a hash aggregate, even if the data type wasn't hashable. That case was
      triggered by the internal queries that ANALYZE runs.
      
      ANALYZE has since been rewritten, and no longer issues such queries, so
      this test case isn't very interesting in its old form anymore. But the
      underlying problem, that we mustn't use a hash aggregate on a datatype
      that isn't hashable, would still be good to test. So write a new more
      targeted test for that, that doesn't involve ANALYZE.
      7ec58358
    • H
    • H
      Remove uninteresting tests on subpartition syntax. · 107a11ef
      Heikki Linnakangas 提交于
      Subpartition names are SQL identifiers, so you cannot use a plain integer
      as name, unless you quote it. There isn't really anything special here,
      and never was. The original bug report was:
      
      > I was trying to add subpartitions named 2001, 2002, 2003, etc. but was not
      > allowed:
      > ...
      > However it was allowed when the name was changed from a number to a string
      
      It was closed as "No fix needed", as that is expected behavior. I'm not sure
      why we bothered to add test cases for this originally, but I think we can
      just drop them now.
      107a11ef
    • H
      Move and fix test for uniqueness checks on RENAME PARTITION. · 4d2ea128
      Heikki Linnakangas 提交于
      The old test case was no longer testing what it was supposed to. The
      ancient bug reported as MPP-3115 was related to renaming a partition,
      but the behavior has changed since then, to not allow two partitions to
      have the same name.
      
      I couldn't see any tests that RENAME PARTITION enforces uniqueness, except
      for the special case that the new name is the same as the old, so I added
      a test for that to partition1.sql. Other than that, I think we can simply
      remove this test case as obsolete.
      4d2ea128
    • H
      Move partition_ddl1 test from TINC. · 5c43dbb6
      Heikki Linnakangas 提交于
      Much of it was present in partition1 test already.
      5c43dbb6
    • H
      Move VACUUM FULL test cases from TINC. · 0e864408
      Heikki Linnakangas 提交于
      We have some VACUUM FULL commands in other tests already, but these tests
      seem more comprehensive than the other tests.
      0e864408
    • H
      gpcloud: fix regress cases · 00e405d9
      Haozhou Wang 提交于
      Due to changes of external table "on master" feature
      00e405d9
    • H
      Fix contrib extprotocol test · 7e9dd1fa
      Haozhou Wang 提交于
      Due to changes of external table "on master" feature
      7e9dd1fa
    • H
      Support ON MASTER clause for external table · ac2fd680
      Haozhou Wang 提交于
      We will first support external table query execution on master segment
      before we fully support task dispatch on master segment.
      
      1. Modify grammar to enable ON clause for external table.
      2. Modify ExtTableEntry catalog to record on clause.
      3. Update legacy planner to support on clause for external table.
      4. Update pg_dump.
      5. Update regress tests.
      Signed-off-by: NHaozhou Wang <hawang@pivotal.io>
      Signed-off-by: NAdam Lee <ali@pivotal.io>
      Signed-off-by: NYuan Zhao <yuzhao@pivotal.io>
      
      * Update catalog version
      
      For "Support ON MASTER clause for external table"
      
      * Add on master regression tests for gpcloud
      ac2fd680
  3. 20 2月, 2017 1 次提交
    • A
      Remove -Winline from the default set of CFLAGS · 29cf392b
      Adam Lee 提交于
      	commit 3cab8bdf
      	Author: Tom Lane <tgl@sss.pgh.pa.us>
      	Date:   Tue Aug 19 19:17:40 2008 +0000
      
      	    Remove -Winline from the default set of CFLAGS for gcc.  It's gotten much
      	    too noisy to be useful as of gcc 4.3, and we were never really doing
      	    anything about inlining warnings anyway.
      29cf392b
  4. 19 2月, 2017 7 次提交
  5. 18 2月, 2017 11 次提交