Remove inappropriate raw_expression_tree_walker() code
authorPeter Eisentraut <[email protected]>
Thu, 29 Jun 2023 08:30:55 +0000 (10:30 +0200)
committerPeter Eisentraut <[email protected]>
Thu, 29 Jun 2023 08:35:53 +0000 (10:35 +0200)
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.

src/backend/nodes/nodeFuncs.c

index 94b697b7a27a79554fbcc9317c43d6599610742c..d203702c13e51f3edc758a3ea4fd99fbed423184 100644 (file)
@@ -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))