From: HC Mercy T. de Vera <mercy@edsamail.com>
To: pgsql-general@postgresql.org
Subject: TRIGGER
Date: Wed, 17 Jan 2001 19:11:58 -0800
Message-ID: <NEBBIDAHGLFOPBAPHEIGOEEPCAAA.mercy@edsamail.com> (raw)
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!
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: mercy@edsamail.com
Subject: Re: TRIGGER
In-Reply-To: <NEBBIDAHGLFOPBAPHEIGOEEPCAAA.mercy@edsamail.com>
References: <NEBBIDAHGLFOPBAPHEIGOEEPCAAA.mercy@edsamail.com>
* 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