Skip to content

Commit

Permalink
Handle AT_DropExpression in process_utility
Browse files Browse the repository at this point in the history
PG13 adds a new ALTER TABLE subcommand for dropping the generated
property from a column.

postgres/postgres@f595117e24
  • Loading branch information
svenklemm committed Jan 11, 2021
1 parent b2b3ad1 commit 3b3bdb5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/process_utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -3266,6 +3266,9 @@ process_altertable_end_subcmd(Hypertable *ht, Node *parsetree, ObjectAddress *ob
case AT_AddColumnRecurse:
case AT_DropColumn:
case AT_DropColumnRecurse:
#if PG13_GE
case AT_DropExpression:
#endif

/*
* adding and dropping columns handled in
Expand All @@ -3276,9 +3279,11 @@ process_altertable_end_subcmd(Hypertable *ht, Node *parsetree, ObjectAddress *ob
case AT_DropConstraintRecurse:
/* drop constraints handled by process_ddl_sql_drop */
break;
case AT_ProcessedConstraint: /* internal command never hit in our
* test code, so don't know how to
* handle */
#if PG13_LT
case AT_ProcessedConstraint: /* internal command never hit in our
* test code, so don't know how to
* handle */
#endif
case AT_ReAddComment: /* internal command never hit in our test
* code, so don't know how to handle */
case AT_AddColumnToView: /* only used with views */
Expand Down

0 comments on commit 3b3bdb5

Please sign in to comment.