User privileges on sequences

From: "Mihai Gheorghiu" <tanethq(at)earthlink(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: User privileges on sequences
Date: 2001-10-16 19:39:15
Message-ID: 003701c1567a$3e9c15e0$6e646464@New6.Travel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mihai Gheorghiu 2001-10-16 19:55:18 User permissions for functions
Previous Message will trillich 2001-10-16 19:24:28 Re: "user"