From: Michael Paquier <michael@paquier.xyz>
To: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Another FK violation when referencing a multi-level partitioned table
Date: Thu, 6 Feb 2020 17:08:33 +0900
Message-ID: <20200206080833.GL23913@paquier.xyz> (raw)
In-Reply-To: <20200206004948.238352db@firost>
References: <20200206004948.238352db@firost>
On Thu, Feb 06, 2020 at 12:49:48AM +0100, Jehan-Guillaume de Rorthais wrote:
> Please, find in attachment a proposal patch to fix this FK violation.
Indeed. I would have expected the deletion of the referenced rows to
happen as in your test. At quick glance, your fix looks right, but I
need to study more this code. Alvaro, would you like to weigh in as
the author of f56f8f8?
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: michael@paquier.xyz, jgdr@dalibo.com
Subject: Re: Another FK violation when referencing a multi-level partitioned table
In-Reply-To: <20200206080833.GL23913@paquier.xyz>
References: <20200206004948.238352db@firost> <20200206080833.GL23913@paquier.xyz>
* 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