Re: Corrupted index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Corrupted index
Дата
Msg-id 6961.1119549920@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Corrupted index  (Akash Garg <akash.garg@gmail.com>)
Список pgsql-general
Akash Garg <akash.garg@gmail.com> writes:
> I used oid2name to find the index files:
> 168807081
> 168807081.1
> 168807081.2
> 168807081.3
> 168807081.4

> Now how do I run the od command to find the block in question?

Rather than doing the math by hand, let dd do it:

dd bs=8k skip=41661 count=1 </path/to/indexfile | od -x

This assumes your PG was built with the default 8k block size, but
if it wasn't you'd presumably know that ...

            regards, tom lane

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

Предыдущее
От: Jeff Amiel
Дата:
Сообщение: Re: How to compare the schemas ?
Следующее
От: Douglas McNaught
Дата:
Сообщение: Re: multi-languages in a table