Re: process exited with status 11 after XLogFlush: request is not satisfied

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: process exited with status 11 after XLogFlush: request is not satisfied
Дата
Msg-id 4174.1012502673@sss.pgh.pa.us
обсуждение исходный текст
Ответ на process exited with status 11 after XLogFlush: request is not satisfied  ("Bjoern Metzdorf" <bm@turtle-entertainment.de>)
Ответы Returning a CURSOR from plpgsql functions  (Darren Ferguson <darren@crystalballinc.com>)
Список pgsql-general
"Bjoern Metzdorf" <bm@turtle-entertainment.de> writes:
> If we now do a

> "select ctid,oid,* from table order by id limit 1,81274;" (which works
> flawlessly)

> we see, that this tuple is in ctid (5864,12).

One thing to watch out for is that I believe "select ... limit" fetches
one more tuple than it actually needs to return.  Normally this doesn't
matter but with a crashing issue it might.  I would recommend using

    select ctid,* from table where ctid = '(page,item)'

to make absolutely sure that you know which ctid is the bad tuple (if no
crash, you got the wrong one), and then delete by ctid to get rid of it.

It's entirely possible that several tuples on the same page are all
corrupted, which is the main reason why ctid is so helpful in this
situation --- you can see directly whether the tuples are in the same
page or not.  But I wouldn't delete stuff at random.  If you can select
it without a crash then it's OK.

I would only consider using dd if it looked like the page header is
broken (symptom: page appears to contain many more tuples than could
possibly fit, and all but the first few are obviously completely
garbage).

            regards, tom lane

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

Предыдущее
От: jboes@nexcerpt.com (Jeff Boes)
Дата:
Сообщение: Altering metadata to add inheritance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Altering metadata to add inheritance