Re: Bug in detaching a partition with a foreign key. - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: Bug in detaching a partition with a foreign key.
Date
Msg-id 202501201526.qvxjk2ptyqop@alvherre.pgsql
Whole thread Raw
In response to Re: Bug in detaching a partition with a foreign key.  (Sami Imseih <samimseih@gmail.com>)
Responses Re: Bug in detaching a partition with a foreign key.
List pgsql-hackers
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)



pgsql-hackers by date:

Previous
From: Sami Imseih
Date:
Subject: Re: Bug in detaching a partition with a foreign key.
Next
From: Sami Imseih
Date:
Subject: Re: Bug in detaching a partition with a foreign key.