Re: [BUGS] BUG #14526: no unique or exclusion constraint matching the ON CONFLICT
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [BUGS] BUG #14526: no unique or exclusion constraint matching the ON CONFLICT |
| Дата | |
| Msg-id | 30935.1486511387@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [BUGS] BUG #14526: no unique or exclusion constraint matching theON CONFLICT (Peter Geoghegan <pg@bowt.ie>) |
| Список | pgsql-bugs |
Peter Geoghegan <pg@bowt.ie> writes:
> Anyway, it's very hard to see how that could be, since the error in
> question is thrown from within the planner.
Yeah, there really shouldn't be any data dependency there.
> I don't recall the exact
> details of how inference will do offhand, but I am suspicious of the
> cast that appears in the partial index predicate.
That's expected given that the column is declared varchar.
The whole thing is pretty strange. I could believe the test not
finding an index whose state is changing (ie, it's in process of
being built by CREATE INDEX CONCURRENTLY), but as long as the
pg_index entry is stable it seems like it should either work or not.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера