pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeanna Geier <jgeier@apt-cafm.com>
Cc: Pgsql-Jdbc@Postgresql.Org <pgsql-jdbc@postgresql.org>
Subject: Re: Help with RULES - Please!
Date: Tue, 02 Jan 2007 13:50:23 -0500
Message-ID: <7283.1167763823@sss.pgh.pa.us> (raw)
In-Reply-To: <FBEGJLLJBCOMCDBJHIMEAEEDCCAA.jgeier@apt-cafm.com>
References: <FBEGJLLJBCOMCDBJHIMEAEEDCCAA.jgeier@apt-cafm.com>

"Jeanna Geier" <jgeier@apt-cafm.com> 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



view thread (3+ messages)  latest in thread

Message-ID: <7283.1167763823@sss.pgh.pa.us>
Permalink:  ../7283.1167763823@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7283.1167763823@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jgeier@apt-cafm.com
  Subject: Re: Help with RULES - Please!
  In-Reply-To: <7283.1167763823@sss.pgh.pa.us>
  References: <FBEGJLLJBCOMCDBJHIMEAEEDCCAA.jgeier@apt-cafm.com> <7283.1167763823@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox