Attached is a patch implementing the "-g / --roles" option for createuser. I'll be attaching it to the open CommitFest shortly.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных