aboutsummaryrefslogtreecommitdiff
path: root/src/backend/nodes/nodeFuncs.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2022-09-27 10:44:42 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2022-09-27 10:44:42 +0200
commit249b0409b181311bb1c375311e43eb767b5c3bdd (patch)
tree4fe99b3693dde97b23c63b2505e2a4ae74ab6297 /src/backend/nodes/nodeFuncs.c
parentbed0927aeb0c61bd8649b56e5b84a6d551d5f416 (diff)
downloadpostgresql-249b0409b181311bb1c375311e43eb767b5c3bdd.tar.gz
postgresql-249b0409b181311bb1c375311e43eb767b5c3bdd.zip
Fix pg_stat_statements for MERGE
We weren't jumbling the merge action list, so wildly different commands would be considered to use the same query ID. Add that, mention it in the docs, and some test lines. Backpatch to 15. Author: Tatsu <bt22nakamorit@oss.nttdata.com> Reviewed-by: Julien Rouhaud <rjuju123@gmail.com> Discussion: https://postgr.es/m/d87e391694db75a038abc3b2597828e8@oss.nttdata.com
Diffstat (limited to 'src/backend/nodes/nodeFuncs.c')
-rw-r--r--src/backend/nodes/nodeFuncs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/nodes/nodeFuncs.c b/src/backend/nodes/nodeFuncs.c
index 724d076674e..0a7b22f97e7 100644
--- a/src/backend/nodes/nodeFuncs.c
+++ b/src/backend/nodes/nodeFuncs.c
@@ -2259,10 +2259,10 @@ expression_tree_walker_impl(Node *node,
{
MergeAction *action = (MergeAction *) node;
- if (WALK(action->targetList))
- return true;
if (WALK(action->qual))
return true;
+ if (WALK(action->targetList))
+ return true;
}
break;
case T_PartitionPruneStepOp: