Skip to content

Commit eae1ad9

Browse files
committed
Support IndexElem in raw_expression_tree_walker().
Needed for cases in which INSERT ... ON CONFLICT appears inside a recursive CTE item. Per bug #14153 from Thomas Alton. Patch by Peter Geoghegan, slightly adjusted by me Report: <20160521232802.22598.13537@wrigleys.postgresql.org>
1 parent 465e09d commit eae1ad9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/backend/nodes/nodeFuncs.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3372,6 +3372,15 @@ raw_expression_tree_walker(Node *node,
33723372
/* for now, constraints are ignored */
33733373
}
33743374
break;
3375+
case T_IndexElem:
3376+
{
3377+
IndexElem *indelem = (IndexElem *) node;
3378+
3379+
if (walker(indelem->expr, context))
3380+
return true;
3381+
/* collation and opclass names are deemed uninteresting */
3382+
}
3383+
break;
33753384
case T_GroupingSet:
33763385
return walker(((GroupingSet *) node)->content, context);
33773386
case T_LockingClause:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy