1. 06 6月, 2019 1 次提交
    • A
      Error if about to store an invalid segment number. · 19a0c800
      Adam Berlin 提交于
      A user found a scenario where they had stored a -1 for a tuple's
      segno. We'd like to be notified of this type of scenario because it
      should not exist and we would like to track down the root
      cause. Validations that throw errors will help us track the root cause
      down.
      19a0c800
  2. 05 6月, 2019 6 次提交
    • T
      Pin the terraform version to 0.11.14 · b84ed373
      Tingfang Bao 提交于
      Authored-by: NTingfang Bao <bbao@pivotal.io>
      b84ed373
    • Z
      Fix plan for select-statement with locking clause · 4183297f
      Zhenghua Lyu 提交于
      Commit 6ebce733 do some optimization for select statement
      with locking clause for some simple cases. It also applies
      such optimization to select statement with limit.
      
      In Greenplum, the results of limit can only be known on QD,
      but we can only lock tuples on QEs. So this commit fixes this.
      
      For replicated table, select statement may only execute
      on one segment, but update statement has to happen on all segments.
      We should also turn off such optimization on locking clause for
      replicated table.
      
      Also, Currently, Greenplum uses two-stage sort to implement
      order by, and might generate a gather motion to QD.
      
      If the processing order is: first order-by then rowmarks,
      we might put a lockrows plannode above a gather motion.
      However, we cannot lock tuples on QD.
      
      This commit changes the order. The plan for the query
      `select * from t order by c for update` on a hash-distributed
      table or randomly-distributed table t is:
      
        previous:
                     QUERY PLAN
          ------------------------------------------
          LockRows
              ->Gather Motion 3:1  (slice1; segments: 3)
                Merge Key: c
                ->  Sort
                    Sort Key: c
                     ->  Seq Scan on t
      
        after this commit:
                   QUERY PLAN
          ------------------------------------------
          Gather Motion 3:1  (slice1; segments: 3)
              Merge Key: c
              ->  Sort
                  Sort Key: c
                   ->  LockRows
                       ->  Seq Scan on t
      4183297f
    • Z
      Change separator to '|' for gpexpand tablespace input file · 1943ec05
      Zhenghua Lyu 提交于
      Follow previous commits, make gpexpand tablespace input file's
      separator consistent with gpexpand input file.
      1943ec05
    • A
      contrib: enable file_fdw · b1c9d019
      Adam Lee 提交于
      Build, test and install file_fdw by default.
      
      Also for the benefit of testing more FDW functions, since this is the
      first built-in FDW extension.
      b1c9d019
    • C
      docs - restore the --skip-root-stats option to the analyzedb utility (#7864) · c3d774d5
      Chuck Litzell 提交于
      Reverts commit 1aef6434 and fixes
      a couple typos.
      c3d774d5
    • B
      Remove sles11 support from gpAux and Concourse · 9b60c5b4
      Bradford D. Boyle 提交于
      This PR removes SLES11 from the gpAux build system and from Concourse CI
      scripts. SLES11 will not be supported for GPDB 6+.
      9b60c5b4
  3. 04 6月, 2019 11 次提交
  4. 03 6月, 2019 6 次提交
  5. 01 6月, 2019 7 次提交
  6. 31 5月, 2019 5 次提交
  7. 30 5月, 2019 4 次提交
    • D
      parseutils: cluster management input file refactoring · 66448a3c
      David Krieger 提交于
      We simplify and refactor the parsing for gpaddmirrors, gpmovemirrors,
      gprecoverseg and gpexpand.  This eliminates a few hundred lines of code.
      In addition, this commit changes the format of the input lines for the
      input files to these routines.  The separator is now '|' instead of ':'.
      
      <Co-Authored-By> Mark Sliva <msliva@pivotal.io>
      <Co-Authored-By> Jamie McCatamney <jmcatamney@pivotal.io>
      66448a3c
    • J
      Enable check option with subplan in updatable view (#7555) · 6aaaa0b5
      Jinbao Chen 提交于
      In merge work of postgres94, the subplan of updatable view check option
      was not parallelized correctly. So we disable the check option and add
      a FIXME.
      The root cause is The root cause of this problem is that we ignored
      modifytable.withCheckOptionLists in plan_tree_mutator.
      Add it and enable the check option with subplan.
      6aaaa0b5
    • X
      Refactor GetSnapshotData · 37d683e6
      xiong-gang 提交于
      - remove redundant member 'distributedId' in 'DtxContextInfo'
      - remove 'maxCount' in 'DistributedSnapshot' and 'maxLocalXidsCount' in 
        'DistributedSnapshotWithLocalMapping', instead, use 'GetMaxSnapshotXidCount()'
        as the size of the array.
      - refactor the function GetSnapshotData
      - call qsort after release ProcArrayLock
      37d683e6
    • B
      Check presence of commit SHA in executables with readelf · 8b8ade10
      Bradford D. Boyle 提交于
      The verify_gpdb_versions task is using a base CentOS 7 image and the
      version of the shared objects included are incorrect for executing the
      GPDB binaries built for Ubuntu. Instead of actually executing the
      binaries, we check for the presence of the commit SHA by dumping the
      rodata section of `greenplum-db/bin/postgres`.
      Co-authored-by: NBradford D. Boyle <bboyle@pivotal.io>
      Co-authored-by: NJesse Zhang <jzhang@pivotal.io>
      8b8ade10