Re: Error on CLUSTER command

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Error on CLUSTER command
Дата
Msg-id 2025.1202488530@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Error on CLUSTER command  ("Mark Steben" <msteben@autorevenue.com>)
Ответы Re: Error on CLUSTER command
Список pgsql-admin
"Mark Steben" <msteben@autorevenue.com> writes:
> The number may change pointing to another index or stay the same.
> The error persists if I repeat 3 or 4 times.  Usually after the
> 4th or 5th time the cluster is successful.

Hm.  I'd guess that the installation is old enough that the OID counter
has wrapped around, and is currently in a region that is pretty densely
populated with existing tables.  (You could check that out by looking
into the database directory.)  7.4.x doesn't have the logic that was
added later to skip over filenames that are already in use; instead
you just get an error if there's a collision.

I forget whether 7.4's pg_resetxlog has an option to set the OID
counter, but if it does then a temporary fix is to move the OID counter
to some less densely populated range.

> What is the risk of performing an upgrade to 7.4.19?

Low, but it won't make this particular problem go away.

            regards, tom lane

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

Предыдущее
От: "dghundt@netzero.net"
Дата:
Сообщение: pg_dump on windows
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump on windows