Re: Question on partman extension while relation exist

Поиск
Список
Период
Сортировка
От yudhi s
Тема Re: Question on partman extension while relation exist
Дата
Msg-id CAEzWdqdGyJKuKJYmvi8Xm0M9xKvffcHS9wO4kQyFCnwTZLyd1w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Question on partman extension while relation exist  (Muhammad Ikram <mmikram@gmail.com>)
Ответы Re: Question on partman extension while relation exist
Список pgsql-general


On Tue, 2 Jul, 2024, 12:43 pm Muhammad Ikram, <mmikram@gmail.com> wrote:
Hi Yudhi,

I think disabling foreign keys before maintenance will help.

--
Muhammad Ikram

Do you mean to say call the parent table first for maintenance followed by child, and remove all the foreign key first which are pointing to this parent table partition which is going to be dropped by the pg_partman? 

As drop/create partition is being called from within pg_partman without our intervention, so where should we put this drop foreign key code? Do you mean having that with another event trigger which will fire before drop? 

В списке pgsql-general по дате отправления: