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

From: Raja Sai pranav <rajasaipranav0(at)gmail(dot)com>
To: Zsolt Parragi <zsolt(dot)parragi(at)percona(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-02 09:09:26
Message-ID: CAPHduZBHAjE9Bhuz2hOBxP1x1VLkraxTzo3gL9mNbfTTwVu5NQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Before v5, a question about the approach.

Making the comment depend on the child table instead fixes -n sp, but
brings back the original ordering failure: a parallel pg_restore -j 4
failed in 12 of 15 runs with 'constraint "nn_p" for table "child" does
not exist'. The comment needs the parent's constraint as a dependency
for the ordering, and in a selective restore _tocEntryRequired()
restores a COMMENT when any of its dependencies is selected, so I don't
see a way to get both right in pg_dump alone.

One option is for _tocEntryRequired() to also skip a COMMENT or
SECURITY LABEL whose own namespace is excluded by -n/-N. Would that be
acceptable, or is there a better way to do this within pg_dump?

Regards,
Sai Pranav

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message Raja Sai pranav 2026-12-02 08:49:21 Re: BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance