| От | Alvaro Herrera |
|---|---|
| Тема | Re: ALTER CONSTRAINT on a partitioned FK isn't working |
| Дата | |
| Msg-id | 20201207235206.GA2277@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: ALTER CONSTRAINT on a partitioned FK isn't working (Alvaro Herrera <alvherre@alvh.no-ip.org>) |
| Список | pgsql-bugs |
On 2020-Dec-07, Alvaro Herrera wrote: > Yeah, this query shows that the tgdeferrable and tginitdeferred columns > ought to be dropped: > > select tgname, tgdeferrable, tginitdeferred from pg_trigger; Sorry, I meant "ought to be updated". But there's more to it than that: the pg_constraint entries themselves are not updated, and that's because ALTER CONSTRAINT does not have recurse at all. So the first thing to do is add an "ATSimpleRecursion()" call for the appropriate case, but even that is not sufficient, as we need to recurse on the referenced side also, not just the referencing side -- and that's a tad more involved. (ATExecAlterConstraint is explicitly not handling the case.)
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера