Re: Not able to purge partition

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Not able to purge partition
Дата
Msg-id 017026018f323be685087ba2d0e1b7c5a9b331ea.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Not able to purge partition  (veem v <veema0000@gmail.com>)
Список pgsql-general
On Mon, 2024-03-25 at 02:54 +0530, veem v wrote:
> Can you please suggest some docs which shows the way we should
> do the partition maintenance (if not using pg_partman)?

man cron

> Actually , I am not able to visualize the steps here. Do you mean
> to say , we will just create the partition tables without any foreign
> key constraints first. Then create parent table future partitions first
> (say 10 days partitions) and then child table future 10 days partitions
> manually and during that define the foreign key constraints , indexes
> etc. Here , how to exactly find the exact matching parent partitions
> so as to create the foreign keys one to one

I don't see what's so hard about it.  When the time is there to create
a new partition, create a partition for both the parent and the child
table and define a foreign key between them.

Yours,
Laurenz Albe



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Empty materialized view
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Is this a buggy behavior?