unique index corruption

Поиск
Список
Период
Сортировка
От pg noob
Тема unique index corruption
Дата
Msg-id CAPNY-2WHrZzL6Y+a+Y3whA+4qZCObPOxiLN5KoQRiHT1-i9oxQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: unique index corruption  (Merlin Moncure <mmoncure@gmail.com>)
Re: unique index corruption  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-general

Hi all,

In PostgreSQL 8.4...

I am wondering if autovacuum will periodically rebuild indexes?

If not, how advisable is it to reindex periodically?

We recently had a case of unique index corruption which ended up allowing duplicate
primary key IDs to get inserted and caused widespread data model integrity havoc.

The system ran for several days before it was noticed.

After the problem was discovered we found that a reindex would fail because there were
duplicate ID values.

Our thought is that if we had a scheduled cron job that would periodically do a reindex this
corruption might have been caught sooner by detecting the reindex failure.

If a reindex is something that should be done frequently as part of regular maintenance
why isn't there a mode of autovacuum that does this automatically?  Or maybe there is and
I just don't know about it..?

Thank you.


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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Why are stored procedures looked on so negatively?
Следующее
От: devonline
Дата:
Сообщение: Tablespace on Postgrsql