How to remove index from memory ?

Поиск
Список
Период
Сортировка
От A J
Тема How to remove index from memory ?
Дата
Msg-id 1313156372.66476.YahooMailNeo@web120002.mail.ne1.yahoo.com
обсуждение исходный текст
Ответы Re: How to remove index from memory ?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-admin
Hello
I am running a test to find the impact of corrupt indexes on queries. I corrupted the index file but observed that the queries continued to perform without issues. It was only on restart of the database that postgres realized that the indexes are corrupt and my queries started failing (with error like: ERROR:  invalid page header in block 0 of relation base/16384/16399)

My questions are:
1. How do I remove the indexes from memory ? I wish to stimulate the condition when indexes are no longer in database but the server has not restarted and see the effects of corrupt indexes.
2. Is there a more proactive and realtime way to detect corruption of indexes ?

Thanks for any inputs.

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: replication from Oracle to PostgreSQL?
Следующее
От: CS DBA
Дата:
Сообщение: Re: replication from Oracle to PostgreSQL?