Re: problem inserting with sequence

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: germ germ <super_code_monkey(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: problem inserting with sequence
Date: 2005-07-28 14:47:08
Message-ID: 23961.1122562028@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

germ germ <super_code_monkey(at)yahoo(dot)com> writes:
> This is the error: 2005-07-28 08:51:08 ERROR:
> permission denied for sequence requests_req_num_seq

> I've tried these grants, but no luck:
> GRANT ALL ON FUNCTION nextval(integer) TO wwwrun,
> postgres;
> GRANT ALL ON FUNCTION nextval('requests_req_num_seq')
> TO wwwrun, postgres;
> GRANT ALL ON FUNCTION nextval() TO wwwrun, postgres;

The missing permission is for the sequence, not the function.

grant all on requests_req_num_seq to ...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kenneth Marshall 2005-07-28 15:04:50 Re: [pgsql-advocacy] MySQL to PostgreSQL, was ENUM type
Previous Message Michael Fuhr 2005-07-28 14:31:40 Re: problem inserting with sequence