summaryrefslogtreecommitdiff
path: root/src/include/pgxc
diff options
context:
space:
mode:
authorPavan Deolasee2017-01-05 14:04:36 +0000
committerPavan Deolasee2017-05-05 04:59:33 +0000
commit1e1f85b67f577cd86b4aa0b5387dfaba7272a28e (patch)
tree551a6262bea9eecb056ba0ac71e2331fcbd80890 /src/include/pgxc
parentcad751b23b2ed7a2371b3bb9074cd93d38c7bfb7 (diff)
Ensure variable values are quoted when necessary while sending down SET
comamnds to the remote nodes Earlier we'd special cased a few GUCs such as those using memory or time units or transaction isolation levels. But clearly that wasn't enough as we noticed with "application_name" recently. So fix this problem in a more comprehensive manner. Added a few more test cases to cover these scenarios.
Diffstat (limited to 'src/include/pgxc')
-rw-r--r--src/include/pgxc/pgxcnode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/pgxc/pgxcnode.h b/src/include/pgxc/pgxcnode.h
index f40120671f..7ad15c7c6a 100644
--- a/src/include/pgxc/pgxcnode.h
+++ b/src/include/pgxc/pgxcnode.h
@@ -187,7 +187,8 @@ extern void add_error_message(PGXCNodeHandle * handle, const char *message);
extern Datum pgxc_execute_on_nodes(int numnodes, Oid *nodelist, char *query);
-extern void PGXCNodeSetParam(bool local, const char *name, const char *value);
+extern void PGXCNodeSetParam(bool local, const char *name, const char *value,
+ int flags);
extern void PGXCNodeResetParams(bool only_local);
extern char *PGXCNodeGetSessionParamStr(void);
extern char *PGXCNodeGetTransactionParamStr(void);