public inbox for [email protected]
help / color / mirror / Atom feedFrom: Álvaro Herrera <[email protected]>
To: Sami Imseih <[email protected]>
Cc: Amul Sul <[email protected]>
Cc: PostgreSQL-development <[email protected]>
Subject: Re: Bug in detaching a partition with a foreign key.
Date: Mon, 20 Jan 2025 16:26:35 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAA5RZ0ssXJjOw=gPK_7rmFVGrdyWHVdSbPvib69DsCPxs8Cs7w@mail.gmail.com>
On 2025-Jan-20, Sami Imseih wrote:
> Below is the repro I used. Similar as you original repro,
> but without subpartition on foo_p0. This also results in the segfault
> with your attached patch.
I think the issue in Amul's patch is just that the list was not
initialized to NIL.
Other than the lack of comments, which I'm in the process of writing,
the initial patch Amul submitted seems largely correct to me, in my
understanding of the situation. I'll throw in a few tests, hoping that
it'll prove correct, and if so then I'll get it pushed soon.
--
Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/
"El hombre nunca sabe de lo que es capaz hasta que lo intenta" (C. Dickens)
view thread (4+ messages)
reply
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: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Bug in detaching a partition with a foreign key.
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox