Re: Rules WHERE condition

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Robert Fitzpatrick <robert(at)webtent(dot)com>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Rules WHERE condition
Date: 2004-11-17 16:49:22
Message-ID: 20041117164922.GA4626@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Fitzpatrick 2004-11-17 17:49:30 Re: Rules WHERE condition
Previous Message Oleg Bartunov 2004-11-17 16:31:55 Re: Tsearch2 and Unicode?