From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bhuvan A <bhuvansql@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Compatibility Issue of CREATE RULE in 7.2
Date: Wed, 22 May 2002 09:55:35 -0400
Message-ID: <23741.1022075735@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.20.0205221742400.31195-100000@Larry>
References: <Pine.LNX.4.20.0205221742400.31195-100000@Larry>
Bhuvan A <bhuvansql@yahoo.com> writes:
> bhuvan=# CREATE RULE rule_test_rule AS ON insert TO rule_test do
> delete from rule_test where key = new.key;
You could probably make this work by doing it in a BEFORE INSERT
trigger, instead of a 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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, bhuvansql@yahoo.com
Subject: Re: Compatibility Issue of CREATE RULE in 7.2
In-Reply-To: <23741.1022075735@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