in the postgresql 18 ,not null has “Constraint Name”,and this is a PostgreSQL 18 New Feature.
so , i think that: this problem(BUG #19351) is a bug.
At 2025-12-11 15:29:45, "Álvaro Herrera" <alvherre@kurilemu.de> wrote:
>On 2025-Dec-10, Srinath Reddy Sadipiralla wrote:
>
>> ah... just after a quick code lookup, remembered that
>> "not null" is treated as a column property, which is a
>> flag in pg_attribute catalog table named as "attnotnull",
>
>This is no longer true in 18.
>https://www.enterprisedb.com/blog/changes-not-null-postgres-18
>
>--
>Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
>"Fundamental layering violations tend to bite you on tender
>parts of your anatomy." (Tom Lane)
>https://postgr.es/m/2818249.1748706121@sss.pgh.pa.us
From:
PG Bug reporting form Date: Subject:
BUG #19353: Error XX000 if referencing expanded array in grouping set: variable not found in subplan target list