From 4db00396efdcb39143e70bb564780d83be69fa24 Mon Sep 17 00:00:00 2001 From: David Rowley Date: Tue, 6 Oct 2026 14:27:27 +1300 Subject: [PATCH] Fix outdated comment in tablecmds.c Since f80bedd52, these fields are now also used when adjusting the expression on a virtual generated column. Reported-by: jian he Discussion: https://postgr.es/m/CACJufxEvw496SK=nmvxOL0SQYBPhrsnad1DUj6cPs17cvvDSMQ@mail.gmail.com Backpatch-through: 19 --- src/backend/commands/tablecmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index e6cedb55337..b2f60c3d632 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -200,7 +200,7 @@ typedef struct AlteredTableInfo Expr *partition_constraint; /* for attach partition validation */ /* true, if validating default due to some other attach/detach */ bool validate_default; - /* Objects to rebuild after completing ALTER TYPE operations */ + /* Objects to rebuild after ALTER TYPE or SET EXPRESSION operations */ List *changedConstraintOids; /* OIDs of constraints to rebuild */ List *changedConstraintDefs; /* string definitions of same */ List *changedIndexOids; /* OIDs of indexes to rebuild */