Re: BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy
Дата
Msg-id 19837.1303336050@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> "Daniel Grace" <thisgenericname@gmail.com> writes:
>> One such file (contents listed below, admittably not 100% useful without a
>> full schema and data) makes a bunch of alterations to a table but fails when
>> it reaches CLUSTER:

>> psql:D:/SVN/wings/wings/branches/devpg/db/lib/course.sql:38: ERROR:  index
>> 178138 does not belong to table 176177

>> However, this failure only occurs if the file is wrapped in a transaction
>> block.  Outside of a transaction block, it works fine.

> I wonder if the issue is that the planner thinks the index isn't usable
> yet because of HOT-chain issues.

On closer inspection this seems to be just insufficient consideration of
corner cases.  We can handle it with a pretty trivial fix in
plan_cluster_use_sort.  Thanks for the bug report!

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: BUG #5989: Assertion failure on UPDATE of big value
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5988: CTINE duplicates constraints