Received: from racerx.cabrion.com (racerx.cabrion.com [166.82.231.4]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0IEZu057260 for ; Thu, 18 Jan 2001 09:35:56 -0500 (EST) (envelope-from rob@cabrion.com) Received: from cabrionhome (gso163-25-153.triad.rr.com [24.163.25.153]) by racerx.cabrion.com (8.8.7/8.8.7) with SMTP id JAA05092; Thu, 18 Jan 2001 09:36:09 -0500 Message-ID: <004801c0815c$8473cd90$4100fd0a@cabrion.org> From: "rob" To: "HC Mercy T. de Vera" , References: Subject: Re: TRIGGER Date: Thu, 18 Jan 2001 09:39:47 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200101/827 X-Sequence-Number: 3029 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" To: 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! > >