Re: getting ERROR "relation 16401 has no triggers" with partitionforeign key alter
Вложения
В списке pgsql-hackers по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: getting ERROR "relation 16401 has no triggers" with partitionforeign key alter |
| Дата | |
| Msg-id | 20190717224807.GA29752@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: getting ERROR "relation 16401 has no triggers" with partitionforeign key alter (Alvaro Herrera <alvherre@2ndquadrant.com>) |
| Ответы |
Re: getting ERROR "relation 16401 has no triggers" with partitionforeign key alter
|
| Список | pgsql-hackers |
On 2019-Jul-17, Alvaro Herrera wrote: > Actually, that doesn't fix this problem, because the partitioned side is > the *referencing* side, and ATExecDropConstraint is obsessed about the > *referenced* side only and assumes that the calling code has already > dealt with the referencing side checks. I'm trying a fix for that now. Yeah, the attached patch fixes Rajkumar's reproducer. > I wonder if there are other AT subcommands that are similarly broken, > because many of them skip the CheckTableNotInUse for the partitions. I suppose the question here is where else do we need to call the new ATRecurseCheckNotInUse function (which needs a comment). I thought about doing the recursion in CheckTableNotInUse itself, but I didn't feel comfortable with assuming that all callers are OK with that. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера