From: Constantin Teodorescu <teo@flex.ro>
To: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Subject: A question on triggers
Date: Wed, 16 Feb 2000 15:58:46 +0200
Message-ID: <38AAAD16.C05F47C3@flex.ro> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: teo@flex.ro
Subject: Re: A question on triggers
In-Reply-To: <38AAAD16.C05F47C3@flex.ro>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox