Re: BUG #5985: CLUSTER ... USING can fail with ERROR: index xxx does not belong to table yyy
В списке pgsql-bugs по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера