Re: TRIGGER

From: "rob" <rob(at)cabrion(dot)com>
To: "HC Mercy T(dot) de Vera" <mercy(at)edsamail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: TRIGGER
Date: 2001-01-18 14:39:47
Message-ID: 004801c0815c$8473cd90$4100fd0a@cabrion.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The docs are not very clear, but I think that trigger functions must all
return opaque.

--rob

----- Original Message -----
From: "HC Mercy T. de Vera" <mercy(at)edsamail(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Wednesday, January 17, 2001 10:11 PM
Subject: TRIGGER

>
> I'm having a problem with creating triggers.
>
> Here's my code:
>
> CREATE FUNCTION copy_email(varchar)
> RETURNS varchar
> AS 'SELECT email AS email INTO temp_agegroup FROM basic_information;'
> LANGUAGE 'sql';
>
> OUPTPUT: CREATE <--- successful, right?
>
>
>
> CREATE TRIGGER trig_test
> AFTER INSERT OR UPDATE
> ON basic_information
> FOR EACH ROW
> EXECUTE PROCEDURE copy_email(); <--- also tried copy_email(varchar),
> copy_email(test), copy_email('test')
>
> OUTPUT: ERROR: function copy_email does not exist
>
>
> Please help me..
> Thanks!
>
>

In response to

  • TRIGGER at 2001-01-18 03:11:58 from HC Mercy T. de Vera

Browse pgsql-general by date

  From Date Subject
Next Message Tony Grant 2001-01-18 14:47:55 RE: Why is there so much MySQL bashing???
Previous Message Andrew Sullivan 2001-01-18 13:56:07 Re: Re: postgresql.conf ignored