Re: Problem with pg_upgrade

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with pg_upgrade
Дата
Msg-id 1316.1341527311@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problem with pg_upgrade  (Payal Singh <payals1@umbc.edu>)
Ответы Re: Problem with pg_upgrade  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
Payal Singh <payals1@umbc.edu> writes:
> On Thu, Jul 5, 2012 at 12:15 PM, Craig Ringer <ringerc@ringerc.id.au> wrote:
>> If you start 9.1 on a copy of the backup then cleanly stop it again, does
>> pg_upgrade then run?

> Thank you. That worked.

ISTM that pg_upgrade should check that the old cluster was shut down
cleanly, ie pg_control has state = "shut down".  AFAICT from some
testing, it currently only checks that there is no postmaster.pid file,
which is easily bypassed by users who might not realize that it's not
safe to run pg_upgrade against a filesystem backup.

BTW, I also noticed while trying to test this that pg_upgrade is
currently completely broken for the case of taking PGDATAOLD or
PGDATANEW from the environment rather than switches.  This is because
the existing coding in option.c fails to set up the "pgconfig" fields
in such cases.

            regards, tom lane

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

Предыдущее
От: Payal Singh
Дата:
Сообщение: Re: Problem with pg_upgrade
Следующее
От: balaji03@gmail.com
Дата:
Сообщение: BUG #6720: Its often disconnecting