Back-patch recent pg_upgrade fixes into 9.2.
This syncs contrib/pg_upgrade in the 9.2 branch with HEAD, except for the
HEAD changes related to converting XLogRecPtr to 64-bit int. It includes
back-patching these commits:
666d494d19dbd5dc7a177709a2f7069913f8ab89
pg_upgrade: abstract out copying of files from old cluster to new
7afa8bed65ea925208f128048f3a528a64e1319a
pg_upgrade: Run the created scripts in the test suite
ab577e63faf792593ca728625a8ef0b1dfaf7500
Remove analyze_new_cluster.sh on make clean, too
34c02044ed7e7defde5a853b26dcd806c872d974
Fix thinko in comment
088c065ce8e405fafbfa966937184ece9defcf20
pg_upgrade: Fix exec_prog API to be less flaky
f763b77193b04eba03a1f4ce46df34dc0348419e
Fix pg_upgrade to cope with non-default unix_socket_directory scenarios.
Branch
------
REL9_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/5c7e91e9c3d6716641ba52286c6d3daa6b1c13c0
Modified Files
--------------
contrib/pg_upgrade/Makefile | 2 +-
contrib/pg_upgrade/check.c | 11 ++---
contrib/pg_upgrade/dump.c | 9 ++--
contrib/pg_upgrade/exec.c | 80 +++++++++++++++-------------
contrib/pg_upgrade/file.c | 4 +-
contrib/pg_upgrade/option.c | 63 ++++++++++++++++++++++
contrib/pg_upgrade/pg_upgrade.c | 112 +++++++++++++++++++--------------------
contrib/pg_upgrade/pg_upgrade.h | 13 +++--
contrib/pg_upgrade/server.c | 97 +++++++++++++++++++++++++--------
contrib/pg_upgrade/test.sh | 3 +
doc/src/sgml/pgupgrade.sgml | 14 ++++-
11 files changed, 268 insertions(+), 140 deletions(-)