1. 06 4月, 2017 6 次提交
  2. 05 4月, 2017 28 次提交
  3. 04 4月, 2017 6 次提交
    • 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