1. 05 1月, 2018 2 次提交
    • J
      set search_path and stop dropping schema in gporca test · c7ab6924
      Jesse Zhang 提交于
      The `gporca` regression test suite uses a schema but doesn't really
      switch `search_path` to the schema that's meant to encapsulate most of
      the objects it uses. This has led to multiple instances where we:
        1. Either used a table from another namespace by accident;
        2. Or we leaked objects into the public namespace that other tests in
        turned accidentally depended on.
      
      As we were about to add a few user-defined types and casts to the test
      suite, we want to (at last) ensure that all future additions are scoped
      to the namespace.
      Signed-off-by: NSambitesh Dash <sdash@pivotal.io>
      
      Closes #4238
      c7ab6924
    • C
      behave: reset the faultinjector explicitly · 8fcf01c2
      C.J. Jameson 提交于
      Author: C.J. Jameson <cjameson@pivotal.io>
      8fcf01c2
  2. 04 1月, 2018 5 次提交
    • M
      docs: pl/container updates - plcontainer command, configuration file (#4223) · 38e6d5f8
      Mel Kiyama 提交于
      *  docs: pl/container updates - plcontainer command, configuration file
      
      -removed experimental warning.
      -replaced plcontainer command with new options.
      -updated configuration file - changed element names, added setting element.
      -updated default shared volume.
      
      PR for 5X_STABLE
      Will be ported to MAIN
      
      * docs: pl/container - updates based on review comments.
      
      * docs: pl/container - more updates based on additional review comments.
      
      * docs: pl/container - minor edit
      
      * docs: pl/container - another minor fix.
      38e6d5f8
    • L
      docs - add info about greenplum database release versioning (#4193) · 4916d30e
      Lisa Owen 提交于
      * docs - add info about greenplum database release versioning
      
      * misc edits requested by david
      
      * update subnav titles
      
      * clarify that deprecated features removed only in major release
      4916d30e
    • M
      docs: gpstop new option --host (#4069) · 18185d41
      Mel Kiyama 提交于
      * docs: gpstop new option --host
      
      * docs: gpstop - update update/clarify --host description based on review comments.
      
      * docs: gpstop --host. updates based on review comments.
      
      * docs: gpstop - added information on restoring segments after using --host.
      
      * docs: gpstop --host. corrected name of utility to recover segments : gprecoverseg.
      18185d41
    • J
      atmsort: try to find the end of \d tables correctly · d89fef52
      Jacob Champion 提交于
      Several \d variants don't put a row count at the end of their tables,
      which means that atmsort doesn't stop sorting output until it finds a
      row count somewhere later. Some tests are having their diff output
      horribly mangled because of this, which makes debugging difficult.
      
      When we see a \d command, try to apply more heuristics for finding the
      end of a table. In addition to ending at a row count, end table sorting
      whenever we find a line that doesn't have the same number of column
      separators as the table header. If we don't have a table header, still
      attempt to end table sorting at a blank line.
      
      extprotocol's test output order must be fixed as a result. Put the
      "External options" line where psql actually prints it, after "Format
      options".
      d89fef52
    • D
      gpperfmon: Document installing a fork of sigar on CentOS 7 · f9f6d2fd
      David Sharp 提交于
      https://github.com/hyperic/sigar is not under active development.
      
      https://github.com/boundary/sigar is a fork that has been somewhat updated. In particular, it has a fix to allow it to compile with GCC 5 and 6.
      f9f6d2fd
  3. 03 1月, 2018 21 次提交
  4. 02 1月, 2018 9 次提交
    • H
      Remove broken test queries. · 456f57e6
      Heikki Linnakangas 提交于
      The ao_ptotal() test function was broken a long time ago, in the 8.3 merge,
      by the removal of implicit cast from text to integer. You just got an
      "operator does not exist: text > integer" error. However, the queries
      using the function were inside start/end_ignore blocks, so that didn't
      
      We have tests on tupcount elsewhere, in the uao_* tests, for example.
      Whether the table is partitioned or not doesn't seem very interesting. So
      just remove the test queries, rather than try to fix them. (I don't
      understand what the endianess issue mentioned in the comment might've
      been.)
      
      I kept the test on COPY with REJECT LIMIT on partitioned table. I'm not
      sure how interesting that is either, but it wasn't broken. While at it,
      I reduced the number of partitions used, though, to shave off a few
      milliseconds from the test.
      456f57e6
    • H
      Fix test broken by commit e314acb1. · 01536f8d
      Heikki Linnakangas 提交于
      Commit e314acb1 changed the 'count_operator' helper function to include
      the EXPLAIN, so that it doesn't need to be given in the argument query
      anymore. But many of the calls of count_operator were not changed, and
      still contained EXPLAIN in the query, and as a result, they failed with
      'syntax error at or near "explain"'. These syntax errors were accidentally
      memorized in the expected output. Revert the expected output to what it
      was before, and remove the EXPLAIN from the queries instead.
      01536f8d
    • H
      Remove uninteresting and duplicated tests on ALTER TABLE TEMPLATE syntax. · 32dd73d7
      Heikki Linnakangas 提交于
      We have these exact same tests twice, with and without scema-qualifying
      the table name. That's hardly a meaningful difference, when testing the
      grammar of the SUBPARTITION TEMPLATE part. Remove the duplicated tests.
      (I'm not convinced it's useful to have even a single copy of these tests,
      but keep for now.)
      32dd73d7
    • H
      Remove duplicate test. · 9b838fab
      Heikki Linnakangas 提交于
      Both bfv_partition and partition_ddl had the essentially the same test.
      Keep the copy in partition_ddl, and move the "alter table" commands that
      were only present in the bfv_partition copy there.
      9b838fab
    • H
      Remove unused "debug_break" debugging facility. · e2778699
      Heikki Linnakangas 提交于
      AFAICS, this code isn't used for anything. It's a debugging utility, though,
      so maybe that's intentional. I think to use this, you're supposed to modify
      the source code at some place of interest, and add a debug_break() call
      there. However, I'm not aware of anyone using that. I just insert a sleep()
      or use a gdb breakpoint for that, when I'm debugging.
      e2778699
    • H
      Remove a few uninteresting test queries. · c900f980
      Heikki Linnakangas 提交于
      These negative tests throw an error in the parse analysis phase already.
      Whether the target table is an AO or AOCO table is not interesting.
      c900f980
    • H
      Cosmetic cleanup in explain.c, to reduce diff vs. upstream. · ffde6b67
      Heikki Linnakangas 提交于
      * Remove unnecessary #includes, and extern declaration for
        Test_print_direct_dispatch_info
      
      * Remove unneeded debugging code to print target list (you get that in
        a nicer format with EXPLAIN VERBOSE now)
      
      * Remove duplicated assignment of 'useprefix' variable in show_sort_keys
      
      * Whitespace fixes.
      ffde6b67
    • H
      Cosmetic cleanup in execMain.c, to reduce diff vs. upstream. · e08292f9
      Heikki Linnakangas 提交于
      * Move a few GPDB-added functions to end of file. They were confusing "git
        diff", making it show a large diff in InitPlan(), even though it's mostly
        unchanged.
      
      * Inline InitializeResultRelations back into InitPlan(), like it is in the
        upstream
      
      * Add back upstrem code to deal with RETURNING, but #ifdef'd out.
      e08292f9
    • H
      Whitespace fixes, to reduce diff vs. upstream. · 77bee2d8
      Heikki Linnakangas 提交于
      77bee2d8
  5. 30 12月, 2017 1 次提交
  6. 29 12月, 2017 1 次提交
  7. 28 12月, 2017 1 次提交
    • A
      Able to cancel COPY PROGRAM ON SEGMENT if the program hangs · 110b825f
      Adam Lee 提交于
      There are two places that QD keep trying to get data, ignore SIGINT, and
      not send signal to QEs. If the program on segment has no input/output,
      copy command hangs.
      
      To fix it, this commit:
      
      1, lets QD wait connections able to be read before PQgetResult(), and
      cancels queries if gets interrupt signals while waiting
      2, sets DF_CANCEL_ON_ERROR when dispatch in cdbcopy.c
      3, completes copy error handling
      
      -- prepare
      create table test(t text);
      copy test from program 'yes|head -n 655360';
      
      -- could be canceled
      copy test from program 'sleep 100 && yes test';
      copy test from program 'sleep 100 && yes test<SEGID>' on segment;
      copy test from program 'yes test';
      copy test to '/dev/null';
      copy test to program 'sleep 100 && yes test';
      copy test to program 'sleep 100 && yes test<SEGID>' on segment;
      
      -- should fail
      copy test from program 'yes test<SEGID>' on segment;
      copy test to program 'sleep 0.1 && cat > /dev/nulls';
      copy test to program 'sleep 0.1<SEGID> && cat > /dev/nulls' on segment;
      110b825f