Skip to content

Commit

Permalink
Remove inappropriate raw_expression_tree_walker() code
Browse files Browse the repository at this point in the history
It was walking into the ColumnDef->compression field, which is not a
node but a string.  This code is currently not reachable (because the
compression field is only set in situations that don't go through
raw_expression_tree_walker()), but if it had been, this could have
behaved erratically.
  • Loading branch information
petere committed Jun 29, 2023
1 parent 7e8349c commit 6bc7873
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/backend/nodes/nodeFuncs.c
Expand Up @@ -3924,8 +3924,6 @@ raw_expression_tree_walker(Node *node,

if (walker(coldef->typeName, context))
return true;
if (walker(coldef->compression, context))
return true;
if (walker(coldef->raw_default, context))
return true;
if (walker(coldef->collClause, context))
Expand Down

0 comments on commit 6bc7873

Please sign in to comment.