Re: Preventing index scans for non-recoverable index AMs

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Preventing index scans for non-recoverable index AMs
Дата
Msg-id 494A42C3.3020408@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Preventing index scans for non-recoverable index AMs  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Ответы Re: Preventing index scans for non-recoverable index AMs  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Список pgsql-hackers
Pavan Deolasee wrote:
> Just curious, how do we handle the case of corrupted hash index today?

We don't.

> If we can detect that the index is corrupt because of bad page
> headers etc, then its still OK; we can throw an error. But what if the
> hash index is used after recovery and it returns wrong tuple(s) ?

You get to keep both pieces..

In short, don't use hash index, unless you're prepared to run REINDEX 
manually after every crash.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: "Pavan Deolasee"
Дата:
Сообщение: Re: Preventing index scans for non-recoverable index AMs
Следующее
От: "Pavan Deolasee"
Дата:
Сообщение: Re: Preventing index scans for non-recoverable index AMs