X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 87201DAFC1 for ; Wed, 26 Oct 2005 20:46:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45327-04 for ; Wed, 26 Oct 2005 23:46:04 +0000 (GMT) Received: from rhino.esc1.com (dpc67142225134.direcpc.com [67.142.225.134]) by svr1.postgresql.org (Postfix) with ESMTP id 7C298DAFC6 for ; Wed, 26 Oct 2005 20:46:00 -0300 (ADT) Received: from rhino.esc1.com (localhost.localdomain [127.0.0.1]) by rhino.esc1.com (8.12.11/8.12.11) with ESMTP id j9QNjTth017594 for ; Wed, 26 Oct 2005 19:45:31 -0400 Received: from localhost (localhost [[UNIX: localhost]]) by rhino.esc1.com (8.12.11/8.12.11/Submit) id j9QNjSdC017586 for pgsql-general@postgresql.org; Wed, 26 Oct 2005 19:45:28 -0400 From: Terry Lee Tucker Organization: Enhanced Solutions Computing To: Postgre General Subject: Re: Error Message Date: Wed, 26 Oct 2005 19:45:19 -0400 User-Agent: KMail/1.5.3 References: <03a301c5da6e$a20b6280$ac1d4318@OWNER> <11706.1130361821@sss.pgh.pa.us> <041401c5da84$7429ec90$ac1d4318@OWNER> In-Reply-To: <041401c5da84$7429ec90$ac1d4318@OWNER> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510261945.19824.terry@esc1.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.052 required=5 tests=[AWL=0.002, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/1678 X-Sequence-Number: 85906 Bob, You cannot pass argments to trigger functions. You can to other types of functions, but not functions used as triggers. Arguments are passed regarding the old and new records and other built in variables regarding what kind of operation is going on, but all of that is "unseen". They must be created as in: CREATE TRIGGER trig1 AFTER INSERT ON process FOR EACH ROW EXECUTE PROCEDURE base(); ^^^^^^ Note: no argument. On Wednesday 26 October 2005 07:24 pm, Bob Pawley saith: > I'm not sure what you mean. > > base(int4) is the name of the function that I want to call. It follows the > format of an example in a Postgresql book I use (or perhaps misuse). > > Are you saying that I need to redo the function??? > > Bob > ----- Original Message ----- > From: "Tom Lane" > To: "Bob Pawley" > Cc: "Postgre General" > Sent: Wednesday, October 26, 2005 2:23 PM > Subject: Re: [GENERAL] Error Message > > > Bob Pawley writes: > >> The function name is listed under Functions as - base(int4) > > > > Trigger functions cannot take any explicit parameters. > > > > regards, tom lane > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 5: don't forget to increase your free space map settings > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly