Re: Extra functionality to createuser
От | Sameer Thakur |
---|---|
Тема | Re: Extra functionality to createuser |
Дата | |
Msg-id | CABzZFEt_KjPD7BYJzRp+dqCR+7gyGy4Ux1fjMpo728+vYpQAcA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Extra functionality to createuser (Christopher Browne <cbbrowne@gmail.com>) |
Ответы |
Re: Extra functionality to createuser
Re: Extra functionality to createuser |
Список | pgsql-hackers |
Hello, Tried to test this patch. Did the following 1. cloned from https://github.com/samthakur74/postgres 2. Applied patch and make install 3. created rolesapp_readonly_role,app2_writer_role 4. Tried createuser -D -S -l -g app_readonly_role,app2_writer_role test_user got error: createuser: invalid option -- 'g' 5. Tried createuser -D -S -l --roles app_readonly_role,app2_writer_role test_user. This does not give error. 6. Confirmed that test_user is created using \du and it has postgres=# \du List of roles Role name | Attributes | Member of -------------------+------------------------------------------------+----------- ---------------------------Sameer | Superuser, Create role, Create DB, Replication | {}app2_writer_role | Cannotlogin | {}app_readonly_role | Cannot login | {}my_new_user | | {app_reado nly_role,app2_writer_role}test_user | | {app_reado nly_role,app2_writer_role} 7. createuser --help does show -g, --roles roles to associate with this new role So i think -g option is failing regards Sameer
В списке pgsql-hackers по дате отправления: