Re: Rule

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: sara_software <sara_software(at)hotmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Rule
Date: 2001-11-26 14:47:45
Message-ID: 20011126064718.Q10034-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

  • Rule at 2001-11-26 00:30:36 from sara_software

Browse pgsql-general by date

  From Date Subject
Next Message Martín Marqués 2001-11-26 14:59:02 Re: Rule
Previous Message Marc G. Fournier 2001-11-26 14:36:20 Re: [HOSTING QUESTION] - Advice on a decent PostgreSQL