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

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: 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 00:15:47
Message-ID: CAGRkXqQbgoOxRoTefA4W+-=58rbUeT8EUS37mbZe3Zcy4Ry_5A@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

Attachment Content-Type Size
v1-0001-pg_dump-Don-t-mark-inherited-not-null-constraints.patch application/octet-stream 2.2 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ishjaap Singh 2026-12-01 00:30:15 Re: BUG #19936: Planning is slower on 19.0 with many partial indexes on a SQL function
Previous Message shihao zhong 2026-12-01 00:11:54 Re: GiST: SERIALIZABLE misses conflict when scan prunes at internal page