Curt Sampson <[EMAIL PROTECTED]> writes: > ERROR: Cannot insert into a view without an appropriate rule
>> Perhaps the error message could be phrased better --- any thoughts? > Maybe a message that says something along the lines of "cannot insert > into views; you need to override this behaviour with a rule"? Well, to my mind that's what the error message says now. The reason it didn't help you was that you *did* have a rule ... but it didn't completely override the view insertion. I'm not sure how to phrase a more useful message. Note that the place where the error can be detected doesn't have any good way to know that a non-INSTEAD rule was in fact processed, so we can't say anything quite as obvious as "You needed to use INSTEAD in your rule, luser". Can we cover both the no-rule-at-all case and the had-a-rule-but-it-wasn't- INSTEAD case in a single, reasonably phrased error message? (Just to make life interesting, there's also the case where you made an INSTEAD rule but it's conditional.) > Also, some examples in the manual would be helpful. Aren't there several already? But feel free to contribute more... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster