1. 21 12月, 2017 3 次提交
  2. 20 12月, 2017 2 次提交
  3. 19 12月, 2017 7 次提交
    • S
      Remove output (not answer) files from memory accounting TINC · 77fab4e1
      Sambitesh Dash 提交于
      They were leftover from the Perforce repo, and they should never have
      been checked in. Now this normally wouldn't have been an issue, except
      for commit history cleanliness: we would just silently overwrite the
      output files with actual output. But what if in CI those "output files"
      have different permissions? Turns out we would silently leave them
      alone. Two steps down the road we have a diff failure ...
      
      This commit removes -- at long last -- those output files.
      
      This fix is forward-ported from an older, closed-source version of
      Greenplum, where we first spotted this oversight. Strangely this is not
      causing any test failures on master or 5 ... But this still should be
      ported, even for cleanliness sake.
      Signed-off-by: NJesse Zhang <sbjesse@gmail.com>
      (cherry picked from commit 20d6b178)
      77fab4e1
    • D
      Doc edits for gptransfer --schema-only change (#9) · fd7c0ef5
      David Yozie 提交于
      * Doc edits for gptransfer --schema-only change
      
      * Change header title; add xref
      
      * --d -> -d
      
      * remove extraneous comma
      
      * changing -d behavior to match -t; making sentences parallel
      fd7c0ef5
    • L
      docs - costing diffs between gporca/planner and RQ limits (#4147) · a6ff2836
      Lisa Owen 提交于
      * docs - costing diffs between gporca/planner and RQ limits
      
      * mention fallback
      
      * RQs do not align/differentiate costs between planners
      a6ff2836
    • M
      docs: optimizer_join_order_threshold GUC update max value (#4156) · 9094056f
      Mel Kiyama 提交于
      PR for 5X_STABLE
      Will be ported to MAIN
      9094056f
    • D
      Make GetResGroupIdForName() take a const char* instead of char* · 123c58a5
      David Sharp 提交于
      Author: Amil Khanzada <akhanzada@pivotal.io>
      Author: David Sharp <dsharp@pivotal.io>
      (cherry picked from commit 35ae9aee)
      123c58a5
    • A
      Move AssignResGroupOnMaster() to the end of StartTransaction() (#3924) · 643be64a
      Amil Khanzada 提交于
      - As part of determining the resource group that a transaction should be
        assigned to, AssignResGroupOnMaster() calls GetResGroupIdForRole(), which
        queries a syscache on the catalog table pg_authid, which maps users to
        resource groups.
      - Prior to this commit, AssignResGroupOnMaster() was doing the queries
        on pg_authid near the top of StartTransaction() before the per-transaction
        memory context was set up. This required GetResGroupIdForRole() to run
        ResourceOwnerCreate() to avoid segfaulting gpdb and also led to many
        potential issues:
        * unknown behavior if a relcache invalidation event happens on pg_authid's
          syscache
        * possible stale pg_authid entries, as access done with SnapshotNow and
          out-of-date RecentGlobalXmin
        * memory leaks due to no memory context
        * uphill battle as newer version of PostgreSQL remove SnapshotNow and
          assume catalog lookups only happen when transactions are open
      Signed-off-by: NDavid Sharp <dsharp@pivotal.io>
      Signed-off-by: NAmil Khanzada <akhanzada@pivotal.io>
      (cherry picked from commit 9ea766d9)
      643be64a
    • M
      behave: make pid detection more robust · 25925f42
      Marbin Tan 提交于
      This is simply a setup/cleanup step for the behave tests, so be
      accomodating to try to get it to work.
      
      Scope: affects gpcheckcat.feature and backups.feature; these tests
      already have some timing affordances; this just adds a bit more backstop
      
      Author: Marbin Tan <mtan@pivotal.io>
      Author: C.J. Jameson <cjameson@pivotal.io>
      25925f42
  4. 18 12月, 2017 4 次提交
  5. 16 12月, 2017 7 次提交
  6. 14 12月, 2017 7 次提交
    • T
      Support gptransfer only schema of databases or tables · 96c17141
      Tingfang Bao 提交于
      This is to make gptransfer able to transfer only schema of databases or
      tables, like "--schema-only -d foo" or "--schema-only -t bar.public.t1".
      It could do that before actually but forgot to set the success flag.
      Signed-off-by: NAdam Lee <ali@pivotal.io>
      (cherry picked from commit d5852e91)
      96c17141
    • P
      Fix use-after-free in PyGreSQL · e4aab1ce
      Peifeng Qiu 提交于
      pg_query function is the underlying workhorse for db.query in
      python. For INSERT queries, it will return a string containing
      the number of rows successfully inserted.
      
      PQcmdTuples() parses a PGresult return by PQExec, if it's an insert
      count result, return a pointer to the count. However this pointer
      is the internal buffer of PGresult, it shouldn't be used after
      PQClear(), although most time its content remain accessible and
      unchanged. PyString_FromString will make a copy of the string, so
      move PQClear() after PyString_FromString is safe.
      
      This will fix the problem that gpload get a unprintable insert
      count sometimes.
      e4aab1ce
    • B
      Set the max size of join order threshold to 12 · 7992be03
      Bhuvnesh Chaudhary 提交于
      Signed-off-by: NHaisheng Yuan <hyuan@pivotal.io>
      7992be03
    • S
      Correct typo · bf0c7c77
      Shreedhar Hardikar 提交于
      bf0c7c77
    • S
      Fix storage test failures caused by 916f460f · bf182cee
      Shreedhar Hardikar 提交于
      The default value of Gp_role is set to GP_ROLE_DISPATCH. Which means
      auxiliary processes inherit this value. FileRep does the same, but also
      executes queries using SPI on the segment. Which means Gp_role ==
      GP_ROLE_DISPATCH is not a sufficient check for master QD.
      
      So, bring back the check on GpIdentity.
      
      Author: Asim R P <apraveen@pivotal.io>
      Author: Shreedhar Hardikar <shardikar@pivotal.io>
      bf182cee
    • S
      Ensure that ORCA is not called on any process other than the master QD · 8132c8df
      Shreedhar Hardikar 提交于
      We don't want to use the optimizer for planning queries in SQL, pl/pgSQL
      etc. functions when that is done on the segments.
      
      ORCA excels in complex queries, most of which will access distributed
      tables. We can't run such queries from the segments slices anyway
      because they require dispatching a query within another - which is not
      allowed in GPDB. Note that this restriction also applies to non-QD
      master slices.  Furthermore, ORCA doesn't currently support pl/*
      statements (relevant when they are planned on the segments).
      
      For these reasons, restrict to using ORCA on the master QD processes
      only.
      
      Also revert commit d79a2c7f ("Fix pipeline failures caused by 0dfd0ebc.")
      and separate out gporca fault injector tests in newly added
      gporca_faults.sql so that the rest can run in a parallel group.
      Signed-off-by: NJesse Zhang <sbjesse@gmail.com>
      8132c8df
    • L
      df7aa223
  7. 13 12月, 2017 3 次提交
  8. 12 12月, 2017 7 次提交
    • H
      Bump Orca version to 2.51.3 · 07e13721
      Haisheng Yuan 提交于
      07e13721
    • J
      Fix gpfdist regression bug. (#4106) · 18866480
      Jialun 提交于
      Update grep keywords to filter the unrelated program.
      18866480
    • C
      behave: allow tests to run at midnight without flaking · 62d52206
      C.J. Jameson 提交于
      These two tests (gpcheckcat and gptransfer) used a step that looked for
      a logfile with a date in the name. If that logfile existed at 11:59PM on
      the day before, and the test looked for it at 12:00AM on the next day,
      it "wouldn't be there"
      
      `Exception: Log "/home/gpadmin/gpAdminLogs/gpcheckcat_20171122.log" was not created`
      
      Refactor the tests so that assertions about using the typical
      gpAdminLogs directory are as banal as possible; emphasize the gptransfer
      tests of the user option to specify a log directory
      
      Author: C.J. Jameson <cjameson@pivotal.io>
      Author: Shoaib Lari <slari@pivotal.io>
      (cherry picked from commit 1de55903)
      62d52206
    • C
      gpstop: Document --host flag. · 0fc332c6
      C.J. Jameson 提交于
      Author: C.J. Jameson <cjameson@pivotal.io>
      Author: Shoaib Lari <slari@pivotal.io>
      (cherry picked from commit 5f6c036e)
      0fc332c6
    • S
      gpstop: Recognize downed segments before exiting · 73a27f6b
      Shoaib Lari 提交于
      Run a distributed query across all segments to force FTS to detect and mark all
      downed segments.
      
      Author: Nadeem Ghani <nghani@pivotal.io>
      Author: Marbin Tan <mtan@pivotal.io>
      Author: Shoaib Lari <slari@pivotal.io>
      Author: C.J. Jameson <cjameson@pivotal.io>
      (cherry picked from commit 8d2a56a4)
      73a27f6b
    • C
      gpstop: prevent `gpstop --host` if system doesn't have mirrors · 4549e7c3
      C.J. Jameson 提交于
      If we did stop all primaries on that host, the cluster would be down
      anyway. Best to just do a full-cluster gpstop, then bring it all back up
      together.
      
      (cherry picked from commit 4f96c774)
      4549e7c3
    • C
      gpstop: prevent `gpstop --host` if host has a master or standby on it · 7bf8a93a
      C.J. Jameson 提交于
      underlying pylib code identifies master and standby by content id
      
      `gpstop --host localhost` will fail differently: it will simply not find
      the host in the set of hostnames (unless that's how you configured
      things at first)
      
      (cherry picked from commit 2f1d9d56)
      7bf8a93a