Re: Grant question - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Grant question
Date
Msg-id 20040129150520.GA6865@wolff.to
Whole thread Raw
In response to Grant question  (Barbara Lindsey <blindsey@cog.ufl.edu>)
Responses Re: Grant question  (<btober@seaworthysys.com>)
List pgsql-general
On Thu, Jan 29, 2004 at 09:52:56 -0500,
  Barbara Lindsey <blindsey@cog.ufl.edu> wrote:
> What kind of grant do you need to give a user so that they can have
> permission to do a "SELECT nextval(ID)" on a sequence?
> I granted the user SELECT,UPDATE,INSERT,DELETE on all the tables,
> including the one that has the sequence, but the sequence query is
> failing on permissions.

Sequences have permissions separate from tables. I believe you need
update access to call nextval or setval on a sequence. This should
be described in the documention on the GRANT command.

pgsql-general by date:

Previous
From: Martín Marqués
Date:
Subject: Re: Grant question
Next
From: Barbara Lindsey
Date:
Subject: Re: Grant question