summaryrefslogtreecommitdiff
path: root/src/backend/tcop
diff options
context:
space:
mode:
authorTomas Vondra2017-04-22 22:21:20 +0000
committerTomas Vondra2017-04-22 22:21:20 +0000
commitb383b07c941c22ae0bbe9ae28bd1e84e114d821a (patch)
tree53564675fba25336910a5385e17a2caf05307b55 /src/backend/tcop
parent0e071bd0938a3118ec7deaddeb7170ddb43baa8b (diff)
Resolve failures in create_am and amutils regression suites.
The problem was that CREATE ACCESS METHOD was not properly pushed to data nodes, causing failures in subsequent commands refering to the access method. The plan changes in create_am seem trivial, generally just adding "Remote Subquery" to the single-node plan.
Diffstat (limited to 'src/backend/tcop')
-rw-r--r--src/backend/tcop/utility.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index a7c0543201..0f42512466 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -2473,6 +2473,10 @@ ProcessUtilitySlow(Node *parsetree,
case T_CreateAmStmt:
address = CreateAccessMethod((CreateAmStmt *) parsetree);
+#ifdef PGXC
+ if (IS_PGXC_LOCAL_COORDINATOR)
+ ExecUtilityStmtOnNodes(queryString, NULL, sentToRemote, false, EXEC_ON_ALL_NODES, false);
+#endif
break;
default: