1. 09 8月, 2017 2 次提交
    • P
      Add debug info for interconnect network timeout · 9a9cd48b
      Pengzhou Tang 提交于
      It was very difficult to verify if interconnect is stucked in resending
      phase or if there is udp resending latency within interconnect. To improve
      it, this commit record a debug message every Gp_interconnect_debug_retry_interval
      times when gp_log_interconnect is set to DEBUG.
      9a9cd48b
    • H
      Replace special "QE details" protocol message with standard ParameterStatus msg. · d85257f7
      Heikki Linnakangas 提交于
      This gets rid of the GPDB-specific "QE details" message, that was only sent
      once at QE backend startup, to notify the QD about the motion listener port
      of the QE backend. Use a standard ParameterStatus message instead, pretending
      that there is a GUC called "qe_listener_port". This reduces the difference
      between the gp_libpq_fe copy of libpq, and libpq proper. I have a dream that
      one day we will start using the standard libpq also for QD-QE communication,
      and get rid of the special gp_libpq_fe copy altogether, and this is a small
      step in that direction.
      
      In the passing, change the type of Gp_listener_port variable from signed to
      unsigned. Gp_listener_port actually holds two values: the TCP and UDP
      listener ports, and there is bit-shifting code to store those two 16-bit
      port numbers in the single 32-bit integer. But the bit-shifting was a bit
      iffy, on a signed integer. Making it unsigned makes it more clear what's
      happening.
      d85257f7
  2. 02 8月, 2017 1 次提交
    • R
      Make memory spill in resource group take effect · 68babac4
      Richard Guo 提交于
      Resource group memory spill is similar to 'statement_mem' in
      resource queue, the difference is memory spill is calculated
      according to the memory quota of the resource group.
      
      The related GUCs, variables and functions shared by both resource
      queue and resource group are moved to the namespace resource manager.
      
      Also codes of resource queue relating to memory policy are refactored in this commit.
      Signed-off-by: NPengzhou Tang <ptang@pivotal.io>
      Signed-off-by: NNing Yu <nyu@pivotal.io>
      68babac4
  3. 07 6月, 2017 1 次提交
    • P
      restore TCP interconnect · 353a937d
      Pengzhou Tang 提交于
      This commit restore TCP interconnect and fix some hang issues.
      
      * restore TCP interconnect code
      * Add GUC called gp_interconnect_tcp_listener_backlog for tcp to control the backlog param of listen call
      * use memmove instead of memcpy because the memory areas do overlap.
      * call checkForCancelFromQD() for TCP interconnect if there are no data for a while, this can avoid QD from getting stuck.
      * revert cancelUnfinished related modification in 8d251945, otherwise some queries will get stuck
      * move and rename faultinjector "cursor_qe_reader_after_snapshot" to make test cases pass under TCP interconnect.
      353a937d
  4. 07 4月, 2017 2 次提交
    • K
      Define a GUC 'max_resource_groups' to constraint resource groups created in · 3dc4703f
      Kenan Yao 提交于
      database.
      
      Signed-off-by Richard Guo <riguo@pivotal.io>
      Signed-off-by Gang Xiong <gxiong@pivotal.io>
      3dc4703f
    • K
      Implement concurrency limit of resource group. · d0c6a352
      Kenan Yao 提交于
      Works include:
      * define structures used by resource group in shared memory;
      * insert/remove shared memory object when Create/Drop Resource Group;
      * clean up and restore when Create/Drop Resource Group fails;
      * implement concurrency slot acquire/release functionality;
      * sleep when concurrency slot is not available, and wake up others when
      releasing a concurrency slot if necessary;
      * handle signals in resource group properly;
      
      Signed-off-by Richard Guo <riguo@pivotal.io>
      Signed-off-by Gang Xiong <gxiong@pivotal.io>
      d0c6a352
  5. 03 3月, 2017 1 次提交
  6. 26 2月, 2017 4 次提交
    • D
      Remove extended ALTER TABLE INHERIT syntax · 3e90e6a9
      Daniel Gustafsson 提交于
      The gp_enable_alter_table_inherit_cols GUC was used to allow a list
      of columns to override the attribute discovery for inheritance in
      ALTER TABLE INHERIT. According to code comments the only consumer
      of this was gpmigrator, but no callsite remains and no support in
      pg_dumpall remains either. Remove the leftovers of this to avoid a
      potential footgun and get us closer to upstream code.
      3e90e6a9
    • D
      Remove gp_external_grant_privileges · 1e20c783
      Daniel Gustafsson 提交于
      The gp_external_grant_privileges GUC was needed before 4.0 to let
      non superusers create external tables for gphdfs and http protocols.
      This GUC was however deprecated during the 4.3 cycle so remove all
      traces of it. The utility of the GUC was replaced in 4.0 when rights
      management for external tables was implemented with the normal GRANT
      REVOKE framework so this has been dead code for quite some time.
      
      Remove GUC, code which handles it, all references to it from the
      documentation and a release notes entry.
      1e20c783
    • D
      Remove deprecated memory control GUCs · 8442a4dc
      Daniel Gustafsson 提交于
      The gp_eager_hashtable_release GUC was deprecated in version 4.2
      in 2011 when the generic eager free framework was implemented. The
      leftover gp_eager_hashtable_release was asserted to be true and
      never intended to be turned off. The same body of work deprecated
      the max_work_mem setting which was bounding the work_mem setting.
      While not technically tied to eager hashtable release, remove as
      well since it's deprecated, undocumented and not terribly useful.
      
      Relevant commit in closed source repo is 88986b7d
      8442a4dc
    • D
      Remove deprecated gp_hashagg_compress_spill_files GUC · 38922f15
      Daniel Gustafsson 提交于
      The gp_hashagg_compress_spill_files GUC was deprecated in 2010 when
      it was replaced by gp_workfile_compress_algorithm. The leftovers
      haven't done anything for quite some time so remove GUC.
      
      Relevant commit in closed source repo is c1ce9f03
      38922f15
  7. 23 2月, 2017 1 次提交
  8. 14 2月, 2017 2 次提交
  9. 21 12月, 2016 1 次提交
    • A
      Update SharedLocalSnapshot correctly for subtransactions · 46d9521b
      Ashwin Agrawal 提交于
      QE reader leverages SharedLocalSnapshot to perform visibility checks. QE writer
      is responsible to keep the SharedLocalSnapshot up to date. Before this fix,
      SharedLocalSnapshot was only updated by writer while acquiring the snapshot. But
      if transaction id is assigned to subtransaction after it has taken the snapshot,
      it was not reflected. Due to this when QE reader called
      TransactionIdIsCurrentTransactionId, it may get sometimes false based on timings
      for subtransaction ids used by QE writer to insert/update tuples. Hence to fix
      the situation, SharedLocalSnapshot is now updated when assigning transaction id
      and deregistered if subtransaction aborts.
      
      Also, adding faultinjector to suspend cursor QE reader instead of guc/sleep used
      in past. Moving cursor tests from bugbuster to ICG and adding deterministic test
      to exercise the behavior.
      
      Fixes #1276, reported by @pengzhout
      46d9521b
  10. 02 11月, 2016 2 次提交
  11. 25 8月, 2016 1 次提交
    • H
      Remove CaQL. · 1a2a02a6
      Heikki Linnakangas 提交于
      The previous commits have removed all usage of CaQL. It's no longer
      needed.
      1a2a02a6
  12. 18 8月, 2016 1 次提交
  13. 20 7月, 2016 1 次提交
    • H
      Remove last remnants of gp_enable_delete_as_truncate GUC. · 24db2c6b
      Heikki Linnakangas 提交于
      The feature was disabled, by removing it from guc.c, only months after
      it was introduced, back in 2009. I'm not sure if it ever made it into a
      public release. We have no plans to resurrect it, and it has surely
      bitrotted so badly that even if we did, it would be better to start from
      scratch.
      24db2c6b
  14. 18 7月, 2016 1 次提交
  15. 28 6月, 2016 1 次提交
  16. 24 3月, 2016 1 次提交
    • P
      Remove ic_tcp and ic_udp related codes · 870531c7
      Pengzhou Tang 提交于
      Codes of ic_tcp and ic_udp are not maintained any more, ic_udpifc is
      the only interconnect type for now. We keep the gp_interconnect_type
      guc for backward compatibility.
      870531c7
  17. 06 2月, 2016 1 次提交
  18. 21 12月, 2015 1 次提交
  19. 28 10月, 2015 1 次提交