OSDN Git Service

Improve pg_upgrade's checks for required executables.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Dec 2010 18:43:58 +0000 (13:43 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Dec 2010 18:43:58 +0000 (13:43 -0500)
commitee718c23105d7ede1a55e6ac9832b8a54a496ed6
treec5cdfaab4f42d1657127135f30b794fb297185a4
parent0fdf735d977de99551dd4d7910bdc4d75a08608d
Improve pg_upgrade's checks for required executables.

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.
contrib/pg_upgrade/exec.c
contrib/pg_upgrade/option.c