Quote Postgres names to avoid implicit conversion
Quote Postgres names to avoid implicit conversion

In PostgreSQL unquoted names are case-insensitive.
However, quoted names are case-sensivite.
Unquoted names are implicitly lowercased!

Problem:
Trove guestagent currently uses unquoted names leading to
inproper behavior when the user actually uses names
with uppercase letters.

Example:
trove user-create <id> USERNAME <password>
trove user-show <id> USERNAME

results in a 404 error - user not found on instance,
because the user created is actually "username".

Solution:
Make sure we quote user provided names and value strings in
SQL statements in 'guestagent/datastore/postgresql/pgutil.py'.

Change-Id: I5f86b2b0c0195aafb436a65da03d66e4ff2bf9d6
Closes-bug: 1412568

zhangg/trove,fabian4/trove,zhujzhuo/openstack-trove,cp16net/trove,mmasaki/trove,openstack/trove,hplustree/trove,openstack/trove,fabian4/trove,zhangg/trove,mmasaki/trove,redhat-openstack/trove,redhat-openstack/trove,hplustree/trove,mmasaki/trove,fabian4/trove,zhujzhuo/openstack-trove,cp16net/trove,redhat-openstack/trove,zhujzhuo/openstack-trove,cp16net/trove