Re: production server down

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: production server down
Дата
Msg-id 2608.1103130354@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: production server down  (Joe Conway <mail@joeconway.com>)
Ответы Re: production server down  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> Before running pg_resetxlog, a couple of questions:

> 1. Since it appears that pg_control is suspect, should I force it to be
>     rebuilt, and if so, how?

pg_resetxlog will rebuild it in any case.  However it will re-use the
existing contents as much as it can (if you don't use any of the command
line options to override values).  Given Alvaro's observation that the
existing file looks suspiciously close to a freshly-initdb'd one, I
don't think you want to trust the existing contents.

> 2. At the end of GuessControlValues is this comment:
>    /*
>     * XXX eventually, should try to grovel through old XLOG to develop
>     * more accurate values for startupid, nextXID, and nextOID.
>     */
>     What would be involved in doing this, and do you think it would be
>     worth it?

What if anything have you got in $PGDATA/pg_xlog?
        regards, tom lane


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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: bgwriter changes
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: [INTERFACES] postgresql-7.4.5