From: Tomas Vondra Date: Mon, 22 Aug 2016 21:38:31 +0000 (+0200) Subject: remove unused shippability definitions from planner.h X-Git-Tag: XL9_5_R1_4~47 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=5ce0e50ae7d3294fa7f66c7f35caed0ceb5f277c;p=postgres-xl.git remove unused shippability definitions from planner.h The ShippabilityStat type and shippability walker/test functions are not really needed outside pgxcship.c. --- diff --git a/src/include/pgxc/planner.h b/src/include/pgxc/planner.h index 62c07c821b..095eca4e00 100644 --- a/src/include/pgxc/planner.h +++ b/src/include/pgxc/planner.h @@ -181,35 +181,6 @@ typedef struct */ } Shippability_context; -/* enum for reasons as to why a query/expression is not FQSable */ -typedef enum -{ - SS_UNSHIPPABLE_EXPR = 0, /* it has unshippable expression */ - SS_NEED_SINGLENODE, /* Has expressions which can be evaluated when - * there is only a single node involved. - * Athought aggregates too fit in this class, we - * have a separate status to report aggregates, - * see below. - */ - SS_NEEDS_COORD, /* the query needs Coordinator */ - SS_VARLEVEL, /* one of its subqueries has a VAR - * referencing an upper level query - * relation - */ - SS_NO_NODES, /* no suitable nodes can be found to ship - * the query - */ - SS_UNSUPPORTED_EXPR, /* it has expressions currently unsupported - * by FQS, but such expressions might be - * supported by FQS in future - */ - SS_HAS_AGG_EXPR, /* it has aggregate expressions */ - SS_UPDATES_DISTRIBUTION_COLUMN /* query updates distribution column */ -} ShippabilityStat; - -extern bool pgxc_shippability_walker(Node *node, Shippability_context *sc_context); -extern bool pgxc_test_shippability_reason(Shippability_context *context, - ShippabilityStat reason); extern PlannedStmt *pgxc_direct_planner(Query *query, int cursorOptions, ParamListInfo boundParams); extern List *AddRemoteQueryNode(List *stmts, const char *queryString,