
September 3rd, 2012, 01:54 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: Germany
|
|
RAISE is a PL/pgSQL command. Rules are written in SQL, so you cannot use an PL/pgSQL in there.
From The Manual:
Quote: | Originally Posted by The fine manual Valid commands are SELECT, INSERT, UPDATE, DELETE, or NOTIFY. |
__________________
I will not read nor answer questions where the SQL code is messy and not formatted properly using [code] tags.
http://forums.devshed.com/misc.php?do=bbcode#code
Tips on how to ask better questions:
http://tkyte.blogspot.de/2005/06/how-to-ask-questions.html
http://wiki.postgresql.org/wiki/SlowQueryQuestions
http://catb.org/esr/faqs/smart-questions.html
|