A question on triggers - Mailing list pgsql-interfaces

From Constantin Teodorescu
Subject A question on triggers
Date
Msg-id 38AAAD16.C05F47C3@flex.ro
Whole thread Raw
List 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 by date:

Previous
From: Peter Mount
Date:
Subject: RE: [INTERFACES] invalid lo descriptorc in begin commit fraze
Next
From: anmue@gmx.de
Date:
Subject: problem with libpq++