Re: Deprecating RULES - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Deprecating RULES
Date
Msg-id CA+U5nMKT17ysFr3aiX15-3FUfMpxDsCZBQx8v17oHOp5WpxkSg@mail.gmail.com
Whole thread Raw
In response to Re: Deprecating RULES  (Greg Stark <stark@mit.edu>)
Responses Re: Deprecating RULES  (Andres Freund <andres@2ndquadrant.com>)
Re: Deprecating RULES  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On 15 October 2012 11:41, Greg Stark <stark@mit.edu> wrote:
> 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.

No, it just means there is some aspect of similar underlying infrastructure.

Denial of free beer looks like proof to me...

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Patch: forcing object owner in TOC file
Next
From: Andres Freund
Date:
Subject: Re: Deprecating RULES