Re: Not able to purge partition

Поиск
Список
Период
Сортировка
От veem v
Тема Re: Not able to purge partition
Дата
Msg-id CAB+=1TWkCnOgQwNAzjqoUYY6QRrwVR84E_vtF2=y7G6RocqO8A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Not able to purge partition  (veem v <veema0000@gmail.com>)
Ответы Re: Not able to purge partition
Список pgsql-general
Trying to consolidate the main questions here as below. 

1)As we see having foreign key defined is making the detach partition run for minutes(in our case 5-10minutes for 60 million rows partition), so how to make the parent table partition detach and drop work fast in such a scenario while maintaining the foreign key intact?

2)As we are using pg_partman for maintaining the partitions, So do we need to schedule multiple crons (one for parent table and other for child table), so that first it will drop the child table partition and then the parent table partition(As because detaching/dropping parent partition first will error out) called in order? OR only one cron job call like below can do the job for us and make sure the dependency between the tables is taken care of automatically?

SELECT cron.schedule('@daily',partman.run_maintenance());

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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: Statistics information.
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Not able to purge partition