Sequence permission suggestion - Mailing list pgsql-sql

From Aasmund Midttun Godal
Subject Sequence permission suggestion
Date
Msg-id 20011126005514.10436.qmail@ns.krot.org
Whole thread Raw
Responses Re: Sequence permission suggestion  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Today it seems that the following  rules governs the permissions of sequences:

SELECT - allow you to select * from seq_name;
INSERT - no effect
UPDATE - allows nextval, setval - and yes implicitly currval
DELETE - no effect

I suggest nextval is moved into the insert permission as this is quite natural - normally you only need to call nextval
whenyou insert a new value into a table. I think this issue is important because setting the sequence to a value lower
thanthe max value in a table will cause errors for other users.
 

Aasmund Midttun Godal

aasmund@godal.com - http://www.godal.com/
+47 40 45 20 46


pgsql-sql by date:

Previous
From: "Aasmund Midttun Godal"
Date:
Subject: Permissions on views bug.
Next
From: Tom Lane
Date:
Subject: Re: Sequence permission suggestion