diff options
author | Mason Sharp | 2010-11-15 15:02:48 +0000 |
---|---|---|
committer | Pavan Deolasee | 2011-05-19 16:45:23 +0000 |
commit | 95cf4b8525a4793659cb613eff225016037b367d (patch) | |
tree | dc1430372e80dc6b46b23e26c6331965bc78f473 /src | |
parent | 696e0a454cb0f78dcbdda67e0ab2784180b62728 (diff) |
Fix PGXC macro usage
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/ruleutils.c | 3 | ||||
-rw-r--r-- | src/include/utils/builtins.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 646149594e..43737cae48 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -114,8 +114,9 @@ typedef struct List *subplans; /* List of subplans, in plan-tree case */ Plan *outer_plan; /* OUTER subplan, or NULL if none */ Plan *inner_plan; /* INNER subplan, or NULL if none */ - +#ifdef PGXC bool remotequery; /* deparse context for remote query */ +#endif } deparse_namespace; diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 4b1463ff74..6e26da755d 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -595,8 +595,8 @@ extern Datum pg_get_function_identity_arguments(PG_FUNCTION_ARGS); extern Datum pg_get_function_result(PG_FUNCTION_ARGS); extern char *deparse_expression(Node *expr, List *dpcontext, bool forceprefix, bool showimplicit); -extern List *deparse_context_for_remotequery(const char *aliasname, Oid relid); #ifdef PGXC +extern List *deparse_context_for_remotequery(const char *aliasname, Oid relid); extern List *deparse_context_for(const char *aliasname, Oid relid); #endif extern List *deparse_context_for_plan(Node *plan, Node *outer_plan, |