470,647 Members | 1,178 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

RULE Problem with pseudo relations OLD/NEW

I use Postgresql 7.2.1 on Debian Linux 3.0r1.
I have tried to create a RULE exactly as described in the "Postgresql Programmers Manual". Code:

CREATE RULE foo_rule AS ON UPDATE TO foo WHERE  NEW.footxt  != OLD.footxt

Then I receive the error message:

ERROR:  parser: parse error at or near "NEW"

I tried different ways, but it never created the rule. One time it gave me the error message, that the relation *NEW* doesn't exist...
What's wrong? How can I work with the pseudo relations NEW or OLD, so that postgresql accepts it?

Thanks in advance for any help!

Kurt Gerber
Jul 19 '05 #1
0 1408

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ferrari, Eduardo | last post: by
1 post views Thread by Jef De Rycke | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.