Re: Not able to purge partition - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Not able to purge partition
Date
Msg-id 017026018f323be685087ba2d0e1b7c5a9b331ea.camel@cybertec.at
Whole thread Raw
In response to Re: Not able to purge partition  (veem v <veema0000@gmail.com>)
List 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 by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Empty materialized view
Next
From: Laurenz Albe
Date:
Subject: Re: Is this a buggy behavior?