1. 02 6月, 2017 15 次提交
  2. 01 6月, 2017 14 次提交
    • A
      Bunch of coverity fixes. · 725a4dc1
      Ashwin Agrawal 提交于
      appendonlywriter.c: CID 129803 Identical code for different branches. The
      condition is redundant in AtEOXact_AppendOnly_StateTransition: The same code is
      executed regardless of the condition.
      
      cdbfilerep.c: CID 129285 Buffer not null terminated. In
      FileRep_GetUnknownIdentifier: The string buffer may not have a null terminator
      if the source string's length is equal to the buffer size. Replaced the call
      with strlcpy.
      
      cdbmirroredflatfile.c: CID 130180 Uninitialized pointer read. In MirrorFlatFile:
      Reads an uninitialized pointer or its target for mirroredOpen. Hence
      initializing it.
      
      postmaster.c: CID 129834 Argument cannot be negative. In checkIODataDirectory:
      Negative value used as argument `fd` to a function `write` expecting a positive
      value. Hence fixing it to be called in else only when fd not negative.
      
      faultinject.c: CID 149132 Uninitialized scalar variable. In gp_fault_inject_impl: Use of an
      uninitialized variable hdr.is_segv_msg just initializing the same.
      
      persistentutil.c: CID 129278 Buffer not null terminated. In
      gp_persistent_relation_node_check: The string buffer `fdata->databaseDirName`
      may not have a null terminator if the source string's length is equal to the
      buffer size. Use safer alternative strlcpy.
      
      pg_resetxlog.c: CID 130064 Resource leak. In WriteEmptyXLOG: Leak of memory or
      pointers to system resources `fp`. Hence call fclose on it.
      725a4dc1
    • D
      Refactor addDistributedBy to be less clever · 2f221b43
      Daniel Gustafsson 提交于
      Refactor addDistributedBy() to use less clever coding and instead
      write it with readable code. Also remove variable initializations
      to allow the compiler to help us catch errors, and clean up some
      whitespace issues.
      2f221b43
    • B
      Fixup subplans referring to same plan_id · d0aea184
      Bhuvnesh Chaudhary 提交于
      Before parallelization on nodes in cdbparallelize if there are
      any subplan nodes in the plan which refer to the same plan_id,
      parallelization step breaks as a node must be processed only
      once by it. This patch fixes the issue by generating a new
      subplan node in glob subplans, and updating the plan_id of the
      subplan to refer to the newly created node.
      d0aea184
    • B
      Avoid Duplicate subplans in partition selection key · 9d63d3c1
      Bhuvnesh Chaudhary 提交于
      The condition containing subplans will be duplicated
      as the partition selection key in the PartitionSelector node.
      It is not OK to duplicate the expression, if it contains
      SubPlans, because the code that adds motion nodes to a
      subplan gets confused if there are multiple SubPlans
      referring the same subplan ID.
      9d63d3c1
    • B
      Skip subplan nodes in equivalence lists · 8adc22f4
      Bhuvnesh Chaudhary 提交于
      Skip duplicating subplans clauses as multiple subplan node
      referring to same plan_id of subplans breaks cdbparallize.
      cdbparallize expects to apply motion only to a node once,
      so if two subplan nodes refers to the same plan_id the assertion breaks.
      Signed-off-by: NJemish Patel <jpatel@pivotal.io>
      8adc22f4
    • A
      Optimize DistributedSnapshot check and refactor to simplify. · 3c21b7d8
      Ashwin Agrawal 提交于
      Before this commit, snapshot stored information of distributed in-progress
      transactions populated during snapshot creation and its corresponding localXids
      found during tuple visibility check later (used as cache) by reverse mapping
      using single tightly coupled data structure DistributedSnapshotMapEntry. Storing
      the information this way possed couple of problems:
      
      1] Only one localXid can be cached for a distributedXid. For sub-transactions
      same distribXid can be associated with multiple localXid, but since can cache
      only one, for other local xids associated with distributedXid need to consult
      the distributed_log.
      
      2] While performing tuple visibility check, code must loop over full size of
      distributed in-progress array always first to check if cached localXid can be
      utilized to avoid reverse mapping.
      
      Now, decoupled the distributed in-progress with local xids cache separately. So,
      this allows us to store multiple xids per distributedXid. Also, allows to
      optimize scanning localXid only if tuple xid is relevant to it and also scanning
      size only equivalent to number of elements cached instead of size of distributed
      in-progress always even if nothing was cached.
      
      Along the way, refactored relevant code a bit as well to simplify further.
      3c21b7d8
    • V
    • M
      GPDB DOCS - new GUCs from 4.3.x and mdcache (#2518) · 7d626ac6
      mkiyama 提交于
      * GPDB DOCS - new GUCs from 4.3.x and mdcache
      
      * Typo fixes
      
      * typo
      
      * updates based or review comments.
      7d626ac6
    • A
      Remove the notion that the server configuration can be changed using pgAdminIII (#2544) · fc8406d0
      Andreas Scherbaum 提交于
      * Remove the notion that the server configuration can be changed using pgAdminIII
      
      The "gpconfig" tool should be used instead
      fc8406d0
    • A
      Add explicit notion that the data is stored in GPDB (#2527) · d367d9f9
      Andreas Scherbaum 提交于
      * Add explicit notion that the data is stored in GPDB
      d367d9f9
    • D
      Documenting MADlib requirement for optimizer_control · 3df115ea
      dyozie 提交于
      3df115ea
    • T
      Uses make create-demo-cluster · c3d74c60
      Todd Sedano 提交于
      c3d74c60
    • D
      Skip testing uninstalled components on SLES · 806db982
      Daniel Gustafsson 提交于
      PL/Perl support is not shipped on SLES so skip including Perl, and
      components which depend on Perl, in the test set. By invoking the
      the ./configure step in the test-tree without --with-perl and
      --enable-mapreduce on SLES the tests for those should be avoided.
      806db982
    • M
      GPDB DOC - remove unused topic referencing gp_dump, gp_restore. Utilities were... · da5ac6db
      mkiyama 提交于
      GPDB DOC - remove unused topic referencing gp_dump, gp_restore. Utilities were removed in GPDB 4.3.3.0
      da5ac6db
  3. 31 5月, 2017 9 次提交
  4. 30 5月, 2017 1 次提交
  5. 27 5月, 2017 1 次提交