About triggers

From: Roberto Moreda <moreda(at)sanluis(dot)net>
To: gpsql-general <pgsql-general(at)hub(dot)org>
Subject: About triggers
Date: 1999-08-13 09:34:22
Message-ID: 19990813113422.A1964@sanluis.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I do the following :

CREATE FUNCTION testf()
RETURNS bool
AS
'INSERT INTO TEST VALUES(\'Hi\');
...
...
SELECT true;'
LANGUAGE 'sql';

then :

CREATE TRIGGER syn_section_insert
AFTER INSERT ON SECTION FOR EACH ROW
EXECUTE PROCEDURE testf();

... and I obtain

ERROR: CreateTrigger: function testf () does not exist

but function exists...

What's the problem?

TIA.

Roberto

--
Roberto Moreda
Resp. Dpto. Informática Handem/San Luis
Tlf +34 981 779000
Fax +34 981 779022
Pol. Piadela Sur, Autovía A6 Sal.567
15300 Betanzos (A Coruña) - España

Browse pgsql-general by date

  From Date Subject
Next Message amy cheng 1999-08-13 09:46:47 Re: [GENERAL] v6.5 foreign key trigger reposted with details
Previous Message Stuart Rison 1999-08-13 08:40:02 Re: Select Maximum Question