Re: database corruption help

Поиск
Список
Период
Сортировка
От John Lister
Тема Re: database corruption help
Дата
Msg-id AB15E89CD7FB4EBD9D76CC5F8D8B3D4E@squarepi.com
обсуждение исходный текст
Ответ на database corruption help  ("John Lister" <john.lister-ps@kickstone.com>)
Список pgsql-admin
Cheers tom, that did it - i've removed the duplicates and seeing what else
is broken.

.


> "John Lister" <john.lister-ps@kickstone.com> writes:
>> ERROR:  could not create unique index "pg_class_oid_index"
>
>> a quick inspection of the pg_class table doesn't show any duplicates, is
>> there anyway i can find out which row(s) are duplicated and remove them
>> without a full db restore?
>
>> also doing something like this doesn't return anything which worked for
>> my other tables
>
>> select oid from pg_class where oid in(select oid from pg_class group by
>> oid having count(oid)>1 )
>
> Try doing it with enable_indexscan = off and enable_bitmapscan = off.
> The system might be relying on the old, bogus index to do the group by
> oid.
>
> regards, tom lane
>


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

Предыдущее
От: Stefano Nichele
Дата:
Сообщение: strange autovacuum behaviour
Следующее
От: Tom Lane
Дата:
Сообщение: Re: database corruption help