Re: unable to GRANT on sequence - Mailing list pgsql-admin

From woody
Subject Re: unable to GRANT on sequence
Date
Msg-id woody.1q2c4a@mail.droptable.com
Whole thread Raw
Responses Re: unable to GRANT on sequence  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: unable to GRANT on sequence  (Michael Fuhr <mike@fuhr.org>)
List pgsql-admin
I'm having trouble GRANTing access on sequences. I created a database
called 'asterisk' using the 'postgres' user. I then created 2 users
called 'asterisk' and 'asterisk_owner'. I created a schema called
'asterisk' and GRANTed CREATE, DROP, INSERT, UPDATE, DELETE on this
schema to 'asterisk_owner'. I signed in as 'asterisk_owner' and created
some tables with primary keys based on sequences, then GRANTed SELECT,
UPDATE, INSERT, DELETE on these tables to 'asterisk'. When I log in as
'asterisk', I can insert rows but I can't use the implied nextval(). It
says the relation <seq_name> does not exist. When I do a \dp, I can see
the sequence objects listed, but no permissions are listed. The tables
have all the expected permissions. I couldn't see anything in the
reference for the GRANT command for sequences.



--
woody
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------


pgsql-admin by date:

Previous
From: "Talal Mahyoub Abdo"
Date:
Subject: Can you help me
Next
From: "James Doherty"
Date:
Subject: dbmirror modifies pg_proc nextval/setval functions