Re: Rule - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Rule
Date
Msg-id 20011126064718.Q10034-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Rule  (sara_software@hotmail.com (sara_software))
List pgsql-general
On 25 Nov 2001, sara_software wrote:

> How can a rule call a function?
>
> I have found that I can do this:
>
> CREATE RULE a_rule
> AS ON INSERT TO a_table
> DO INSTEAD  INSERT into other_table(myfunction());
>
> actually I don't have any need for this test scenerio what I want to
> do is say:
>
> DO INSTEAD function();
> where all insert changes and testing will be carried out.
does DO INSTEAD select function();
work?



pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: How to address field names in a join query
Next
From: Martín Marqués
Date:
Subject: Re: Rule