> > The following script: > > CREATE TABLE t1 (a int, PRIMARY KEY (a)); > > CREATE TABLE t (a int, PRIMARY KEY (a), FOREIGN KEY (a) REFERENCES t1) > > PARTITION BY LIST (a); > > ALTER TABLE t ATTACH PARTITION t1 FOR VALUES IN (1);
I propose to reject this with the attached patch, which I intend to backpatch all the way down to 12.
FWIW, it's not the same problem that Jehan-Guillaume described in [1], even though the error message being thrown is the same.
Thanks for explanation. The attached patch looks good to me.