Re: pg_upgrade --logfile option documentation

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_upgrade --logfile option documentation
Дата
Msg-id 20120302020610.GB11306@momjian.us
обсуждение исходный текст
Ответ на Re: pg_upgrade --logfile option documentation  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: pg_upgrade --logfile option documentation
Список pgsql-hackers
On Thu, Mar 01, 2012 at 10:17:04PM +0200, Peter Eisentraut wrote:
> On ons, 2012-02-29 at 22:47 -0500, Bruce Momjian wrote:
> > Hey, that's a good idea.  I would always write the pg_dump output to a
> > log file.  If the dump succeeds, I remove the file, if not, I tell
> > users to read the log file for details about the failure --- good
> > idea.
> 
> But we also need the server log output somewhere.  So I think this temp
> file would need to cover everything that -l covers.

OK, combining your and Robert's ideas, how about I have pg_upgrade write
the server log to a file, and the pg_dump output to a file (with its
stderr), and if pg_upgrade fails, I report the failure and mention those
files.  If pg_upgrade succeeds, I remove the files?  pg_upgrade already
creates temporary files that it removes on completion.

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_upgrade --logfile option documentation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 16-bit page checksums for 9.2