pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Korry Douglas <korry.douglas@enterprisedb.com>
To: John Scalia <jayknowsunix@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Adding group role to a user
Date: Wed, 30 Sep 2015 13:24:21 -0400
Message-ID: <560C1AC5.7040401@enterprisedb.com> (raw)
In-Reply-To: <CABzCKRCmO6A+8y+dpneX6KwShmw0mFDkK4bAG+vVxnYaGz0A2Q@mail.gmail.com>
References: <CABzCKRCmO6A+8y+dpneX6KwShmw0mFDkK4bAG+vVxnYaGz0A2Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


ALTER GROUP "schema-rw" ADD USER someuser.


                 -- Korry

> 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



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)  latest in thread

Message-ID: <560C1AC5.7040401@enterprisedb.com>
Permalink:  ../560C1AC5.7040401@enterprisedb.com/
Also on:    postgresql.org/message-id/560C1AC5.7040401@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: korry.douglas@enterprisedb.com, jayknowsunix@gmail.com
  Subject: Re: Adding group role to a user
  In-Reply-To: <560C1AC5.7040401@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox