Re: BUG #15425: DETACH/ATTACH PARTITION bug

2018-10-12 Thread Alvaro Herrera
Pushed, after some further refinement of the test case so that it'd verify a few more corner case situations. Thanks Michael. -- Álvaro Herrerahttps://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Re: BUG #15425: DETACH/ATTACH PARTITION bug

2018-10-11 Thread Alvaro Herrera
Another version. I realized that attaching a partitioned partition had further trouble, because the recursion at each step would consider all FKs instead of only the FKs that had been cloned. So I had to split out the recursive step of the cloning. Now that works fine. In order to make this wor