pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: rob <rob@cabrion.com>
To: HC Mercy T. de Vera <mercy@edsamail.com>
To: pgsql-general@postgresql.org
Subject: Re: TRIGGER
Date: Thu, 18 Jan 2001 09:39:47 -0500
Message-ID: <004801c0815c$8473cd90$4100fd0a@cabrion.org> (raw)
References: <NEBBIDAHGLFOPBAPHEIGOEEPCAAA.mercy@edsamail.com>

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@edsamail.com>
To: <pgsql-general@postgresql.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!
>
>




view thread (47+ messages)  latest in thread

Message-ID: <004801c0815c$8473cd90$4100fd0a@cabrion.org>
Permalink:  ../004801c0815c$8473cd90$4100fd0a@cabrion.org/
Also on:    postgresql.org/message-id/004801c0815c$8473cd90$4100fd0a@cabrion.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rob@cabrion.com, mercy@edsamail.com
  Subject: Re: TRIGGER
  In-Reply-To: <004801c0815c$8473cd90$4100fd0a@cabrion.org>
  References: <NEBBIDAHGLFOPBAPHEIGOEEPCAAA.mercy@edsamail.com> <004801c0815c$8473cd90$4100fd0a@cabrion.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox