A question on triggers

Поиск
Список
Период
Сортировка
От Constantin Teodorescu
Тема A question on triggers
Дата
Msg-id 38AAAD16.C05F47C3@flex.ro
обсуждение исходный текст
Список pgsql-interfaces
I have two tables "inputs" and "outputs" and they hold items and
quantities that are coming and going from a warehouse.

I have defined also another table "stock" that will hold the inventory
of that warehouse.

I have defined triggers on INSERT, UPDATE and DELETE on "inputs" and
"outputs" tables that update acordingly the "stock" table!

What's my problem?

Is there any chance to restrict the direct updates of any user to the
"stock" table?
So that the information in the "stock" table should be updated ONLY by
those triggers?

Thanks in advance,

Constantin Teodorescu
FLEX Consulting Braila, ROMANIA


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

Предыдущее
От: Peter Mount
Дата:
Сообщение: RE: [INTERFACES] invalid lo descriptorc in begin commit fraze
Следующее
От: anmue@gmx.de
Дата:
Сообщение: problem with libpq++