On 31/01/2018 18:02, David G. Johnston wrote:
We have used RULEs to handle insertions / deletions from non-trivial views. And I can give this example if anyone wants.
Also we have used views to ignite smth like :
CREATE RULE account_credit_ins AS
ON INSERT TO account_credit DO INSTEAD SELECT public.rule_disable('INSERT'::text) AS rule_disable;
where rule_disable is a function that just raises an exception with some diagnostic text.
We dont make heavey use of RULEs, but I think they have their place.
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt