errmsg("ALTER TABLE / DROP EXPRESSION must be applied to child tables too"),
errhint("Do not specify the ONLY keyword."));
Test Query DROP TABLE IF EXISTS parent CASCADE; CREATE TABLE parent (a int, d int GENERATED ALWAYS AS (11) STORED); CREATE TABLE child () INHERITS (parent); CREATE TABLE grandchild () INHERITS (child); ALTER TABLE parent ALTER COLUMN d DROP EXPRESSION;
On Thu, 28 Aug 2025 at 08:35, jian he <jian.universality@gmail.com> wrote: > > That means, we don't need to change the ATPrepDropExpression function > argument for now?
Sure. V3 with this attached, and I think we can move cf entry to RFC