Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 021019FA38F for ; Tue, 2 Jan 2007 14:50:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 72185-02-3 for ; Tue, 2 Jan 2007 14:50:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9CFC99FA238 for ; Tue, 2 Jan 2007 14:50:31 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l02IoNhT007284; Tue, 2 Jan 2007 13:50:23 -0500 (EST) To: "Jeanna Geier" cc: "Pgsql-Jdbc@Postgresql.Org" Subject: Re: Help with RULES - Please! In-reply-to: References: Comments: In-reply-to "Jeanna Geier" message dated "Tue, 02 Jan 2007 12:24:38 -0600" Date: Tue, 02 Jan 2007 13:50:23 -0500 Message-ID: <7283.1167763823@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/3 X-Sequence-Number: 16368 "Jeanna Geier" writes: > Here is my elementdata.measurement View (as stored in Case Studio): > Create view "elementdata"."measurement" As > ... > And here is the update_measurement RULE (as stored in Case Studio): > CREATE RULE update_measurement AS ON UPDATE > TO elementdata.measurement > DO INSTEAD (UPDATE element SET height = (new.height_lin / (SELECT > ... That rule should certainly trap any attempted update to elementdata.measurement. I suppose the error message is being thrown about some other view ... it's unfortunate that it doesn't tell you which one :-(. Anyway the message definitely indicates an attempted update against some view that has not got an unconditional ON UPDATE DO INSTEAD rule, and this one does. regards, tom lane