1. 05 10月, 2018 7 次提交
  2. 19 9月, 2018 3 次提交
  3. 18 9月, 2018 1 次提交
  4. 17 9月, 2018 5 次提交
    • D
      Fix vacuum check in pg_upgrade testing · 4a882635
      Daniel Gustafsson 提交于
      Make sure we use the psql client from the new bindir (the on in PATH
      might well be an upstream postgres psql etc), and use a port different
      from the standard postgres port since it's likely to be in use.
      
      Also fix integer value comparison which caused a warning in my Bash,
      while it might work in other versions of Bash.
      
      (cherry picked from commit 743aa9ba)
      4a882635
    • J
      GetOldestXmin: fix VACUUM during upgrade · d301479a
      Jacob Champion 提交于
      There are no distributed transactions during binary upgrade, so we can
      ignore them. This is a backport from commit fdab8817 in master.
      d301479a
    • J
      pg_upgrade: add a test to catch VACUUM FREEZE failures · ba9a0c7f
      Jacob Champion 提交于
      VACUUM FREEZE must function correctly during binary upgrade so that the
      new cluster's catalogs don't contain bogus transaction IDs. Do a simple
      check on the QD in our test script, by querying the age of all the rows
      in gp_segment_configuration.
      
      (cherry picked from commit 5bf6d8b419a0363ca47c80325b06415905c608d5)
      ba9a0c7f
    • M
      doc - update link to PL/Java git repo to 1.5.0 · 98a83ca8
      mkiyama 提交于
      98a83ca8
    • P
      Fix imtermittent failure dispatch test cases · f93f6f42
      Pengzhou Tang 提交于
      In dispatch test cases, we need a way to put a segment to in-recovery
      status to test gang recreating logic of dispatcher.
      
      We used to trigger a panic fault on a segment and suspend the quickdie()
      to simulate in-recovery status. To avoid segment staying in recovery mode
      for a long time, we used a "sleep" fault instead of 'suspend' in quickdie(),
      so segment can accept new connections after 5 seconds. 5 seconds works
      fine most of time, but still not stable enough, so we decide to use more
      straight-forward mean to simulate in-recovery mode which reports a
      POSTMASTER_IN_RECOVERY_MSG directly in ProcessStartupPacket(). To not
      affecting other backends, we create a new database so fault injectors
      only affect dispatch test cases.
      f93f6f42
  5. 15 9月, 2018 4 次提交
  6. 14 9月, 2018 5 次提交
    • M
      docs - gpinitsystem - fix typo · ea94bd35
      mkiyama 提交于
      ea94bd35
    • M
      8413a97d
    • B
      Bump ORCA Version 2.74 · 75b1a512
      Bhuvnesh Chaudhary 提交于
      Updating the expected test file to reflect the output changes.
      75b1a512
    • J
      Use StringInfo when logging distributed snapshot info · 4f92dd79
      Jesse Zhang 提交于
      Under GCC 8, I get a warning (and rumor has it that you get this under
      GCC 7 with `-Wrestrict`):
      
      ```
      sharedsnapshot.c: In function ‘LogDistributedSnapshotInfo’:
      sharedsnapshot.c:924:11: warning: passing argument 1 to
      restrict-qualified parameter aliases with argument 4 [-Wrestrict]
        snprintf(message, MESSAGE_LEN, "%s, In progress array: {",
                 ^~~~~~~
           message);
           ~~~~~~~
      sharedsnapshot.c:930:13: warning: passing argument 1 to
      restrict-qualified parameter aliases with argument 4 [-Wrestrict]
          snprintf(message, MESSAGE_LEN, "%s, (dx%d)",
                   ^~~~~~~
             message, ds->inProgressXidArray[no]);
             ~~~~~~~
      sharedsnapshot.c:933:13: warning: passing argument 1 to
      restrict-qualified parameter aliases with argument 4 [-Wrestrict]
          snprintf(message, MESSAGE_LEN, "%s (dx%d)",
                   ^~~~~~~
             message, ds->inProgressXidArray[no]);
             ~~~~~~~
      ```
      
      Upon further inspection, the compiler is right: according to C99, it is
      undefined behavior to pass aliased arguments to the "str" argument of
      `snprint` (`restrict`-qualified function parameters, to be pedantic).
      
      To make this safer and more readable, this patch switches to using the
      StringInfo API. This change might come with a teeny tiny bit of
      performance because of:
      
      1. stack vs heap allocation
      2. larger initial allocation size of StringInfo
      
      But this area of the code is *never* a hot spot, and `appendStringInfo`
      and friends are arguably faster than our old call patterns of
      `snprintf`, so I won't sweat on that.
      
      (cherry picked from commit 89553ad2)
      (Back port of greenplum-db/gpdb#5753)
      4f92dd79
    • D
      Docs: Adding condition to homenav link · be7f190d
      David Yozie 提交于
      be7f190d
  7. 13 9月, 2018 9 次提交
    • N
      resgroup: fix memory dir checking on 5X in gpconfig. · 6f414d74
      Ning Yu 提交于
      On 5X branch the dir 'memory/gpdb' is optional but 'memory' is mandatory
      to provide 'memory.limit_in_bytes', in such a case we must always set a
      proper 'memory' component dir.
      6f414d74
    • N
      resgroup: detect gpdb cgroup comp dirs automatically. · 9f4c6926
      Ning Yu 提交于
      Take cpu for example, by default we expect gpdb dir to locate at
      cgroup/cpu/gpdb.  But we'll also check for the cgroup dirs of init
      process (pid 1), e.g. cgroup/cpu/custom, then we'll look for gpdb dir at
      cgroup/cpu/custom/gpdb, if it's found and has good permissions, it can
      be used instead of the default one.
      
      If any of the gpdb cgroup component dir can not be found under init
      process' cgroup dirs or has bad permissions we'll fallback all the gpdb
      cgroup component dirs to the default ones.
      
      NOTE: This auto detection will look for memory & cpuset gpdb dirs even
      on 5X.
      
      (cherry picked from commit f3dc101a)
      9f4c6926
    • M
      docs - support fqdn as client address in pg_hba.conf (#5705) · edccf62a
      Mel Kiyama 提交于
      * docs - support fqdn as client address in pg_hba.conf
      
      --update pg_hba.conf information
      --add gpintisystem --hba_hostnames option and HBA_HOSTNAMES parameter
      
      This will be backported 5X_STABLE
      
      * docs - support fqdn as client address in pg_hba.conf - updates/corrections
      
      --removed  --hba_hostnames option.
      --clarified HBA_HOSTNAMES parameter value.
      
      * docs - support fqdn in pg_hba.conf - fix typo
      
      * docs - support fqdn in pg_hba.conf - update based on review comment.
      
      * docs - fqdn in pg_hba.conf correction - fqdn always available, HBA_HOSTNAME for gpdb utilities
      
      * docs - fqdn in pg_hba.conf - fix typo.
      edccf62a
    • T
      Use -Wno-format-truncation and -Wno-stringop-truncation, if available. · b6a7a138
      Tom Lane 提交于
      gcc 8 has started emitting some warnings that are largely useless for
      our purposes, particularly since they complain about code following
      the project-standard coding convention that path names are assumed
      to be shorter than MAXPGPATH.  Even if we make the effort to remove
      that assumption in some future release, the changes wouldn't get
      back-patched.  Hence, just suppress these warnings, on compilers that
      have these switches.
      
      Backpatch to all supported branches.
      
      Discussion: https://postgr.es/m/1524563856.26306.9.camel@gunduz.org
      (cherry picked from commit e7165852)
      (cherry picked from commit 18f9c0b9)
      b6a7a138
    • T
      Suppress clang's unhelpful gripes about -pthread switch being unused. · b665c964
      Tom Lane 提交于
      Considering the number of cases in which "unused" command line arguments
      are silently ignored by compilers, it's fairly astonishing that anybody
      thought this warning was useful; it's certainly nothing but an annoyance
      when building Postgres.  One such case is that neither gcc nor clang
      complain about unrecognized -Wno-foo switches, making it more difficult
      to figure out whether the switch does anything than one could wish.
      
      Back-patch to 9.3, which is as far back as the patch applies conveniently
      (we'd have to back-patch PGAC_PROG_CC_VAR_OPT to go further, and it doesn't
      seem worth that).
      
      (cherry picked from commit 73b416b2)
      (cherry picked from commit 28d6c289)
      b665c964
    • A
      Removes duplicate setting of portal->status. · a97d50df
      Adam Berlin 提交于
      a97d50df
    • A
      Moves the management of the hasResQueueLock into resscheduler. · 624298a9
      Adam Berlin 提交于
      The only external manipulation of this field occurs in PortalStart,
      which we would also like to get rid of, but we're not sure how
      at the moment.
      Co-authored-by: NAsim R P <apraveen@pivotal.io>
      624298a9
    • A
      Creates a function to check if a portal is locked for a resource queue. · 44c52db2
      Adam Berlin 提交于
      We have been using Portal->releaseResLock to decide if a resource queue
      is locked for a given portal. Instead, we give the responsibility to
      the resource queue system to decide if the portal is locked.
      Co-authored-by: NAsim R P <apraveen@pivotal.io>
      44c52db2
    • A
      Avoid out of shared memory adding portal increments. · c68cd8da
      Adam Berlin 提交于
      Avoid acquiring a resource queue lock for the same portal more than
      once while calling ProcessQuery for the portal.
      
      An example where this situation occurs can be found in the provided test.
      Co-authored-by: NAsim R P <apraveen@pivotal.io>
      c68cd8da
  8. 12 9月, 2018 4 次提交
  9. 11 9月, 2018 2 次提交