• Bruce Momjian's avatar
    Improve pg_upgrade's status display · 6dd95845
    Bruce Momjian authored
    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.
    6dd95845
pg_upgrade.c 13.8 KB