I'm happy I could help, and I'm even happier to see you guys were 10 steps ahead of me and already fixed it for 11.1, which I'm definitely looking forward to.
On 2018/11/08 10:10, Frederico Costa Galvão wrote: > I stumbled upon this issue yesterday, and trying to reduce and pinpoint > it, I managed to get to this: > > //start > CREATE TABLE a ( > id bigint > ); > > INSERT INTO a (id) VALUES (1); -- this id's value doesn't matter > > ALTER TABLE ONLY a > ADD CONSTRAINT a_pkey PRIMARY KEY (id); > > CREATE TABLE b ( > a_id bigint > ); > > ALTER TABLE ONLY b > ADD CONSTRAINT b_a_id_fkey FOREIGN KEY (a_id) REFERENCES a(id); > > ALTER TABLE a ADD x BOOLEAN NOT NULL DEFAULT FALSE; -- or TRUE, doesn't > matter
There it is. These are similar steps as I'd used to track down a bug that's now fixed in 11.1.