1. 01 11月, 2017 8 次提交
  2. 31 10月, 2017 1 次提交
    • N
      resgroup: integer precision issue. · 3f50de26
      Ning Yu 提交于
      CID 178328: Integer handling issues  (OVERFLOW_BEFORE_WIDEN)
      - fixed by using correct integer type in the expression.
      
      Also updated some out-of-date comments.
      3f50de26
  3. 01 11月, 2017 1 次提交
    • J
      Remove test case of gpload from final install targets · 58907b41
      Jasper Li 提交于
      gpload_test directory at gpMgmt/bin/gpload_test/  is part of the "make install" target.
      It is not fatal for publishing a debian (.deb) package of open-source Greenplum,
      but it makes the .deb larger and is embarrassing.
      58907b41
  4. 31 10月, 2017 13 次提交
  5. 30 10月, 2017 14 次提交
    • C
      Consolidate XML transform examples with gpfdist docs in the admin guide (#3601) · 64ce04e7
      Chuck Litzell 提交于
      * Consolidate XML transform examples with gpfdist docs in the admin guide
      
      * Minor edit
      
      * Review comments and relocate to load section
      64ce04e7
    • A
      Optimize header files in fe-connect.c for Windows Clients · abdf7600
      Adam Lee 提交于
      abdf7600
    • H
      Use string representation of segment ids in CatMissingIssue object. · 792a9b43
      Heikki Linnakangas 提交于
      In commit 226e8867, I changed the CatMissingIssue object to hold the
      content IDs of segments where an entry is missing in a Python list, instead
      of the string representation of a PostgreSQL array (e.g. "{1,2,-1}") that
      was used before. That was a nice simplification, but it turns out that
      there was more code that accessed the CatMissingIssue.segids field that I
      missed. It would make sense to change the rest of the code, IMHO, but to
      make the CI pipeline happy quickly, this commit just changes the code back
      to using a string representation of a PostgreSQL array again.
      
      This hopefully fixes the MM_gpcheckcat behave test failures.
      792a9b43
    • A
      Fix Clients for Windows pipeline · 7dcf6c25
      Adam Lee 提交于
      Use macro WIN32 to bypass some codes like poll.
      7dcf6c25
    • J
      fix bug gpload error count (#3629) · c9977c1d
      Jialun 提交于
      gpload error count is incorrect when more than one segment has format
      error, for the cmdtime is different, and only errors with the newest
      cmdtime is counted.
      
      So we add startTime which will be used for counting all the errors
      occured during the same gpload operation.
      c9977c1d
    • A
      Remove unnecessary header files in fe-misc.c · 00dbc905
      Adam Lee 提交于
      00dbc905
    • A
      Fix SUSE and Windows pipeline caused by retiring gp_libpq_fe · 719a1cca
      Adam Lee 提交于
      SUSE needs header files for off_t and Windows has no poll.
      
      (cherry picked from commit 222d9c6dc63421c6aa2006ee02f4a18848cfc2f8)
      719a1cca
    • N
      Fix a resgroup performance issue. · 0b85b9d0
      Ning Yu 提交于
      On low end system with 1~2 cpu cores the new queries in a cold resgroup
      can suffer from a high latency when the overall load is very high.
      
      The root cause is that we used to set very high cpu priority for gpdb
      cgroups, so non gpdb process are scheduled with very low priority and
      high latency. GPDB processes are also affected by this because
      postmaster and other auxiliary are not put into gpdb cgroups. Even for
      QD and QEs they are not put into a gpdb cgroup until their transaction
      is began.
      
      To fix this we made below changes:
      * put postmaster and all its children processes into the toplevel
        gpdb cgroup;
      * provide a GUC to control the cgroup cpu priority for gpdb processes
        when resgroup is enabled;
      * set a lower cpu priority by default;
      0b85b9d0
    • A
      Fix dblink panic when connecting as a non-superuser · 9b758447
      Adam Lee 提交于
      1, QD to QD's connection user is environment variable PGUSER, we need to
      set it to session user in dblink.
      
      2, QD to QD's unix domain socket connection doesn't require any
      authentication, request non-superuser to provide host to use TCP/UDP
      connections.
      Signed-off-by: NAdam Lee <ali@pivotal.io>
      Signed-off-by: NXiaoran Wang <xiwang@pivotal.io>
      9b758447
    • A
      Update mock makefiles to work with libpq objfiles · 0ed93335
      Adam Lee 提交于
      mock.mk before this has trouble to filter out mocked objects from
      src/backend/objfiles.txt, because the filenames in it have redundant
      "src/backend/../../" and suffix "_for_backend".
      
      This commit removes them before mocking to make it work.
      0ed93335
    • A
      Retire gp_libpq_fe part 2, changing including path · 974c414e
      Adam Lee 提交于
      Signed-off-by: NAdam Lee <ali@pivotal.io>
      974c414e
    • A
      Retire gp_libpq_fe part 1, libpq itself · 510a20b6
      Adam Lee 提交于
          commit b0328d5631088cca5f80acc8dd85b859f062ebb0
          Author: mcdevc <a@b>
          Date:   Fri Mar 6 16:28:45 2009 -0800
      
              Separate our internal libpq front end from the client libpq library
              upgrade libpq to the latest to pick up bug fixes and support for more
              client authentication types (GSSAPI, KRB5, etc)
              Upgrade all files dependent on libpq to handle new version.
      
      Above is the initial commit of gp_libpq_fe, seems no good reasons still
      having it.
      
      Key things this PR do:
      
      1, remove the gp_libpq_fe directory.
      2, build libpq source codes into two versions, for frontend and backend,
      check the macro FRONTEND.
      3, libpq for backend still bypasses local authentication, SSL and some
      environment variables, and these are the whole differences.
      Signed-off-by: NAdam Lee <ali@pivotal.io>
      510a20b6
    • P
      resgroup: enable resource group test in ICW. · 15fdc144
      Pengzhou Tang 提交于
      15fdc144
    • H
      Fix gpcheckcat error reporting of missing entries entries. · 8199a402
      Heikki Linnakangas 提交于
      In commit 226e8867, I changed the shape of the result set passed to the
      processMissingDuplicateEntryResult() function, removing the "exists" column.
      But I failed to update the line that extracts the primary key columns from
      the result set for that change. Fix.
      
      This should fix the failures in the gpcheckcat behave tests.
      8199a402
  6. 29 10月, 2017 3 次提交
    • H
      Fix and move test case for MPP-22599. · 34c4d9f7
      Heikki Linnakangas 提交于
      The test had become useless somewhere along the years. The bug was that
      if ORCA fell back to the planner, then the check that you cannot update
      a distribution key column with the planner would not be made, and you
      could end up with incorrectly distributed rows. The test used a multi-level
      partitioned table as the target, because when the test was originally
      written, multi-level partitioning was not supported by ORCA. But at some
      point, support for that was added, so the test no longer tested the
      original bug it was written for.
      
      Rewrite the test using a different feature that ORCA falls back on, add
      comments to make it more clear what this is supposed to test so that it
      won't be broken so easily again. And finally, move the test out of TINC,
      into the main regression suite, which is what I was doing when I realized
      that it was broken altogether.
      34c4d9f7
    • T
      Port numbers used by GPDB should be below kernel's ephemeral port range · 4b439bc9
      Taylor Vesely 提交于
      The ephemeral port range is given by net.ipv4.ip_local_port_range kernel
      parameter. It is set to 32768 --> 60999. If GPDB uses port numbers in this
      range, FTS probe request may not get a response, resulting in FTS incorrectly
      marking a primary down.
      
      We change the example configuration files to lower the port number to proper
      range.
      Signed-off-by: NAsim R P <apraveen@pivotal.io>
      4b439bc9
    • H
      Fix tests, for changes in snapshot behavior of serializable transactions. · 3d7fde3f
      Heikki Linnakangas 提交于
      Since commit 4a95afc1, a serializable transaction no longer establishes
      the snapshot at the SET TRANSACTION ISOLATION LEVEL SERIALIZABLE command.
      Now it establishes a snapshot at the first "real" query that requires a
      snapshot. The new behavior matches PostgreSQL, and is a good thing. So
      silence the test failures, by adding dummy queries to establish snapshots
      at the same spots as before.
      
      I can't make all of these tests pass on my laptop, even before that commit,
      so I'm not sure if this fixes them all correctly. But I think so, and a few
      of these I could even verify locally.
      3d7fde3f