X-Original-To: pgsql-php-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id CB55A9FB315; Thu, 10 Aug 2006 00:52:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 54249-01; Thu, 10 Aug 2006 03:52:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from ns2.instrumentalyst.com (blk-222-55-203.eastlink.ca [24.222.55.203]) by postgresql.org (Postfix) with ESMTP id 721A19FB313; Thu, 10 Aug 2006 00:52:45 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ns2.instrumentalyst.com (Postfix) with ESMTP id 8DF4D7F7; Thu, 10 Aug 2006 00:48:02 -0300 (ADT) X-Virus-Scanned: amavisd-new at instrumentalyst.com Received: from ns2.instrumentalyst.com ([127.0.0.1]) by localhost (ns2.instrumentalyst.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IOE-bfM576XE; Thu, 10 Aug 2006 00:47:54 -0300 (ADT) Received: from [192.168.2.2] (unknown [68.56.170.170]) by ns2.instrumentalyst.com (Postfix) with ESMTP id 73A5661E; Thu, 10 Aug 2006 00:47:54 -0300 (ADT) Message-ID: <44DAAD83.3060604@productivitymedia.com> Date: Wed, 09 Aug 2006 23:52:35 -0400 From: PostgreSQL Admin User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: Tom Lane CC: Lista PG-PHP , pgsql-sql@postgresql.org Subject: Re: [SQL] PL/pgSQL and PHP 5 References: <20060731041644.32247.qmail@web56610.mail.re3.yahoo.com> <7F7548C8-249E-44E2-8205-6C055671DA19@pgedit.com> <44DA9BA3.2020801@productivitymedia.com> <9830.1155181257@sss.pgh.pa.us> In-Reply-To: <9830.1155181257@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200608/11 X-Sequence-Number: 3582 Tom Lane wrote: > PostgreSQL Admin writes: > >> CREATE OR REPLACE FUNCTION insert_staff_b >> (insert_firstname varchar) >> RETURNS VOID AS >> ... >> Still I get this error: >> Warning: pg_query(): Query failed: ERROR: function >> insert_staff_b(character varying) does not exist >> > > Sure looks like it oughta work. One possibility is that you created the > function in a schema that isn't part of the application's search path. > Other than that, look for *really* silly errors, like not creating the > function in the same database the application is connected to ... > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > > I never thought of that. I look into it. Thanks, J