Re: problem inserting with sequence - Mailing list pgsql-general

From Douglas McNaught
Subject Re: problem inserting with sequence
Date
Msg-id m2hdefqa0e.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to Re: problem inserting with sequence  (germ germ <super_code_monkey@yahoo.com>)
List pgsql-general
germ germ <super_code_monkey@yahoo.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;

You need to grant permission on the sequence itself.

GRANT ALL ON requests_req_num_seq TO wwwrun;

I think that's tghe right syntax--see the docs...

-Doug

pgsql-general by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: Trigger ad mutli database
Next
From: Michael Fuhr
Date:
Subject: Re: problem inserting with sequence