From: Albert REINER <areiner@tph.tuwien.ac.at>
To: PostgreSQL-SQL <pgsql-sql@postgreSQL.org>
Subject: RULE ... TO table.column
Date: Sun, 15 Apr 2001 23:52:57 +0200
Message-ID: <20010415235257.A2630@frithjof> (raw)
Saluton,
I am using
,----
| SELECT version();
| version
| --------------------------------------------------------------------
| PostgreSQL 7.0.2 on i586-pc-linux-gnulibc1, compiled by gcc 2.95.1
| (1 row)
`----
, and upgrading to 7.1 is not possible (it was hard enough to get the
admin to upgrade from 6.5.3).
While the docs say that I can create a rule on table.column, I get the
error message:
,----
| litdb=> create rule no_update_on_journal_title__rl as
| litdb-> on update to journal.title do instead nothing;
| ERROR: attribute level rules currently not supported
`----
Am I doing something wrong here, or do I have to work around this via
... where old.title = new.title ... (would this work?), or should I
use a before-trigger?
Are ``attribute level rules'' supported in 7.1 (so I can at least put
a note into the code)?
Thanks in advance,
Albert.
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: areiner@tph.tuwien.ac.at
Subject: Re: RULE ... TO table.column
In-Reply-To: <20010415235257.A2630@frithjof>
References: <20010415235257.A2630@frithjof>
* 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