Re: Vacuum Error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Vacuum Error
Дата
Msg-id 5774.1073948272@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Vacuum Error  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-general
"scott.marlowe" <scott.marlowe@ihs.com> writes:
>> Dave Smith <dave.smith@candata.com> writes:
>>> I am running 7.2 and when doing a vacuum I am getting the following
>>> error....
>>
>>> ERROR:  Cannot insert a duplicate key into unique index
>>> pg_statistic_relid_att_index

> Didn't this happen with parallel vacuum / analyzes running in the olden
> days?

I don't think it could happen in 7.2, because that release took
ExclusiveLock on pg_statistic while inserting rows.

Later releases use a weaker lock (to permit concurrent ANALYZE of
different tables) and are subject to "concurrent update" errors if
you try to run two ANALYZEs of the same table at the same time.
But it doesn't sound like Dave is doing that, anyway.

            regards, tom lane

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

Предыдущее
От: "Andrew Bartley"
Дата:
Сообщение: Re: Vacuum Error
Следующее
От: Alex Satrapa
Дата:
Сообщение: Protection From Inference (was Re: Drawbacks of using BYTEA for PK?)