]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove inappropriate raw_expression_tree_walker() code
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 29 Jun 2023 08:30:55 +0000 (10:30 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 29 Jun 2023 08:35:35 +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 6029da3ee1fbf98707e236bcf735548f77427cd9..a7080f5cb24473042f3fb9f090d5dfee359bf490 100644 (file)
@@ -4011,8 +4011,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))