Adding group role to a user

From: John Scalia <jayknowsunix(at)gmail(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Adding group role to a user
Date: 2015-09-30 17:21:37
Message-ID: CABzCKRCmO6A+8y+dpneX6KwShmw0mFDkK4bAG+vVxnYaGz0A2Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Someone here in their infinite wisdom decided that all our group names
would contain a "-". Thus, all the groups look like "schema-ro" or
"schema-rw", My problem is that neither a "grant <group-name> to <user>;"
nor a "alter group <group-name> add user <user>" will work properly as the
command interpreter doesn't like the group name having a "-" in it.

So, I'm looking for a work-around up to and including directly altering the
pg_auth table. Any ideas?
--
Jay

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Korry Douglas 2015-09-30 17:24:21 Re: Adding group role to a user
Previous Message Alex Balashov 2015-09-30 15:23:04 "Dynamic routing" to different databases