| От | Tom Lane |
|---|---|
| Тема | Re: Bug #529: UPDATE fails after an index is changed |
| Дата | |
| Msg-id | 20479.1007429456@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Bug #529: UPDATE fails after an index is changed (pgsql-bugs@postgresql.org) |
| Список | pgsql-bugs |
pgsql-bugs@postgresql.org writes:
> I had to drop and re-create an index on a table for a large insert. Then I needed to run an UPDATE on a different
tablethat gets its values from the first table. UPDATE fails with this error message:
> 'ERROR: Index 6708054 does not exist'.
What do you mean by "gets its values"? Is there a referential integrity
check between the two tables, or perhaps a trigger that examines the
other table?
If it's a trigger, the problem is probably due to plpgsql caching query
plans. This is a known problem that will be fixed someday (it's not
that easy to fix without giving up a lot of performance). In the
meantime, just starting a fresh backend session should make the problem
go away.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера