On Apr 25, 2005, at 11:37 PM, Tom Lane wrote:
(I have been thinking more and more that we should consider a wholesale
redesign of the rule mechanism, because it sure seems not to answer the
needs/expectations of a lot of people out there. But I am not talking
about marginal questions like what INSTEAD means --- it seems to me that
there's some very fundamental disconnect between what the rewriter does
and what people want. I don't have any specific substitute proposal,
which is why I've not brought it up...)
I think that people are likely to confuse rules and triggers. The other issue is that they are not documented in such a way as to make them simple to understand. But beyond that, although I like Neil's suggestion better, rules work pretty well for what I need them for--the ability to INSERT, UPDATE, or DELETE on a view.
Come to my presentation at OSCON this summer to see what I'm doing with them. :-)
Cheers,
David
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
http://archives.postgresql.org