Re: Partition Check not updated when insert into a partition - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Partition Check not updated when insert into a partition
Date
Msg-id 202110181740.qxd3qtox4xxa@alvherre.pgsql
Whole thread Raw
In response to Re: Partition Check not updated when insert into a partition  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Partition Check not updated when insert into a partition
List pgsql-hackers
On 2021-Oct-18, Alvaro Herrera wrote:

> Thanks.  I'm looking at it now.  I notice that if I take out the code
> fix and keep the tests, I only see the ATTACH side of the problem have a
> failure; I expected to see a failure for DETACH too.

Ah, no, the test covers both cases; it's just that if it fails the first
time, it'll fail to fail the second time.  But if I run it separately,
and make it succeed the first time, then the second one will fail as
expected.  This becomes better visible by adding \c in a few places, but
I don't think it's necessary to add it to the committed test -- I'm
taking the code as Amit submitted.

-- 
Álvaro Herrera           39°49'30"S 73°17'W  —  https://www.EnterpriseDB.com/
Maybe there's lots of data loss but the records of data loss are also lost.
(Lincoln Yeoh)



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Partition Check not updated when insert into a partition
Next
From: Andrew Dunstan
Date:
Subject: Re: BUG #17212: pg_amcheck fails on checking temporary relations