| От | Tom Lane |
|---|---|
| Тема | Re: Get constrrelid for fk constraints that lost it |
| Дата | |
| Msg-id | 21547.1033399460@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Get constrrelid for fk constraints that lost it (Stephan Szabo <sszabo@megazone23.bigpanda.com>) |
| Ответы |
Re: Get constrrelid for fk constraints that lost it
|
| Список | pgsql-patches |
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
>> (We can tweak the RI triggers to make the runtime failure message be
>> more helpful than "Relation 0 not found".) ISTM the point of having
> Are we mostly concerned about the case where it's 0 or all cases
> where the constrrelid relation doesn't open?
I'd only special-case OID 0; we can reasonably assume that came from
a broken CREATE CONSTRAINT TRIGGER definition. Any other failure is
harder to guess at the cause of, so we should just let the generic
error reporting do its thing.
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера