Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7251B64FF13 for ; Mon, 20 Oct 2008 18:19:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90963-02 for ; Mon, 20 Oct 2008 18:19:43 -0300 (ADT) X-Greylist: delayed 01:20:54.568042 by SQLgrey-1.7.6 Received: from chene.dit.umontreal.ca (chene.dit.umontreal.ca [132.204.246.20]) by postgresql.org (Postfix) with ESMTP id 6AEFE64FF05 for ; Mon, 20 Oct 2008 18:19:43 -0300 (ADT) Received: from gw-mail.lexum.umontreal.ca (gw-mail.lexum.umontreal.ca [132.204.136.52]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m9KJwk5v028334 for ; Mon, 20 Oct 2008 15:58:46 -0400 Received: from [192.168.4.171] (trieste.lan.lexum.pri [::ffff:192.168.4.171]) (AUTH: PLAIN mederyf, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by gw-mail.lexum.umontreal.ca with esmtp; Mon, 20 Oct 2008 15:58:45 -0400 id 00027302.48FCE2F5.00003307 Message-ID: <48FCE2F5.5090902@lexum.umontreal.ca> Date: Mon, 20 Oct 2008 15:58:45 -0400 From: FM User-Agent: Thunderbird 2.0.0.17 (X11/20080915) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Privileges on sequences Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3129=0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/141 X-Sequence-Number: 30597 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,