pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedAdding group role to a user
4+ messages / 2 participants
[nested] [flat]
* Adding group role to a user
@ 2015-09-30 17:21 John Scalia <jayknowsunix@gmail.com>
2015-09-30 17:24 ` Re: Adding group role to a user Korry Douglas <korry.douglas@enterprisedb.com>
0 siblings, 1 reply; 4+ messages in thread
From: John Scalia @ 2015-09-30 17:21 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Adding group role to a user
2015-09-30 17:21 Adding group role to a user John Scalia <jayknowsunix@gmail.com>
@ 2015-09-30 17:24 ` Korry Douglas <korry.douglas@enterprisedb.com>
2015-09-30 17:42 ` Re: Adding group role to a user John Scalia <jayknowsunix@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Korry Douglas @ 2015-09-30 17:24 UTC (permalink / raw)
To: John Scalia <jayknowsunix@gmail.com>; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Adding group role to a user
2015-09-30 17:21 Adding group role to a user John Scalia <jayknowsunix@gmail.com>
2015-09-30 17:24 ` Re: Adding group role to a user Korry Douglas <korry.douglas@enterprisedb.com>
@ 2015-09-30 17:42 ` John Scalia <jayknowsunix@gmail.com>
2015-09-30 17:50 ` Re: Adding group role to a user Korry Douglas <korry.douglas@enterprisedb.com>
0 siblings, 1 reply; 4+ messages in thread
From: John Scalia @ 2015-09-30 17:42 UTC (permalink / raw)
To: Korry Douglas <korry.douglas@enterprisedb.com>; +Cc: pgsql-admin
I think that was only variant I hadn't tried. Looking through the history I
had only used a single quote around the group name, not a double, but that
did work.
Thanks,
Jay
On Wed, Sep 30, 2015 at 12:24 PM, Korry Douglas <
korry.douglas@enterprisedb.com> wrote:
>
> 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
>>
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Adding group role to a user
2015-09-30 17:21 Adding group role to a user John Scalia <jayknowsunix@gmail.com>
2015-09-30 17:24 ` Re: Adding group role to a user Korry Douglas <korry.douglas@enterprisedb.com>
2015-09-30 17:42 ` Re: Adding group role to a user John Scalia <jayknowsunix@gmail.com>
@ 2015-09-30 17:50 ` Korry Douglas <korry.douglas@enterprisedb.com>
0 siblings, 0 replies; 4+ messages in thread
From: Korry Douglas @ 2015-09-30 17:50 UTC (permalink / raw)
To: John Scalia <jayknowsunix@gmail.com>; +Cc: pgsql-admin
It would have been polite of me to include a reference, apologies.
Group names and user names (which are really /role/ names) are
considered to be identifiers. This page explains the quoting rules for
identifiers in PostgreSQL:
http://www.postgresql.org/docs/9.4/static/sql-syntax-lexical.html
-- Korry
> I think that was only variant I hadn't tried. Looking through the
> history I had only used a single quote around the group name, not a
> double, but that did work.
>
> Thanks,
> Jay
>
> On Wed, Sep 30, 2015 at 12:24 PM, Korry Douglas
> <korry.douglas@enterprisedb.com
> <mailto:korry.douglas@enterprisedb.com>> wrote:
>
>
> 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
>
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-09-30 17:50 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-09-30 17:21 Adding group role to a user John Scalia <jayknowsunix@gmail.com>
2015-09-30 17:24 ` Korry Douglas <korry.douglas@enterprisedb.com>
2015-09-30 17:42 ` John Scalia <jayknowsunix@gmail.com>
2015-09-30 17:50 ` Korry Douglas <korry.douglas@enterprisedb.com>
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