1. 20 2月, 2019 7 次提交
  2. 19 2月, 2019 2 次提交
  3. 18 2月, 2019 3 次提交
  4. 16 2月, 2019 21 次提交
  5. 15 2月, 2019 7 次提交
    • N
      gpexpand: behave: check return code when run with duration · 510181ea
      Ning Yu 提交于
      A duration can be set on gpexpand phase2, then it can quit before
      redistributed all the tables.  There is behave tests to verify this,
      however they should check whether gpexpand quit on time.
      510181ea
    • D
      Minor codereview of gpssh-exkeys · 875c6767
      Daniel Gustafsson 提交于
      The :else clause on the for loop is superfluous as the loop doesn't
      contain any break statement. Removing it will yield the same codepath
      but makes for improved readability.
      
      This also removes an unused import (time) as well as fixes a set of
      typos.
      Reviewed-by: NJimmy Yih <jyih@pivotal.io>
      875c6767
    • P
      Fix subquery_motionHazard_walker() to accomodate more plan node types. (#6803) · eea51362
      Paul Guo 提交于
      Also refactor subquery_motionHazard_walker() to make it simpler.
      eea51362
    • N
      gpexpand: behave: check redistribute result from status table. · a7d0fb7f
      Ning Yu 提交于
      Unless cancelled with ctrl-c the gpexpand redistribution phase's return
      code is always 0, it does not indicate whether the redistribution
      succeed or not, to get this information we need to check the status from
      gpexpand.status.
      a7d0fb7f
    • N
      gpexpand: do not redistribute temp tables · 6169a2da
      Ning Yu 提交于
      Most temp tables won't live for long, there is no need to redistribute
      them.
      
      On the other hand if they are populated in gpexpand.status_detail and
      disappeared before redistribution, an error is reported to the user,
      this just causes unnecessary panic.
      6169a2da
    • T
      Recursively create partitioned indexes · f27b2a50
      Taylor Vesely 提交于
      Pull from upstream Postgres to make DefineIndex recursively create partitioned
      indexes. Instead of creating an individual IndexStmt for every partition,
      create indexes by recursing on the partition children.  This aligns index
      creation with upstream in preparation for adding INTERNAL_AUTO relationships
      between partition indexes.
      
       * The QD will now choose the same name for partition indexes as Postgres.
       * Update tests to reflect the partition index names changes.
       * The changes to DefineIndex are mostly cherry-picked from Postgres commit:
         8b08f7d4
       * transformIndexStmt and its callers have been aligned with Postgres
         REL9_4_STABLE
      Co-authored-by: NKalen Krempely <kkrempely@pivotal.io>
      f27b2a50
    • J
      Revert eager dispatch of index creation during ALTER TABLE · fecd245a
      Jesse Zhang 提交于
      This reverts the following commits:
      commit 0ee987e64 - "Don't dispatch index creations too eagerly in ALTER TABLE."
      commit 28dd0152 - "Enable alter table column with index (#6286)"
      
      The motivation of commit 0ee987e64 is to stop eager dispatch of index creation
      during ALTER TABLE, and instead perform a single dispatch. Doing so prevents
      index name already exists errors when altering data types on indexed columns
      such as:
      
          ALTER TABLE foo ALTER COLUMN test TYPE integer;
          ERROR:  relation "foo_test_key" already exists
      
      Unfortunately, without eager dispatch of index creation the QEs can choose a
      different name for a relation than was chosen on the QD. Eager dispatch was the
      only mechanism we had to ensure a deterministic and consistent index name
      between the QE and QD in some scenarios. In the absence of another mechanism we
      must revert this commit.
      
      This commit also rolls back commit 28dd0125 to enable altering data types on
      indexed columns, which required commit 0ee987e64.
      Co-authored-by: NKalen Krempely <kkrempely@pivotal.io>
      Co-authored-by: NTaylor Vesely <tvesely@pivotal.io>
      Co-authored-by: NDavid Krieger <dkrieger@pivotal.io>
      fecd245a