Thread: pgsql: In pg_upgrade, add various logging improvements:

pgsql: In pg_upgrade, add various logging improvements:

From
Bruce Momjian
Date:
In pg_upgrade, add various logging improvements:

    add ability to control permissions of created files
    have psql echo its queries for easier debugging
    output four separate log files, and delete them on success
    add -r/--retain option to keep log files after success
    make logs file append-only
    remove -g/-G/-l logging options
    sugggest tailing appropriate log file on failure
    enhance -v/--verbose behavior

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/717f6d60859cc2d1d7dfd57520531a50bd78df9c

Modified Files
--------------
contrib/pg_upgrade/check.c           |   26 ++++----
contrib/pg_upgrade/controldata.c     |    4 +-
contrib/pg_upgrade/dump.c            |   20 ++++---
contrib/pg_upgrade/exec.c            |   23 +++++--
contrib/pg_upgrade/file.c            |   16 +++++
contrib/pg_upgrade/function.c        |    5 +-
contrib/pg_upgrade/info.c            |   20 +++---
contrib/pg_upgrade/option.c          |  100 ++++++++++-------------------
contrib/pg_upgrade/pg_upgrade.c      |  116 +++++++++++++++++++++------------
contrib/pg_upgrade/pg_upgrade.h      |   60 +++++++++++-------
contrib/pg_upgrade/relfilenode.c     |    4 +-
contrib/pg_upgrade/server.c          |   19 ++++--
contrib/pg_upgrade/util.c            |   16 ++---
contrib/pg_upgrade/version.c         |    5 +-
contrib/pg_upgrade/version_old_8_3.c |   34 ++++------
doc/src/sgml/pgupgrade.sgml          |   27 +++------
16 files changed, 259 insertions(+), 236 deletions(-)