Re: Re-write rules on views

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Rip <rip(at)onlineinfo(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re-write rules on views
Date: 2002-02-27 23:28:48
Message-ID: 200202272328.g1RNSmW26497@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Rip <rip(at)onlineinfo(dot)net> writes:
> > The docs seem slim in this department.. what is the proper
> > syntax for an update to a view with multiple tables?
>
> I think you are looking for a multiple-action rule. Just put square
> brackets, or parens if you prefer, around the list of action queries.

I recommend parens. Brackets are going away in 7.3. TODO has:

* Remove brackets as multi-statement rule grouping, must use parens

and I will attack that easy one soon. :-)

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-02-27 23:39:47 Re: abnormal exits: what am I overlooking?
Previous Message Arguile 2002-02-27 23:21:34 Re: Drawing databases