trigger or function?

Поиск
Список
Период
Сортировка
От adeon
Тема trigger or function?
Дата
Msg-id 200306140237.01255.adeon@tlen.pl
обсуждение исходный текст
Ответы Re: trigger or function?  (weigelt@metux.de)
Список pgsql-general
Hi,

There are many users in a database I'm making.
There is a table in the database, that has a user_id column.
Every user is able to insert, update or delete a record from this table,
but users are only allowed to execute those operations only on their own
records (that ones that have right user_id). How should be user_id checking
performed - in trigger or should I create a functions for every operation
(insert, delete and update)??


adeon

PS: Sorry for my English...


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

Предыдущее
От: Kaare Rasmussen
Дата:
Сообщение: Re: [HACKERS] SAP and MySQL ... [and Benchmark]
Следующее
От: "Matthew Nuzum"
Дата:
Сообщение: Re: Postgres performance comments from a MySQL user