1. 05 4月, 2017 27 次提交
  2. 04 4月, 2017 12 次提交
    • D
      Fix various typos in comments and docs · 1878fa73
      Daniel Gustafsson 提交于
      [ci skip]
      1878fa73
    • A
      Avoid could not open file pg_subtrans/xxx situation during recovery. · 6e715b6b
      Ashwin Agrawal 提交于
      Initialize TransactionXmin to avoid situations where scanning pg_authid or other
      tables mostly in BuildFlatFiles() via SnapshotNow may try to chase down
      pg_subtrans for older "sub-committed" transaction. File corresponding to which
      may not and is not supposed to exist. Setting TransactionXmin will avoid calling
      SubTransGetParent() in TransactionIdDidCommit() for older XIDs. Also, along the
      way initialize RecentGlobalXmin as Heap access method needs it set.
      
      Repro for record of one such case:
      ```
      CREATE ROLE foo;
      
      BEGIN;
      SAVEPOINT sp;
      DROP ROLE foo;
      RELEASE SAVEPOINT sp; -- this is key which marks in clog as sub-committed.
      
      kill or gpstop -air
      < N transactions to atleast cross pg_subtrans single file limit roughly
      CLOG_XACTS_PER_BYTE * BLCKSZ* SLRU_PAGES_PER_SEGMENT >
      
      restart -- errors recovery with missing pg_subtrans
      ```
      6e715b6b
    • D
      Fix gpfdist Makefile rules · f785aed1
      Daniel Gustafsson 提交于
      The extension for executable binaries is defined in X, replace the
      old (and now defunct) references to EXE_EXT. Also remove a commented
      out dead gpfdist rule in gpMgmt from before the move to core.
      f785aed1
    • D
      Fix typos in Python code · c3cbf89d
      Daniel Gustafsson 提交于
      [ci skip]
      c3cbf89d
    • D
      Revert "Remap transient typmods on receivers instead of on senders." · b1140e54
      Dhanashree Kashid and Jesse Zhang 提交于
      This reverts commit ab4398dd.
      [#142986717]
      b1140e54
    • D
      Explicitly hash-distribute in CTAS [#142986717] · 828b99c4
      Dhanashree Kashid and Jesse Zhang 提交于
      Similar to ea818f0e, we remove the
      sensitivity to segment count in test `dml_oids_delete`. Without this,
      this test was passing for the wrong reason:
      
      0. The table `dml_heap_r` was set up with 3 tuples, whose values in the
      distribution column `a` are 1, 2, NULL respectively. On a 2-segment
      system, the 1-tuple and 2-tuple are on distinct segments, and because of
      a quirk of our local OID counter synchronization, they will get the same
      oids.
      
      0. The table `tempoid` will be distributed randomly under ORCA, with
      tuples copied from `dml_heap_r`
      
      0. The intent of the final assertion is checking that the OIDs are not
      changed by the DELETE. Also hidden in the assumption is that the tuples
      stay on the same segment as the source table.
      
      0. However, the compounding effect of that "same oid" with a randomly
      distributed `tempoid` will lead to a passing test when we have two
      segments!
      
      This commit fixes that. So this test will pass for the right reason, and
      also on any segment count.
      828b99c4
    • T
      Upgrades to behave-1.2.4 · 7fdf6ef0
      Todd Sedano 提交于
      7fdf6ef0
    • T
      Fixes imports for behave 1.2.4 · c470a491
      Todd Sedano 提交于
      Signed-off-by: NChris Hajas <chajas@pivotal.io>
      c470a491
    • M
      GPDB DOCS Port 4.3.x updates to 5.0 (#2133) · 78a14481
      mkiyama 提交于
      [ci skip]
      78a14481
    • H
      Remove Orca translator dead code (#2138) · 0f7caefa
      Haisheng Yuan 提交于
      When I was trying to understand how does Orca generate plan for CTE using
      shared input scan, I found that the share input scan is generated during CTE
      producer & consumer DXL node to PlannedStmt translation stage, instead of Expr
      to DXL stage inside Orca. It turns out CDXLPhysicalSharedScan is not used
      anywhere, so remove all the related dead code.
      0f7caefa
    • H
      Fix duplicate typedefs. · 615b4c69
      Heikki Linnakangas 提交于
      It's an error in standard C - at least in older standards - to typedef
      the same type more than once, even if the definition is the same. Newer
      versions of gcc don't complain about it, but you can see the warnings
      with -pedantic (among a ton of other warnings, search for "redefinition").
      
      To fix, remove the duplicate typedefs. The ones in src/backend/gpopt and
      src/include/gpopt were actually OK, because a duplicate typedef is OK in
      C++, and those files are compiled with a C++ compiler. But many of the
      typedefs in those files were not used for anything, so I nevertheless
      removed duplicate ones there too, that caught my eye.
      
      In gpmon.h, we were redefining apr_*_t types when postgres.h had been
      included. But as far as I can tell, that was always - all the files that
      included gpmon, included postgres.h directly or indirectly before that.
      Search & replace the references to apr_*_t types in that file with the
      postgres equivalents, to make it more clear what they actually are.
      615b4c69
    • H
      Remove CdbCellBuf and CdbPtrBuf facilities. · f78d0246
      Heikki Linnakangas 提交于
      CdbCellBuf was only used in hash aggregates, and it only used a fraction
      of the functionality. In essence, it was using it as a very simple memory
      allocator, where each allocation was fixed size, and the only way to free
      was to reset the whole cellbuf. But the same code was using a different,
      but similar, mpool_* mechanism for allocating other things stored in
      the hash buckets. We might as well use mpool_alloc for the HashAggEntry
      struct as well, and get rid of all the cellbuf code.
      
      CdbPtrBuf was completely unused.
      f78d0246
  3. 03 4月, 2017 1 次提交
    • D
      We don't ship jdbc, or odbc (#2057) · 0193c5f7
      Dave Cramer 提交于
      * We don't ship jdbc, or odbc
      
      For building the installers this repo is not gone, just unlinked
      from gpdb5
      
      * remove references to odbc, and jdbc
      
      * remove more references to jdbc and odbc as well as client documentation
      
      * correctly remove windows specific code
      0193c5f7