Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails

From: Jehan-Guillaume de Rorthais <jgdr(at)dalibo(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Tender Wang <tndrwang(at)gmail(dot)com>, Junwang Zhao <zhjwpku(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Alexander Lakhin <exclusion(at)gmail(dot)com>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>, Michael Paquier <michael(at)paquier(dot)xyz>
Subject: Re: [BUG] Fix DETACH with FK pointing to a partitioned table fails
Date: 2024-10-23 08:01:54
Message-ID: 20241023100154.661231ca@karst
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 22 Oct 2024 16:32:33 +0200
Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:

> On 2024-Oct-22, Jehan-Guillaume de Rorthais wrote:
>
> > On Fri, 18 Oct 2024 16:50:59 +0200
> > Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
>
> > > For branch 14, I opted to make it delete the constraints on detach.
> > > This isn't ideal but unless somebody wants to spend a lot more time on
> > > this, it seems the best we can do. Leaving broken constraints around
> > > seems worse.
> >
> > Keep that in mind, and move ahead to the next level: self-FK on partitioned
> > table! ;-)
> >
> > https://www.postgresql.org/message-id/flat/20230707175859.17c91538%40karst#0dc7b8afd8b780899021bbb075598250
>
> Yeah. I pushed these patches finally, thanks!

Great! Many thanks Alvaro and Tender for your work on this issue.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-10-23 08:05:19 Re: allowing extensions to control planner behavior
Previous Message Peter Smith 2024-10-23 07:25:14 Re: Refactor to use common function 'get_publications_str'.