Re: Extra functionality to createuser - Mailing list pgsql-hackers

From Christopher Browne
Subject Re: Extra functionality to createuser
Date
Msg-id CAFNqd5XmasFZmUpLx56Otch4OdH60SED7we5vEfbAGd_iqjf0g@mail.gmail.com
Whole thread Raw
In response to Re: Extra functionality to createuser  (Christopher Browne <cbbrowne@gmail.com>)
Responses Re: Extra functionality to createuser  (Amit Kapila <amit.kapila16@gmail.com>)
Re: Extra functionality to createuser  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Wait, that doesn't work if more than one role is added, as they get
merged together by the quoting.

A somewhat ugly amount of quoting can be done at the shell level to
induce double quotes.

$ createuser -g "\"test_rol'e_3\"" usequoted3

I note that similar (with not quite identical behaviour) issues apply
to the user name.  Perhaps the
resolution to this is to leave quoting issues to the administrator.
That simplifies the problem away.
I suspect that the apparatus needed to do a thorough solution (e.g. -
parse the string, and do something
"smarter") may be larger than is worth getting into.



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: additional json functionality
Next
From: Heikki Linnakangas
Date:
Subject: Re: Data corruption issues using streaming replication on 9.0.14/9.2.5/9.3.1