Re: Problem with delete trigger: how to allow only triggers to delete a row?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Problem with delete trigger: how to allow only triggers to delete a row?
Дата
Msg-id 20081010183920.GD4194@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Problem with delete trigger: how to allow only triggers to delete a row?  ("Christopher Maier" <maier@med.unc.edu>)
Список pgsql-sql
Christopher Maier wrote:

> Correct?  That sounds like it would work.  If at all possible, I'd like 
> to keep the "interface" the same for all my tables, though (i.e., users 
> don't have to be concerned with whether they can do regular SQL deletes, 
> or if they have to call a special function).

Hmm, maybe you can turn a regular DELETE into a function call by using
an INSTEAD rule, but I'm not sure.  That way they would just do a plain
DELETE and the sec-def function would be called instead.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Christopher Maier"
Дата:
Сообщение: Re: Problem with delete trigger: how to allow only triggers to delete a row?
Следующее
От: Aarni Ruuhimäki
Дата:
Сообщение: SELECT multiple MAX(id)s ?