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 | Cannot login | {} 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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers