From: Peter Eisentraut Date: Thu, 29 Jun 2023 08:30:55 +0000 (+0200) Subject: Remove inappropriate raw_expression_tree_walker() code X-Git-Tag: REL_14_9~48 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=6bc7873da1c3e9f1d870fa2d671eb450ea6c9753;p=postgresql.git Remove inappropriate raw_expression_tree_walker() code 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. --- diff --git a/src/backend/nodes/nodeFuncs.c b/src/backend/nodes/nodeFuncs.c index 94b697b7a27..d203702c13e 100644 --- a/src/backend/nodes/nodeFuncs.c +++ b/src/backend/nodes/nodeFuncs.c @@ -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))