From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Cc: Zhihong Yu <zyu@yugabyte.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [BUG] parenting a PK constraint to a self-FK one (Was: Self FK oddity when attaching a partition)
Date: Thu, 3 Nov 2022 20:44:16 +0100
Message-ID: <20221103194416.sdp75teipw4i5hri@alvherre.pgsql> (raw)
In-Reply-To: <20221005105523.bhuhkdx4olajboof@alvherre.pgsql>
On 2022-Oct-05, Alvaro Herrera wrote:
> I've been giving the patches a look and it caused me to notice two
> additional bugs in the same area:
>
> - FKs in partitions are sometimes marked NOT VALID. This is because of
> missing initialization when faking up a Constraint node in
> CloneFkReferencing. Easy to fix, have patch, running tests now.
I have pushed the fix for this now.
> - The feature added by d6f96ed94e73 (ON DELETE SET NULL (...)) is not
> correctly propagated. This should be an easy fix also, haven't tried,
> need to add a test case.
There was no bug here actually: it's true that the struct member is left
uninitialized, but in practice that doesn't matter, because the set of
columns is propagated separately from the node.
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"Las navajas y los monos deben estar siempre distantes" (Germán Poo)
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-hackers@postgresql.org
Cc: alvherre@alvh.no-ip.org, jgdr@dalibo.com, zyu@yugabyte.com
Subject: Re: [BUG] parenting a PK constraint to a self-FK one (Was: Self FK oddity when attaching a partition)
In-Reply-To: <20221103194416.sdp75teipw4i5hri@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