Skip site navigation (1) Skip section navigation (2)

Re: Compatibility Issue of CREATE RULE in 7.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bhuvan A <bhuvansql(at)yahoo(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Compatibility Issue of CREATE RULE in 7.2
Date: 2002-05-22 13:55:35
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-sql
Bhuvan A <bhuvansql(at)yahoo(dot)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

In response to

pgsql-sql by date

Next:From: Tom LaneDate: 2002-05-22 13:56:49
Subject: Re: Bug with ORDER BY expression [ ASC | DESC ] ?
Previous:From: Tille, AndreasDate: 2002-05-22 13:25:13
Subject: Re: Turning column into row

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group