summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Vondra2017-10-14 10:26:13 +0000
committerTomas Vondra2017-10-14 10:32:06 +0000
commit1c7637f35f5f8b4566c4483f02041e7fc89a83cc (patch)
tree7ca75186661212d8a94876272f978c9edfd0750b
parent901b4b7ae213e160ee66cd76dbd893b9f0494fdb (diff)
Remember queryId for queries executed using FQS
pgxc_FQS_planner() was not copying queryId, so extensions relying on it did not work properly. For example the pg_stat_statements extension was ignoring queries executed using FQS entirely. Backpatch to Postgres-XL 9.5.
-rw-r--r--src/backend/pgxc/plan/planner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/pgxc/plan/planner.c b/src/backend/pgxc/plan/planner.c
index 6f602cd7b0..e86a945c25 100644
--- a/src/backend/pgxc/plan/planner.c
+++ b/src/backend/pgxc/plan/planner.c
@@ -329,6 +329,7 @@ pgxc_FQS_planner(Query *query, int cursorOptions, ParamListInfo boundParams)
result->resultRelations = list_make1_int(query->resultRelation);
result->planTree = top_plan;
result->rtable = query->rtable;
+ result->queryId = query->queryId;
result->relationOids = glob->relationOids;
result->invalItems = glob->invalItems;