Re: CREATE TABLE LIKE with INHERITS skips checks on generated columns

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Peter Eisentraut <peter(at)eisentraut(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: CREATE TABLE LIKE with INHERITS skips checks on generated columns
Date: 2026-11-19 05:06:38
Message-ID: CAGRkXqSb=aanHuY5wauhb4xjbMAmgzWqr9ETMqz-1nTxd_3EYQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Zsolt,

> I think c5 should keep failing, but most likely with a proper ereport?

Thanks for looking. On master alone a child can override an inherited
virtual expression, so e5 works there. v1 lets c5 through to match.
With the patch in [1] both should fail, so I'll add that check to the
LIKE path in whichever patch goes in second.

[1]
https://postgr.es/m/CAGRkXqSL2fnh-EWSHQ878+LdpG8z9Y8+YQ1UkSG_vftr1BSvzQ@mail.gmail.com

Thanks,
Shihao

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nitin Jadhav 2026-11-19 06:00:10 Re: [PATCH] Check interrupts while draining received WAL
Previous Message Kyotaro Horiguchi 2026-11-19 05:04:44 Re: [PATCH] pg_createsubscriber: add hint to wal_level error