From ce76c0ba53e4bd0daf3db7a703671b27797b7244 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 2 Dec 2019 18:05:29 -0500 Subject: Add a reverse-translation column number array to struct AppendRelInfo. This provides for cheaper mapping of child columns back to parent columns. The one existing use-case in examine_simple_variable() would hardly justify this by itself; but an upcoming bug fix will make use of this array in a mainstream code path, and it seems likely that we'll find other uses for it as we continue to build out the partitioning infrastructure. Discussion: https://postgr.es/m/12424.1575168015@sss.pgh.pa.us --- src/backend/nodes/nodeFuncs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/backend/nodes/nodeFuncs.c') diff --git a/src/backend/nodes/nodeFuncs.c b/src/backend/nodes/nodeFuncs.c index bcada740426..880b0ec6846 100644 --- a/src/backend/nodes/nodeFuncs.c +++ b/src/backend/nodes/nodeFuncs.c @@ -3103,6 +3103,7 @@ expression_tree_mutator(Node *node, FLATCOPY(newnode, appinfo, AppendRelInfo); MUTATE(newnode->translated_vars, appinfo->translated_vars, List *); + /* Assume nothing need be done with parent_colnos[] */ return (Node *) newnode; } break; -- cgit v1.2.3