1. 21 2月, 2017 10 次提交
    • 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
  2. 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
  3. 19 2月, 2017 7 次提交
  4. 18 2月, 2017 12 次提交
  5. 17 2月, 2017 10 次提交
    • H
      Move tests on 'demoprot' from TINC to contrib, where the source is. · f8734d9d
      Heikki Linnakangas 提交于
      I had to change some of the tests that used 4 tests rows, to have more (9),
      to make them pass on a 3 segment cluster. If you only insert 4 rows to an
      external table, some segments might not receive any rows, and reading from
      the same file later will fail because the file wasn't created. I also
      changed the queries that tested that rows are distributed evenly, to work
      with a different number of segments.
      
      Hook up the new tests to installcheck-world.
      f8734d9d
    • H
      Fix test case to pass with ORCA. · 6133a493
      Heikki Linnakangas 提交于
      The explain plan with ORCA spells Seq Scan as Table Scan. Add alternative
      expected output for that.
      6133a493
    • H
      Remove silly TINC tests. · c47ad451
      Heikki Linnakangas 提交于
      The main ExplainAnalyzeTestCase tests in here were running standard
      TPC-H-like test queries, and checking that the EXPLAIN ANALYZE output
      contains a "Memory: " line for every plan node. That seems a bit excessive,
      because looking at how those lines are printed, there is no reason to
      believe that you might have a Memory line for some nodes but not others.
      I don't think we need to test for that.
      
      In order to still have minimal coverage for the explain_memory_verbosity
      GUC, add a small test case to the main regression suite for that.
      
      The mpp20785 test was testing for an old bug where you got an out of
      memory error with this query. However, the test was broken, because the
      test schema was nowhere to be found, so it simply resulted in a "schema not
      found" error. Perhaps we could put it back if we could find the original
      schema somewhere, but it's useless as it is.
      c47ad451
    • K
      6fb8aebb
    • D
      Stop printing Ivy credentials during coverity scan · 451bea7f
      David Sharp 提交于
      Rely on the credentials being in the environment rather than explicitly
      passing them. Add a comment to document the requirement.
      
      See also: 0d840bb2
      451bea7f
    • B
      Handle dummy rel for Left Anti Semi Join [#134705163] · c74792fa
      Bhuvnesh Chaudhary 提交于
      When we create Left Anti Semi Join relations in case the left
      side is a dummy relation, it implies that the join relation
      is also a dummy relation.
      Signed-off-by: NOmer Arap <oarap@pivotal.io>
      c74792fa
    • A
      Error if AssignTransactionId is called by Reader. · 6845e104
      Ashwin Agrawal 提交于
      QE_READER and QE_ENTRY_DB_SINGLETON are not expected to allocate transaction
      IDs. They are just helper sub-processes to WRITER and should be using its xid.
      6845e104
    • A
      SET default_tablespace not assign xid by avoiding to acquire lock. · dda8f138
      Ashwin Agrawal 提交于
      SET default_tablespace ideally should just be read-only transaction and
      shouldn't allocate xid. Currently get_tablespace_oid() is acquiring lock for
      other purposes to protect for concurrency, ends up assigning transaction IDs to
      take the lock. Setting the GUC doesn't need to acquire the lock, plus it creates
      the problem as multiple readers and a writer in a gang all end-up assigning
      independent xid when dispatched this GUC. This happens because SET runs as
      QE_AUTO_COMMIT_IMPLICIT for writer and hence has deferred allocation of
      transaction ID. The filespace ICW tests detected this case since hits assert
      FailedAssertion("!(!((proc->xid) != ((TransactionId) 0)))", File: "procarray.c"
      without the fix.
      
      Simplest scenario the problem can be demostrated is:
      - DROP TABLE a;
      - CREATE TABLE a(a INT, b INT);
      - INSERT INTO a VALUES (generate_series(1,2), generate_series(3,4)); -- generates 1 reader and 1 writer gang
      - SET default_tablespace='pg_default';
      dda8f138
    • A
      Avoid checkpoint between commit record and persistent post-commit. · 987113c9
      Ashwin Agrawal 提交于
      The commit xlog record carries the information for objects which serves us for
      crash-recovery till post-commit persistent object work is done, hence cannot
      allow checkpoint in between. So, use inCommit flag to achieve the same. This
      makes it consistent with FinishPreparedTransaction() as well.
      
      Without the fix leaves out dangling persistent table entries and files on-disk
      for following sequence:
      
      - start transaction to drop a table
      - `RecordTransactionCommit()`
      - Checkpoint before `AtEOXact_smgr()`
      - Crash/Recover
      987113c9
    • C
      docs: add Enum datatype (#1782) · 43dd7315
      Chuck Litzell 提交于
      * docs: add Enum datatype
      
      * docs: add a release note for enum datatype
      
      * remove optimizer support statement.
      43dd7315