Ensure variable values are quoted when necessary while sending down SET
authorPavan Deolasee <[email protected]>
Thu, 5 Jan 2017 14:04:36 +0000 (19:34 +0530)
committerPavan Deolasee <[email protected]>
Fri, 5 May 2017 04:59:33 +0000 (10:29 +0530)
commit1e1f85b67f577cd86b4aa0b5387dfaba7272a28e
tree551a6262bea9eecb056ba0ac71e2331fcbd80890
parentcad751b23b2ed7a2371b3bb9074cd93d38c7bfb7
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.
src/backend/pgxc/pool/execRemote.c
src/backend/pgxc/pool/pgxcnode.c
src/backend/utils/misc/guc.c
src/include/pgxc/pgxcnode.h
src/include/utils/guc.h
src/test/regress/sql/guc.sql