| От | Tom Lane |
|---|---|
| Тема | Re: Defining Role Privileges |
| Дата | |
| Msg-id | 27432.1328720176@sss.pgh.pa.us обсуждение |
| Ответ на | Defining Role Privileges (Carlos Mennens <carlos.mennens@gmail.com>) |
| Список | pgsql-general |
Carlos Mennens <carlos.mennens@gmail.com> writes:
> My question is do I need to specify CREATEDB & CREATEROLE if I'm
> already granting the SUPERUSER privilege?
No, not really. The point of those options is to grant privileges to
roles that aren't superuser.
> Also when I generate a new role, is there any difference between using:
> ALTER ROLE tom ENCRYPTED PASSWORD 'md5081bea17b5503506d29531af33cc6f4e';
> \password tom
Don't think so, except that in the former case you have to work out the
encrypted password by hand. The latter is safer since the cleartext
password will not escape the psql executable.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера