Sequence permission suggestion

Поиск
Список
Период
Сортировка
От Aasmund Midttun Godal
Тема Sequence permission suggestion
Дата
Msg-id 20011126005514.10436.qmail@ns.krot.org
обсуждение исходный текст
Ответы Re: Sequence permission suggestion  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Aasmund Midttun Godal"
Дата:
Сообщение: Permissions on views bug.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Sequence permission suggestion