From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: fastcat@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18156: Self-referential foreign key in partitioned table not enforced on deletes
Date: Fri, 12 Jul 2024 14:36:55 +0200
Message-ID: <202407121236.cksghur2ltm7@alvherre.pgsql> (raw)
In-Reply-To: <18156-a44bc7096f0683e6@postgresql.org>
Hello, I hadn't noticed this report before; I'll have a look at it
soon.
On 2023-Oct-13, PG Bug reporting form wrote:
> When a partitioned table has a self-referential foreign key, I'm finding
> that the key is not enforced during deletes from the table.
Hmm, yeah, I broke this in this commit
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Branch: master Release: REL_16_BR [614a406b4] 2022-10-07 19:37:48 +0200
Branch: REL_15_STABLE Release: REL_15_0 [6083132ab] 2022-10-07 19:37:48 +0200
Branch: REL_14_STABLE Release: REL_14_6 [483d26930] 2022-10-07 19:37:48 +0200
Branch: REL_13_STABLE Release: REL_13_9 [7d520e68e] 2022-10-07 19:37:48 +0200
Branch: REL_12_STABLE Release: REL_12_13 [669803af0] 2022-10-07 19:37:48 +0200
Fix self-referencing foreign keys with partitioned tables
Clearly this area needs a lot more work.
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
"No nos atrevemos a muchas cosas porque son difíciles,
pero son difíciles porque no nos atrevemos a hacerlas" (Séneca)
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: alvherre@alvh.no-ip.org, fastcat@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18156: Self-referential foreign key in partitioned table not enforced on deletes
In-Reply-To: <202407121236.cksghur2ltm7@alvherre.pgsql>
* 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