pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Álvaro Herrera <alvherre@kurilemu.de>
To: shihao zhong <zhong950419@gmail.com>
Cc: Manu <manuelreyesbravo@gmail.com>
Cc: Richard Guo <guofenglinux@gmail.com>
Cc: Richard Guo <rguo@postgresql.org>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned
Date: Wed, 11 Nov 2026 16:47:06 +0100
Message-ID: <avSM5ih6_gSk5DJS@alvherre.pgsql> (raw)
In-Reply-To: <avSIMSJb3doxjrv3@alvherre.pgsql>

Also, the comment in MergeAttributes is ... not wrong, but doesn't
really flow with the code, I think.  How about a change like this?

                     * Same rules as above: generated-ness has to match the
-                    * parent, but the contents of the generation expression
-                    * can be different, except for virtual generated columns
-                    * (see CheckPartitionVirtualGeneratedExprs).
+                    * parent.  We don't check the expression itself here;
+                    * CheckPartitionVirtualGeneratedExprs will do so.


-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/






view thread (24+ messages)  latest in thread

Message-ID: <avSM5ih6_gSk5DJS@alvherre.pgsql>
Permalink:  ../avSM5ih6_gSk5DJS@alvherre.pgsql/
Also on:    postgresql.org/message-id/avSM5ih6_gSk5DJS@alvherre.pgsql

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@kurilemu.de, zhong950419@gmail.com, manuelreyesbravo@gmail.com, guofenglinux@gmail.com, rguo@postgresql.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: Don't trust NOT NULL on virtual generated columns of partitioned
  In-Reply-To: <avSM5ih6_gSk5DJS@alvherre.pgsql>
  References: <avSIMSJb3doxjrv3@alvherre.pgsql> <avSM5ih6_gSk5DJS@alvherre.pgsql>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox