Skip site navigation (1) Skip section navigation (2)

pg_upgrade --logfile option documentation

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: pg_upgrade --logfile option documentation
Date: 2012-02-19 11:13:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
The documentation of the pg_upgrade -l/--logfile option never made much
sense to me:

  -l, --logfile=FILENAME        log session activity to file

I don't know what "session" means for pg_upgrade, so I never used it.

What it actually does is log the output of all the programs that
pg_upgrade calls internally, such as pg_ctl, psql, vacuumdb,
pg_resetxlog, to the specified file, which is quite useful for analyzing
errors such as

unable to connect to new postmaster started with the command: "/usr/lib/postgresql/9.1/bin/pg_ctl" -w -l "/dev/null" -D "/var/lib/postgresql/9.1/main" -o "-p 5433 -b" start >> "/dev/null" 2>&1

where -l would have put something in the place of /dev/null.

So what might be a better wording for this option?  Something like "log
output of internally called programs to file"?


pgsql-hackers by date

Next:From: Robert HaasDate: 2012-02-19 13:02:15
Subject: Re: pg_restore ignores PGDATABASE
Previous:From: Simon RiggsDate: 2012-02-19 10:37:04
Subject: Re: Initial 9.2 pgbench write results

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group