From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kyle <kyle@actarg.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Rule not invoked in 7.1
Date: Wed, 24 Jan 2001 23:53:29 -0500
Message-ID: <26488.980398409@sss.pgh.pa.us> (raw)
In-Reply-To: <3A6F53C8.CA9FE05C@actarg.com>
References: <3A6F53C8.CA9FE05C@actarg.com>
Kyle <kyle@actarg.com> writes:
> ERROR: Cannot update a view without an appropriate rule.
7.1 insists that you provide an *unconditional* DO INSTEAD rule
for a view. What do you think was happening on your old database
when the "where old.status = 'appr'" clause wasn't satisfied?
Nothing good I'm afraid.
If you really do need conditional rules, you can satisfy the check
by writing one unconditional DO INSTEAD NOTHING rule and then one
or more conditional non-INSTEAD rules. But you should think carefully
about what you expect to happen when you use a conditional rule.
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, kyle@actarg.com
Subject: Re: Rule not invoked in 7.1
In-Reply-To: <26488.980398409@sss.pgh.pa.us>
References: <3A6F53C8.CA9FE05C@actarg.com> <26488.980398409@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