Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Manu <manuelreyesbravo(at)gmail(dot)com>
Cc: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>, Álvaro Herrera <alvherre(at)kurilemu(dot)de>, Richard Guo <guofenglinux(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned
Date: 2026-11-24 03:31:38
Message-ID: CAGRkXqTRxZQ1=nceZNExxmsTiJrhrJME3aGe1D1ew-=o_fUz3g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Hi Manu,

Thanks for testing v6, both cases reproduce here. v7 is attached for
master, 19 and 18.

ADD COLUMN now checks only the new column, and the pg_upgrade message
uses your text. v7 also compares the expressions with the settings
pg_dump uses, and it no longer breaks test_ddl_deparse.

Thanks,
Shihao

Attachment Content-Type Size
nocfbot-v7-REL_19-0001-Require-child-tables-to-use-the-parent-s-virtual-.patch application/x-patch 54.7 KB
v7-0001-Require-child-tables-to-use-the-parent-s-virtual-.patch application/x-patch 54.7 KB
nocfbot-v7-REL_18-0001-Require-child-tables-to-use-the-parent-s-virtual-.patch application/x-patch 47.5 KB

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message shihao zhong 2026-11-24 03:32:18 Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned
Previous Message Michael Paquier 2026-11-24 03:27:43 pgsql: Allocate pgstats entry body before insert into shared hashtable

Browse pgsql-hackers by date

  From Date Subject
Next Message shihao zhong 2026-11-24 03:32:18 Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned
Previous Message Chao Li 2026-11-24 03:14:31 Re: Rework: Enable fast default for domains with non-volatile constraints