1. 26 9月, 2017 1 次提交
  2. 01 9月, 2017 1 次提交
  3. 11 8月, 2017 1 次提交
  4. 09 8月, 2017 1 次提交
    • P
      Do not include gp-libpq-fe.h and gp-libpq-int.h in cdbconn.h · cf7cddf7
      Pengzhou Tang 提交于
      The whole cdb directory was shipped to end users and all header files
      that cdb*.h included are also need to be shipped to make checkinc.py
      pass. However, exposing gp_libpq_fe/*.h will confuse customer because
      they are almost the same as libpq/*, as Heikki's suggestion, we should
      keep gp_libpq_fe/* unchanged. So to make system work, we include
      gp-libpg-fe.h and gp-libpq-int.h directly in c files that need them
      cf7cddf7
  5. 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
  6. 09 3月, 2017 1 次提交
  7. 17 2月, 2017 1 次提交
  8. 01 11月, 2016 1 次提交
    • H
      Fix gcc warnings on misleading indentation. · cdfe1917
      Heikki Linnakangas 提交于
      In many places where we had used a mixture of spaces and tabs for
      indentation, new versions of gcc complained about misleading indentation,
      because gcc doesn't know we're using tab width of 4. To fix, make the
      indentation consistent in all the places where gcc gave a warning. Would
      be nice to fix it all around, but that's a lot of work, so let's do it
      in a piecemeal fashion whenever we run into issues or need to modify a
      piece of code anyway.
      
      For some files, especially the GPDB-specific ones, I ran pgindent over
      the whole file. I used the pgindent from PostgreSQL master, which is
      slightly different from what was used back 8.3 days, but that's what I had
      easily available, and that's what we're heading to in the future anyway.
      In some cases, I didn't commit the pgindented result if there were
      funnily formatted code or comments that would need special treatment.
      
      For other places, I fixed the indentation locally, just enough to make the
      warnings go away.
      
      I also did a tiny bit of other trivial cleanup, that I happened to spot
      while working on this, although I tried to refrain from anything more
      extensive.
      cdfe1917
  9. 25 10月, 2016 1 次提交
    • F
      Implementation of index based memory accounting. · 81627e27
      Foyzur Rahman 提交于
      Previously accounting tree and reference to accounts were pointer based.
      This prevents us from freeing accounts at the end of each statement as
      later statements of that transaction can potentially access memory and
      the corresponding accounts. This resulted in a perceived memory leak as
      the accounts were not freed per-statement.
      
      In this implementation we convert pointers to index that can refer to an
      array of accounts. This allows us to partition indexes based on
      "generation" to define which accounts are live and which are already
      dead. This is also a soft-pointer so we don't crash accessing it. This
      also allows us to optimize the previous heavyweight "rollover" at the
      time of generation overflow as we no longer need to detect the validity
      of accounts based on generation, and rather we can just refer to logical
      range of indexes to identify the liveness.
      
      [#120028219]
      81627e27
  10. 21 6月, 2016 1 次提交
  11. 03 6月, 2016 1 次提交
  12. 09 5月, 2016 2 次提交
  13. 28 10月, 2015 1 次提交