Re: Deprecating RULES - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Deprecating RULES
Date
Msg-id CAM-w4HNVrkg3yJ3dkWDPxiDMqH2bO_gcN49RpVORSwgBSS1u1g@mail.gmail.com
Whole thread Raw
In response to Re: Deprecating RULES  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Deprecating RULES  (Peter Geoghegan <peter@2ndquadrant.com>)
Re: Deprecating RULES  (Simon Riggs <simon@2ndQuadrant.com>)
Re: Deprecating RULES  (Hannu Krosing <hannu@krosing.net>)
List pgsql-hackers
On Mon, Oct 15, 2012 at 8:00 AM, Simon Riggs <simon@2ndquadrant.com> wrote:
> Please can anyone show me the SQL for a rule that cannot be written as
> a view or a trigger? I do not believe such a thing exists and I will
> provide free beer to the first person that can prove me wrong.

Being written as a view doesn't help you because views use rules. I
repeat, the very fact that we need rules to implement views prove
rules are necessary for some purposes.

-- 
greg



pgsql-hackers by date:

Previous
From: Shigeru HANADA
Date:
Subject: Re: proposal - assign result of query to psql variable
Next
From: Pavel Stehule
Date:
Subject: Re: proposal - assign result of query to psql variable