Skip site navigation (1) Skip section navigation (2)

Privileges on sequences

From: FM <dist-list(at)LEXUM(dot)UMontreal(dot)CA>
To: pgsql-admin(at)postgresql(dot)org
Subject: Privileges on sequences
Date: 2008-10-20 19:58:45
Message-ID: 48FCE2F5.5090902@lexum.umontreal.ca (view raw or flat)
Thread:
Lists: pgsql-admin
Hello,
We are using PGSQL 8.3.4

I have problem to grant privileges to a sequence.
If I grant all to the user I can do something like :
SELECT nextval('reflex_cited_reports_id');
SELECT nextval('reflex_cited_reports_id');
 nextval 
----------
 40442939
(1 row)


BUT if I grant the same priv to the group (that include the user) :

SELECT nextval('reflex_cited_reports_id');
ERROR:  permission denied for sequence reflex_cited_reports_id

some info :

canlii_integration_tests=# SELECT nextval('reflex_cited_reports_id');
 nextval 
----------
 40442939
(1 row)

canlii_integration_tests=# SELECT * from pg_roles where
rolname='soft_reflex_externe';
       rolname       | rolsuper | rolinherit | rolcreaterole |
rolcreatedb | rolcatupdate | rolcanlogin | rolconnlimit | rolpassword |
rolvaliduntil | rolconfig |    oid   
---------------------+----------+------------+---------------+-------------+--------------+-------------+--------------+-------------+---------------+-----------+-----------
 soft_reflex_externe | f        | f          | f             |
f           | f            | t           |           -1 | ********    |
infinity      |           | 820769731
(1 row)

canlii_integration_tests=# SELECT * from pg_group where
groname='reflex_lecteurs';
     groname     | grosysid |                             
grolist                             
-----------------+----------+-------------------------------------------------------------------
 reflex_lecteurs |    16431 |
{16400,16409,16417,16418,16424,16434,16479,16499,16500,820769731}
(1 row)



Is it a bug ? Or am i doing something wrong

Regards,


Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2008-10-20 22:50:24
Subject: Re: Privileges on sequences
Previous:From: Scott MarloweDate: 2008-10-20 18:34:56
Subject: Re: Move tables to tablespace

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group