Re: Problems starting up postgres

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problems starting up postgres
Дата
Msg-id 1703.999784160@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Problems starting up postgres  (Denis Perchine <dyp@perchine.com>)
Ответы Re: Problems starting up postgres
Список pgsql-hackers
Denis Perchine <dyp@perchine.com> writes:
> Sep  6 02:09:30 mx postgres[13468]: [9] FATAL 2:  XLogFlush: request(1494286336, 786458) is not satisfied -- 
> flushed to (23, 2432317444) 

Yeek.  Looks like you have a page somewhere in the database with a bogus
LSN value (xlog pointer) ... and, most likely, other corruption as well.
>> BTW, how did you get into this state --- did you have a system crash? 
> Yes. I was forced to fsck. 

Okay.  As a temporary recovery measure, I'd suggest reducing that
particular elog from STOP to DEBUG level.  That will let you start up
and run the database.  You'll need to look through your tables and try
to figure out which one(s) have lost data.  It might be interesting to
try to figure out just which page has the bad LSN value --- that might
give us a clue why the WAL did not provide protection against this
failure.  Unfortunately XLogFlush doesn't have any idea who its caller
is, so the only way I can think of to check that directly is to set a
breakpoint at this error report and look at the call stack.

Vadim, what do you think of reducing this elog from STOP to a notice
on a permanent basis?  ISTM we saw cases during 7.1 beta where this
STOP prevented people from recovering, so I'm thinking it does more
harm than good to overall system reliability.
        regards, tom lane


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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: Is there a problem running vacuum in the middle of a transaction?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Log rotation?