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 AB978DAEEA for ; Wed, 26 Oct 2005 20:51:59 -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 41830-07 for ; Wed, 26 Oct 2005 23:51:42 +0000 (GMT) Received: from asmodeus.mcnaught.org (sp-260-1.net4.netcentrix.net [4.21.254.118]) by svr1.postgresql.org (Postfix) with ESMTP id E15E0DAFA7 for ; Wed, 26 Oct 2005 20:51:43 -0300 (ADT) Received: from [4.21.254.71] (helo=Douglas-McNaughts-Powerbook.local) by asmodeus.mcnaught.org with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1EUv3X-0000Jo-Ke; Wed, 26 Oct 2005 19:51:43 -0400 To: Bob Pawley Cc: Tom Lane , Postgre General Subject: Re: Error Message References: <03a301c5da6e$a20b6280$ac1d4318@OWNER> <11706.1130361821@sss.pgh.pa.us> <041401c5da84$7429ec90$ac1d4318@OWNER> From: Douglas McNaught Date: Wed, 26 Oct 2005 19:51:27 -0400 In-Reply-To: <041401c5da84$7429ec90$ac1d4318@OWNER> (Bob Pawley's message of "Wed, 26 Oct 2005 16:24:46 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.065 required=5 tests=[AWL=0.015, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/1679 X-Sequence-Number: 85907 Bob Pawley writes: > 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??? You need to make it a function that takes zero arguments. Trigger functions take their arguments in a weird way, not via the usual mechanism. See the docs. -Doug