1. 31 1月, 2018 4 次提交
  2. 30 1月, 2018 9 次提交
    • D
      Fix typo in file identification · d01d9ebe
      Daniel Gustafsson 提交于
      d01d9ebe
    • W
      Add hook to perfmon stat sender for cluster info collection · 8f299db7
      Wang Hao 提交于
      Leverage perfmon stat sender procees to call a hook function for cluster
      level info collection.
      
      Without changing existing behavior of stat sender process, this commit
      changed the interval in main loop of stat sender from 1 second to 100 ms
      because cluster info collector requires a finer granularity of sampling.
      With this change, stats sender process should be started when
      gp_enable_query_metrics is on.
      
      Author: Wang Hao <haowang@pivotal.io>
      Author: Zhang Teng <tezhang@pivotal.io>
      8f299db7
    • W
      Add hook to handle query info · 49b9bbc8
      Wang Hao 提交于
      The hook is called for
       - each query Submit/Start/Finish/Abort/Error
       - each plan node, on executor Init/Start/Finish
      
      Author: Wang Hao <haowang@pivotal.io>
      Author: Zhang Teng <tezhang@pivotal.io>
      49b9bbc8
    • W
      Alloc Instrumentation in Shmem · 67db4274
      Wang Hao 提交于
      On postmaster start, additional space in Shmem is allocated for Instrumentation
      slots and a header. The number of slots is controlled by a cluster level GUC,
      default is 5MB (approximate 30K slots). The default number is estimated by 250
      concurrent queries * 120 nodes per query. If the slots are exhausted,
      instruments are allocated in local memory as fallback.
      
      These slots are organized as a free list:
        - Header points to the first free slot.
        - Each free slot points to next free slot.
        - The last free slot's next pointer is NULL.
      
      ExecInitNode calls GpInstrAlloc to pick an empty slot from the free list:
        - The free slot pointed by the header is picked.
        - The picked slot's next pointer is assigned to the header.
        - A spin lock on the header to prevent concurrent writing.
        - When GUC gp_enable_query_metrics is off, Instrumentation will
          be allocated in local memory.
      
      Slots are recycled by resource owner callback function.
      
      Benchmark result with TPC-DS shows performance impact by this commit is less than 0.1%
      To improve performance of instrumenting, following optimizations are added:
        - Introduce instrument_option to skip CDB info collection
        - Optimize tuplecount in Instrumentation from double to uint64
        - Replace instrument tuple entry/exit function with macro
        - Add need_timer to Instrumentation, to allow eliminating of timing overhead.
          This is porting part of upstream commit:
      ------------------------------------------------------------------------
      commit af7914c6
      Author: Robert Haas <rhaas@postgresql.org>
      Date:   Tue Feb 7 11:23:04 2012 -0500
      
      Add TIMING option to EXPLAIN, to allow eliminating of timing overhead.
      ------------------------------------------------------------------------
      
      Author: Wang Hao <haowang@pivotal.io>
      Author: Zhang Teng <tezhang@pivotal.io>
      67db4274
    • A
      a77ba066
    • H
      Remove flaky test in QP-memory-accounting · 6179b922
      Haisheng Yuan 提交于
      The flakyness is caused by the Orca version bump to 2.53.11, in which Orca
      improved the equivclasses for inner/outer join plan. Previously Orca generated
      bad plan, causing OOM. But as of 2.53.11, Orca generated better plan, may not
      cause OOM. Due to the flakyness of this test, remove it.
      6179b922
    • S
      Address PR comments: · 73763d6c
      Shoaib Lari 提交于
      - Change gpdeletsystem to delete tablespaces before datadir
      - Refactor SegmentStart.noWait to pg_ctrl_wait
      - Create PgBaseBackup class
      - Revert the change to default Mirror status
      - Assorted typos and bugfixes
      
      Author: Shoaib Lari <slari@pivotal.io>
      Author: Jim Doty <jdoty@pivotal.io>
      Author: Nadeem Ghani <nghani@pivotal.io>
      73763d6c
    • C
      Remove more filespaces stuff in gpcheckmirrorseg · f1932443
      C.J. Jameson 提交于
      Author: C.J. Jameson <cjameson@pivotal.io>
      f1932443
    • S
      gpexpand: Make it work with segwalrep. · 4534d171
      Shoaib Lari 提交于
      The gpexpand utility and associated code are modified to work with the WALREP
      code.  Previously, gpexpand only worked with the primaries and relied on Filerep
      to populate the mirrors. We are changing gpexpand such that it initializes the
      mirrors using pg_basebackup and set them up for WAL replication.
      
      Also, since the WALREP branch removed Filespaces, so we have also done the same
      and replaced references to Filespaces by the Data Directory of the segments.
      
      Author: Marbin Tan <mtan@pivotal.io>
      Author: Shoaib Lari <slari@pivotal.io>
      Author: Nadeem Ghani <nghani@pivotal.io>
      4534d171
  3. 29 1月, 2018 3 次提交
  4. 27 1月, 2018 9 次提交
  5. 26 1月, 2018 6 次提交
  6. 25 1月, 2018 8 次提交
    • D
      Don't run regression tests in SQL_ASCII encoding by default · 958355ce
      Daniel Gustafsson 提交于
      This is a partial backport of the below commit from PostgreSQL 9.1,
      the part left out is documentation:
      
        commit 35eb0958
        Author: Peter Eisentraut <peter_e@gmx.net>
        Date:   Thu Jan 13 09:13:12 2011 +0200
      
          Don't run regression tests in SQL_ASCII encoding by default
      
          Instead, run them in the encoding that the locale selects, which is
          more representative of real use.
      
          Also document how locale and encoding for regression test runs can be
          selected.
      958355ce
    • D
      Revert encoding handling in pg_regress to upstream · bc3bb796
      Daniel Gustafsson 提交于
      If we avoid calling pg_regress with an empty --multibyte we
      can skip GPDB specific handling of the encoding parameter in
      pg_regress and instead follow upstream. While the local diffs
      to pg_regress weren't wrong per se, avoiding merge conflicts
      is of more interest.
      
      Also revert the commented out MULTIBYTE in the makefile to
      match the upstream value. A follow-up commit will fix this
      as well.
      bc3bb796
    • D
      Propagate segment errcodes to dispatcher · 58003bc7
      Daniel Gustafsson 提交于
      The errcode thrown in an ereport() on a segment was passed back to
      the dispatcher, but then dropped and replaced with a default errcode
      of ERRCODE_DATA_EXCEPTION. This works for most situations, but when
      trapping errors the exact errcode must be propagated. This extends
      the API to extract the errcode as well. The below case illustrates
      the previous issue:
      
        CREATE TABLE test1(id int primary key);
        CREATE TABLE test2(id int primary key);
        INSERT INTO test1 VALUES(1);
        INSERT INTO test2 VALUES(1);
        CREATE OR REPLACE FUNCTION merge_table() RETURNS void AS $$
        DECLARE
      	v_insert_sql varchar;
        BEGIN
      	v_insert_sql :='INSERT INTO test1 SELECT * FROM test2';
      	EXECUTE v_insert_sql;
      	EXCEPTION WHEN unique_violation THEN
      		RAISE NOTICE 'unique_violation';
      	END;
        $$ LANGUAGE plpgsql volatile;
        SELECT merge_table();
      58003bc7
    • S
      Bump ORCA version to 2.54.0 · 1b09b73f
      Shreedhar Hardikar 提交于
      1b09b73f
    • S
      Do not maintain mdidType separately in CDXLScalarIdent · f4ffb177
      Shreedhar Hardikar 提交于
      This information can be easily derived from CDXLColRef member of
      CDXLScalarIdent. This now mirrors what is done in the ORCA types
      CScalarIdent and CColRef.
      Signed-off-by: NEkta Khanna <ekhanna@pivotal.io>
      f4ffb177
    • L
      Use PXF docker image to run PXF smoke (#4416) · 184908ad
      Lav Jain 提交于
      * Use PXF docker image to run PXF smoke
      
      * Remove unused singlecluster resource
      184908ad
    • C
      eb1e2379
    • X
      Fix TESTER env variables · 9021f8db
      Xin Zhang 提交于
      Author: Xin Zhang <xzhang@pivotal.io>
      Author: Asim R P <apraveen@pivotal.io>
      9021f8db
  7. 24 1月, 2018 1 次提交