stale comment in struct AlteredTableInfo

Started by jian he2 months ago2 messageshackers
Jump to latest
#1jian he
jian.universality@gmail.com

HI.

{
/* Objects to rebuild after completing ALTER TYPE operations */
List *changedConstraintOids; /* OIDs of constraints to rebuild */
List *changedConstraintDefs; /* string definitions of same */
List *changedIndexOids; /* OIDs of indexes to rebuild */
List *changedIndexDefs; /* string definitions of same */
char *replicaIdentityIndex; /* index to reset as REPLICA IDENTITY */
char *clusterOnIndex; /* index to use for CLUSTER */
List *changedStatisticsOids; /* OIDs of statistics to rebuild */
List *changedStatisticsDefs; /* string definitions of same */
List *changedStatisticsOwners; /* owners of same */
} AlteredTableInfo;

Comment
/* Objects to rebuild after completing ALTER TYPE operations */
should be
/* Objects to rebuild after completing ALTER TYPE or SET EXPRESSION
operations */

Since these objects apply to ALTER COLUMN SET EXPRESSION too.

--
jian
https://www.enterprisedb.com/

#2David Rowley
dgrowleyml@gmail.com
In reply to: jian he (#1)
Re: stale comment in struct AlteredTableInfo

On Wed, 23 Sept 2026 at 15:03, jian he <jian.universality@gmail.com> wrote:

Comment
/* Objects to rebuild after completing ALTER TYPE operations */
should be
/* Objects to rebuild after completing ALTER TYPE or SET EXPRESSION
operations */

Since these objects apply to ALTER COLUMN SET EXPRESSION too.

Adjusted. Thanks.

David