1. 26 7月, 2018 2 次提交
    • D
      Reapply the Greenplum specific code on top of pg_upgrade · 9806f2b2
      Daniel Gustafsson 提交于
      The previous commit backported the PostgreSQL 9.3 pg_upgrade code
      base and overwrote the hacks to allow for upgrading a Greenplum
      cluster. This commit brings back the patchsets that were lost, and
      adapts them to the new pg_upgrade code as well as mildly refactors
      them to take advantage of new opportunities.
      9806f2b2
    • D
      Import pg_upgrade 9.3.22 sources · 3dabd32a
      Daniel Gustafsson 提交于
      This overwrites the Greenplum pg_upgrade version with the upstream
      9.3.22 sources. No attempt is made to make this compile or at all
      be even remotely useable. Follow-up commits will re-introduce all
      functionality which was lost.
      3dabd32a
  2. 03 1月, 2018 1 次提交
    • D
      Support adding/removing checksums in pg_upgrade · 71916050
      Daniel Gustafsson 提交于
      When upgrading the cluster, allow the addition or removal of data
      checksums on the data pages as they are copied across from the
      old cluster. This allows for adding checksums without requiring a
      full dump/restore cycle.
      
      The test_gpdb.sh script is extended to support adding/removal of
      checksums. In the process, also extend to remove gpdemo config
      files generated when setting up the new cluster, and put them in
      gitignore as well to keep git status happy during testing.
      
      This also fixes a previously incorrect check for checksum version
      and aligns variable names better with upstream.
      71916050
  3. 29 6月, 2017 1 次提交
    • H
      Change the way OIDs are preserved during pg_upgrade. · f51f2f57
      Heikki Linnakangas 提交于
      Instead of meticulously recording the OIDs of each object in the pg_dump
      output, dump and load all OIDs as a separate steps in pg_upgrade.
      
      We now only preserve OIDs of types, relations and schemas from the old
      cluster. Other objects are assigned new OIDs as part of the restore.
      To ensure the OIDs are consistent between the QD and QEs, we dump the
      (new) OIDs of all objects to a file, after upgrading the QD node, and use
      those OIDs when restoring the QE nodes. We were already using a similar
      mechanism for new array types, but we now do that for all objects.
      f51f2f57
  4. 20 6月, 2017 1 次提交
  5. 26 3月, 2017 1 次提交
    • D
      Add a basic file based progress report to pg_upgrade · 5ca596e5
      Daniel Gustafsson 提交于
      In order for higher-level wrappers around pg_upgrade to know what
      pg_upgrade does, this adds a trivial file based queue which reports
      information on the operations performed. When started with -X, or
      --progress, pg_upgrade will write progress as a set of operations
      to a logfile. At intervals of either X number of operations, or Y
      number of seconds, the file will be released and a new created such
      that the released file can be consumed by a wrapper program. The
      files will be named <sequence>.inprogress until released when they
      are renamed to <sequence>.done. The sequence is gapless. Once the
      file is renamed to <sequence>.done, pg_upgrade will never touch it
      again and it can at that point be removed.
      
      The format of the progress file is a simple semicolon delimited
      line-based protocol:
      
        <timestamp>;<cluster>;<operation>;<message>;
      
      timestamp is the number of microseconds since epoch; cluster defines
      either "new", "old" or "none"; operation defines what actually did
      happen and message contains the user defined message per report. The
      timestamp is monotonically increasing for each operation such that
      reading files in order is less important, operations can still be
      individually sorted.
      
      This commit includes a small set of progress report operations, while
      not likely to be the final set it's enough to show how more can be
      added.
      
      Discussion:
        https://groups.google.com/a/greenplum.org/forum/#!topic/gpdb-dev/CVgK36oU5Oo
      5ca596e5
  6. 20 12月, 2016 1 次提交
    • H
      Backport pg_upgrade from PostgreSQL 9.0.23. · d2cb8c4b
      Heikki Linnakangas 提交于
      This commit just brings in the upstream code for pg_upgrade and
      pg_upgrade_support as is, with no changes. Subsequent work will change
      it to work for Greenplum. The goal is to make it usable for upgrading
      from Greenplum 4.3 to 5.0.
      
      pg_upgrade_support is a crucial part of pg_upgrade, but lives in a
      separate directory to make the build easier.
      d2cb8c4b
  7. 10 6月, 2011 1 次提交
  8. 16 5月, 2011 1 次提交
  9. 11 5月, 2011 2 次提交
  10. 07 5月, 2011 1 次提交
  11. 06 5月, 2011 1 次提交
  12. 07 4月, 2011 1 次提交
  13. 02 1月, 2011 1 次提交
  14. 30 12月, 2010 1 次提交
    • T
      Improve pg_upgrade's checks for required executables. · 88c80345
      Tom Lane 提交于
      Don't insist on pg_dumpall and psql being present in the old cluster,
      since they are not needed.  Do insist on pg_resetxlog being present
      (in both old and new), since we need it.  Also check for pg_config,
      but only in the new cluster.  Remove the useless attempt to call
      pg_config in the old cluster; we don't need to know the old value of
      --pkglibdir.  (In the case of a stripped-down migration installation
      there might be nothing there to look at anyway, so any future change
      that might reintroduce that need would have to be considered carefully.)
      
      Per my attempts to build a minimal previous-version installation to support
      pg_upgrade.
      88c80345
  15. 15 12月, 2010 1 次提交
  16. 20 10月, 2010 3 次提交
  17. 21 9月, 2010 1 次提交
  18. 14 7月, 2010 1 次提交
  19. 07 7月, 2010 1 次提交
  20. 04 7月, 2010 2 次提交
  21. 03 7月, 2010 1 次提交
  22. 23 6月, 2010 1 次提交
  23. 16 6月, 2010 1 次提交
  24. 13 6月, 2010 1 次提交
  25. 25 5月, 2010 3 次提交
  26. 14 5月, 2010 1 次提交
  27. 12 5月, 2010 1 次提交