Re: BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: Raja Sai pranav <rajasaipranav0(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, exclusion(at)gmail(dot)com, alvherre(at)kurilemu(dot)de
Subject: Re: BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance
Date: 2026-12-01 21:52:33
Message-ID: CAN4CZFOF8VHLhqWARiUEU_H8W8dd8Xtas+oTf3RysrQ7hEba8A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Somehow seems like your message started a new thread, that probably
wasn't intentional?

One more thing I noticed: selective restore across schemas now fails,
is this an oversight?

CREATE SCHEMA sp; CREATE SCHEMA sc;
CREATE TABLE sp.parent (a int);
CREATE TABLE sc.child () INHERITS (sp.parent);
ALTER TABLE sp.parent ADD CONSTRAINT nn_p NOT NULL a NOT VALID;
COMMENT ON CONSTRAINT nn_p ON sc.child IS 'comment on child in sc';

pg_dump -Fc

and then

pg_restore -n sp

into a database that has schema sp:

master: exit 0
v4: ERROR: schema "sc" does not exist
Command was: COMMENT ON CONSTRAINT nn_p ON sc.child IS
'comment on child in sc';

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-12-02 00:55:34 Re: Hot Standby: missing snapshot conflicts in CREATE INDEX, rewrite, hash
Previous Message Nathan Bossart 2026-12-01 20:39:19 Re: BUG #19891: pg_restore ignores an explicitly empty -F argument