Re: BUG #19846: dump/restore marks inherited NOT VALID not-null constraint as local

From: Kirill Reshke <reshkekirill(at)gmail(dot)com>
To: shihao zhong <zhong950419(at)gmail(dot)com>
Cc: 125atishprak(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19846: dump/restore marks inherited NOT VALID not-null constraint as local
Date: 2026-12-01 05:38:33
Message-ID: CALdSSPgv7dQw54JyO66CiJOpDnf5nnh2hctxsZjRN9vuEXjwAw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, 1 Dec 2026 at 05:16, shihao zhong <zhong950419(at)gmail(dot)com> wrote:
>
> Hi,
>
> I can reproduce it, this is because pg_dump treats such a child constraint
> as local, and in binary upgrade mode that also skips the step that resets
> conislocal. The attached patch fixes pg_upgrade.
>
> Thanks,
> Shihao

Fix looks right for the pg_upgrade case, but we do not fix regular
pg_dump - pg_restore schema this way? Does this matter by the way? I
can see from the report that this is not a real field report (yet),
but I think it's just not much time since the pg19 release passed. So,
I think this is something we need to fix.

--
Best regards,
Kirill Reshke

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message Ishjaap Singh 2026-12-01 05:19:57 Re: BUG #19957: jsonpath `last` returns the wrong index after a filter containing `exists($x[0])`