Improve pg_upgrade's status display
authorBruce Momjian <bruce@momjian.us>
Fri, 7 Dec 2012 17:26:13 +0000 (12:26 -0500)
committerBruce Momjian <bruce@momjian.us>
Fri, 7 Dec 2012 17:26:13 +0000 (12:26 -0500)
commit6dd9584507199a6222ff2d6a40028bba69c9175e
tree1f11890ce362f76b866c429fca6ea87a763da707
parentef754fb51b8a40c3b3dc0f3cc42f62eff77649db
Improve pg_upgrade's status display

Pg_upgrade displays file names during copy and database names during
dump/restore.  Andrew Dunstan identified three bugs:

*  long file names were being truncated to 60 _leading_ characters, which
   often do not change for long file names

*  file names were truncated to 60 characters in log files

*  carriage returns were being output to log files

This commit fixes these --- it prints 60 _trailing_ characters to the
status display, and full path names without carriage returns to log
files.  It also suppresses status output to the log file unless verbose
mode is used.
contrib/pg_upgrade/dump.c
contrib/pg_upgrade/pg_upgrade.c
contrib/pg_upgrade/pg_upgrade.h
contrib/pg_upgrade/relfilenode.c
contrib/pg_upgrade/util.c