Re: PostgreSQL v11.3 - Records are deleted from child table ifpartition key of parent table is changed
В списке pgsql-bugs по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: PostgreSQL v11.3 - Records are deleted from child table ifpartition key of parent table is changed |
| Дата | |
| Msg-id | 20190621132823.GA8023@alvherre.pgsql обсуждение исходный текст |
| Ответ на | RE: PostgreSQL v11.3 - Records are deleted from child table ifpartition key of parent table is changed ("Rozboril, Robert" <robert.rozboril@dxc.com>) |
| Ответы |
RE: PostgreSQL v11.3 - Records are deleted from child table ifpartition key of parent table is changed
|
| Список | pgsql-bugs |
Hi Robert, AFAIU the problem is that when the pof tuple migrates to pot, the partition-level FK constraint on polf sees the update as a delete (because at that level that's what it is) and thus cascades to delete the tuple on polf. There is nothing that automagically instantiates a new tuple in polt. To fix this problem, we would need a mechanism to insert an equivalent referencing tuple in the other partition. I'm not sure how would we achieve such a thing. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера