pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: tender wang <tndrwang@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18628: Race condition during attach/detach partition breaks constraints of partition having foreign key
Date: Tue, 24 Sep 2024 15:00:01 +0300
Message-ID: <4fe75dda-d8cc-1763-9741-e1efdaed33d4@gmail.com> (raw)
In-Reply-To: <202409241123.dnrn6pdmoud6@alvherre.pgsql>
References: <202409241123.dnrn6pdmoud6@alvherre.pgsql>

24.09.2024 14:23, Alvaro Herrera wrote:
> I suspect this is the same problem that was reported by Jehan-Guillaume
> de Rorthais, for which there are two patches proposed, his and mine:
>
> [1] https://postgr.es/m/202408072250.2c4fkhwf56lk@alvherre.pgsql
> [2] https://postgr.es/m/20240905005728.0836d609@karst
>
> I haven't looked at his patch, but I suspect it's better than mine on
> maintainability grounds.  I think his code causes more catalog churn,
> though perhaps we don't care too much about that in this particular

Yes, v2-0001-Rework-foreign-key-....patch works for me — the partition
detached with no error.

Sorry for the noise again.

Best regards,
Alexander





view thread (7+ messages)  latest in thread

Message-ID: <4fe75dda-d8cc-1763-9741-e1efdaed33d4@gmail.com>
Permalink:  ../4fe75dda-d8cc-1763-9741-e1efdaed33d4@gmail.com/
Also on:    postgresql.org/message-id/4fe75dda-d8cc-1763-9741-e1efdaed33d4@gmail.com

 · 

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: pgsql-bugs@postgresql.org
  Cc: exclusion@gmail.com, alvherre@alvh.no-ip.org, tndrwang@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18628: Race condition during attach/detach partition breaks constraints of partition having foreign key
  In-Reply-To: <4fe75dda-d8cc-1763-9741-e1efdaed33d4@gmail.com>

* 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