User privileges on sequences - Mailing list pgsql-general

From Mihai Gheorghiu
Subject User privileges on sequences
Date
Msg-id 003701c1567a$3e9c15e0$6e646464@New6.Travel
Whole thread Raw
Responses Re: User privileges on sequences  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
I have a db in which users can view and update data only via views.
It is my understanding that the privileges of the view/rule creator do not
extend to sequences. Therefore, I have to give users permissions to
sequences, just to the extent that they could add records. What is the
minimum set of privileges for this? Are SELECT privileges on sequences
enough? What happens actually when a user issues a statement: SELECT
nextval("sequence")? What about setval()? Do these involve only a SELECT to
the sequence, or is it an UPDATE, or is it a DELETE and INSERT, or just an
INSERT?


pgsql-general by date:

Previous
From: mirko@picard.inka.de (Mirko Zeibig)
Date:
Subject: Re: why do I receive these news-group posts in my mail box?
Next
From: John Burski
Date:
Subject: Re: Postmaster re-start problem