1. 02 3月, 2017 11 次提交
  2. 01 3月, 2017 13 次提交
    • N
      resgroup: add per activity resgroup information to pg_stat_activity. · 6b9f542d
      Ning Yu 提交于
      Below columns are added:
      
      * rsgid: resgroup id;
      * rsgname: resgroup name;
      * rsgqueueduration: queued duration in the resgroup;
      
      As resgroup is not fully implemented yet there is only dummy output for
      these columns at the moment.
      6b9f542d
    • N
      resgroup: add view for resgroup runtime statistics information. · 5c0949f3
      Ning Yu 提交于
      Add view gp_toolkit.gp_resgroup_status for resource group runtime
      statistics information, such as cpu usage, memory usage, etc..
      
      Example:
      
          -- query resource group runtime statistics information
          SELECT * FROM gp_toolkit.gp_resgroup_status;
      
      A helper function pg_resgroup_get_status_kv() is also provided to
      collect these information.
      
      A new dir src/backend/utils/resgroup/ is created to hold the resgroup
      source code.
      
      As resgroup is not fully implemented yet there is only dummy output for
      this view at the moment.
      5c0949f3
    • N
      resgroup: add view for resgroup config information. · ae2da268
      Ning Yu 提交于
      Add view gp_toolkit.gp_resgroup_config for resource group information,
      such as concurrency, cpu rate limitation, etc..
      
      Example:
      
          -- query resource group config information
          SELECT * FROM gp_toolkit.gp_resgroup_config;
      ae2da268
    • A
      Fix PR pipeline pulling issue · 7bdf1b35
      Adam Lee 提交于
      docker image jtarchie/pr updated recently, which breaks our git
      submodule pulling, fall back to the working tag.
      Signed-off-by: NAdam Lee <ali@pivotal.io>
      Signed-off-by: NYuan Zhao <yuzhao@pivotal.io>
      7bdf1b35
    • H
      Move functionProperty tests from TINC. · 64f83aa8
      Heikki Linnakangas 提交于
      I'm not how many of these tests are worth keeping at all, but as a first
      step, let's get them into the main test suite. The runtime of the parallel
      group with these tests is about 1 minute on my laptop.
      
      This is mostly a straightforward move, with mechanical changes removing the
      useless TINC tags. However, some tests were marked with the special
      "@executemode ORCA_PLANNER_DIFF" tag. The code in __init__.py ran those
      tests differently. Normally, you run a test, and comparet the output with
      the expected output file. But those ORCA_PLANNER_DIFF tests were run twice,
      with and without ORCA, and the results were compared against each other,
      instead of the expected output stored in the repository. The expected
      outputs of those tests were out of date, you got a different error message
      now than what was remembered in the expected output.
      
      Now those tests are run as normal pg_regress tests. I updated the expected
      output of those tests to match what you get nowadays.
      64f83aa8
    • H
      Remove boring tests on pg_size_pretty. · c25d162a
      Heikki Linnakangas 提交于
      pg_size_pretty() is completely ordinary and boring function. It doesn't
      do database access or anything like that. We can live without testing it
      in every possible context.
      c25d162a
    • H
      Move misc test from TINC. · 334a8323
      Heikki Linnakangas 提交于
      334a8323
    • H
      Remove redundant or boring tests. · cc629da7
      Heikki Linnakangas 提交于
      * dml_boundary_bool seems redundant. We surely have a lot of other tests
        involving boolean columns.
      * dml_boundary_char is redundant with the 'char' test in main suite.
      * dml_boundary_money was disabled.
      * dml_boundary_smallint was redundant with 'int2' test in main suite.
      * dml_boundary_integer was redundant with 'int4' test in main suite.
      * dml_boundary_bigint was redundant with 'int8' test in main suite.
      cc629da7
    • H
      Remove redundant TINC tests for direct dispatch. · e17f1334
      Heikki Linnakangas 提交于
      There are a lot of similar and more interesting tests for direct dispatch
      in the main test suite ('direct_dispatch' test, for example).
      
      The negative test cases, like inserting into a randomly distributed table
      so that direct dispatch is not possible, were not very interesting, so I
      removed them. A mistake in the other direction, i.e. not performing direct
      dispatch when we could have, does not lead to incorrect query results, just
      slower performance, which is why we need bespoken tests for those. But
      if we erroneously do direct dispatch for a query, where it is not legal,
      that will lead to incorrect query results, so we should catch those cases
      by all the other tests in the test suite.
      
      There was one test case, involving DEFAULTs in the INSERT statement, that
      I thought is marginally worth keeping, so added a case for that in
      'direct_dispatch' before removing it.
      e17f1334
    • S
      Re-enable 3 runaway query tests. · 03ddc861
      Shreedhar Hardikar 提交于
      03ddc861
    • H
      Remove redundant TINC tests for ALTER TABLE. · 635f1d35
      Heikki Linnakangas 提交于
      We have sufficient coverage for these in the main regression suite already.
      
      * Partitions are covered by the 'partindex_test', 'partition', and
        'partition1' tests.
      
      * ALTER TABLE on non-partitioned tests are covered in 'alter_table' test.
      
      * SET DISTRIBUTION POLICY is covered by the 'alter_distribution_policy'
        test. It seems unnecessary test so many different data types,
        there is no datatype-specific handling in the set distribution policy
        code.
      635f1d35
    • C
      Feature/analytics examples (#1882) · a61bf8b7
      Chuck Litzell 提交于
      * Merge recent changes
      
      * Remove examples with deprecated functions
      
      * Move examples using deprecated analytic functions to MADlib doc, and redo with MADlib functions.
      
      * Removes deprecated functions, relocates the unnest() function, and links to MADlib topic.
      
      [ci skip]
      a61bf8b7
    • M
      Change PQO to GPORCA in piv-opt.png graphic (#1886) · f8881485
      mkiyama 提交于
      f8881485
  3. 28 2月, 2017 16 次提交