Re: Extra functionality to createuser

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: Extra functionality to createuser
Дата
Msg-id CAFNqd5XmasFZmUpLx56Otch4OdH60SED7we5vEfbAGd_iqjf0g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Extra functionality to createuser  (Christopher Browne <cbbrowne@gmail.com>)
Ответы Re: Extra functionality to createuser  (Amit Kapila <amit.kapila16@gmail.com>)
Re: Extra functionality to createuser  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: additional json functionality
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Data corruption issues using streaming replication on 9.0.14/9.2.5/9.3.1