Detach partition with constraint test - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject Detach partition with constraint test
Date
Msg-id CAExHW5vjmT5EC-hdnpzCph261pM2PWbUxfd9=C9du6LKayMe1g@mail.gmail.com
Whole thread Raw
Responses Re: Detach partition with constraint test
List pgsql-hackers
Hi,
I tested the "not enforced" constraint feature extensively today
especially the cases of partitioned table. Everything seems to be
working fine.

While doing that, I found that foreign_key.sql does not have a test to
make sure that a partition continues to have the constraints in the
same state after detaching. Here's a 0001 patch adding those tests in
the same block as the not enforced constraints. Probably we could add
similar test in other blocks as well, but I haven't done that yet.
Checking if something like this would be acceptable.

0002 fixes a comment in the same block.

-- 
Best Wishes,
Ashutosh Bapat

Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Draft for basic NUMA observability
Next
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Some codes refer slot()->{'slot_name'} but it is not defined