Received: from flex.flex.ro ([193.230.255.4]) by hub.org (8.9.3/8.9.3) with ESMTP id JAA08581 for ; Wed, 16 Feb 2000 09:01:24 -0500 (EST) (envelope-from teo@flex.ro) Received: from flex.ro (IDENT:teo@teo.flex.ro [193.230.255.3]) by flex.flex.ro (8.9.3/8.9.3) with ESMTP id RAA18168 for ; Wed, 16 Feb 2000 17:02:12 +0200 Sender: teo@flex.flex.ro Message-ID: <38AAAD16.C05F47C3@flex.ro> Date: Wed, 16 Feb 2000 15:58:46 +0200 From: Constantin Teodorescu X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i586) X-Accept-Language: en MIME-Version: 1.0 To: PostgreSQL Interfaces Subject: A question on triggers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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