Multiple rule action syntax - Mailing list pgsql-general

From Constantin Teodorescu
Subject Multiple rule action syntax
Date
Msg-id 3641AEA9.C2723EED@flex.ro
Whole thread Raw
List pgsql-general
Hello,

in PostgreSQL 6.4 enhancements I found :

New rewrite system fixes many problems with rules and views(Jan)
  * Multiple rule actions are now supported, surrounded by parentheses

Could you give me please an example for this.

I want to define a rule on a table update that would update other two
tables, something like :

create rule misc_upd as on update to misc do
   (update stoc set stoc=stoc-old.cant where cod=old.cod),
   (update stoc set stoc=stoc+new.cant where cod=new.cod);

the above syntax doesn't work

Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

pgsql-general by date:

Previous
From: Juan Carlos Castro y Castro
Date:
Subject: Re: [GENERAL] November 4th, 1998: PostgreSQL v6.4 Released
Next
From: Mario Filipe
Date:
Subject: RE: [GENERAL] age('now',date::datetime)