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

From Laurenz Albe
Subject Re: Not able to purge partition
Date
Msg-id 16b303b8cc44eece159d144cf483517c99c61f2a.camel@cybertec.at
Whole thread Raw
In response to Re: Not able to purge partition  (veem v <veema0000@gmail.com>)
Responses Re: Not able to purge partition  (veem v <veema0000@gmail.com>)
List pgsql-general
On Sat, 2024-03-23 at 22:41 +0530, veem v wrote:
> 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?

I told you: don't do it.
Instead, use foreign keys between the partitions.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: veem v
Date:
Subject: Re: Not able to purge partition
Next
From: veem v
Date:
Subject: Re: Not able to purge partition