From: Arne Roland <A.Roland@index.de>
To: Christophe Courtois <christophe.courtois@dalibo.com>
To: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Detaching a partition with a FK on itself is not possible
Date: Thu, 17 Mar 2022 17:58:04 +0000
Message-ID: <666ad9554f9d4781aa45c4613544075d@index.de> (raw)
In-Reply-To: <06c75996-f72b-e57b-0efe-31e74a475c39@dalibo.com>
References: <06c75996-f72b-e57b-0efe-31e74a475c39@dalibo.com>
Hi,
I don't think this a bug, but a feature request. I therefore think hackers would be more appropriate.
I don't see how an additional syntax to modify the constraint should help.
If I'd want to fix this, I'd try to teach the detach partition code about self referencing foreign keys. It seems to me like that would be the cleanest solution, because the user doesn't need to care about this at all.
I don't think, I'll spend time on this in the near future though.
Regards
Arne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: A.Roland@index.de, christophe.courtois@dalibo.com
Subject: Re: Detaching a partition with a FK on itself is not possible
In-Reply-To: <666ad9554f9d4781aa45c4613544075d@index.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox