Re: Rules WHERE condition - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Rules WHERE condition
Date
Msg-id 20041117164922.GA4626@winnie.fuhr.org
Whole thread Raw
In response to Rules WHERE condition  (Robert Fitzpatrick <robert@webtent.com>)
Responses Re: Rules WHERE condition
List pgsql-general
On Wed, Nov 17, 2004 at 11:20:41AM -0500, Robert Fitzpatrick wrote:

> I have a view that used union all to merge three tables together. I was
> hoping to create a rule, one for each table using the WHERE condition of
> the rule to determine which table gets updated. Is this possible?

See the CREATE RULE documentation:

http://www.postgresql.org/docs/7.4/static/sql-createrule.html

In particular, read the last paragraph of the Description section,
the one that begins, "There is a catch if you try to use conditional
rules for view updates...."

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Tsearch2 and Unicode?
Next
From: Robert Fitzpatrick
Date:
Subject: Re: Rules WHERE condition