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 8CEEA9FB315; Thu, 10 Aug 2006 00:41:07 -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 29464-08; Thu, 10 Aug 2006 03:40:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B7F1E9FB2D5; Thu, 10 Aug 2006 00:40:58 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k7A3evNv009831; Wed, 9 Aug 2006 23:40:57 -0400 (EDT) To: PostgreSQL Admin cc: Lista PG-PHP , pgsql-sql@postgresql.org Subject: Re: [SQL] PL/pgSQL and PHP 5 In-reply-to: <44DA9BA3.2020801@productivitymedia.com> References: <20060731041644.32247.qmail@web56610.mail.re3.yahoo.com> <7F7548C8-249E-44E2-8205-6C055671DA19@pgedit.com> <44DA9BA3.2020801@productivitymedia.com> Comments: In-reply-to PostgreSQL Admin message dated "Wed, 09 Aug 2006 22:36:19 -0400" Date: Wed, 09 Aug 2006 23:40:57 -0400 Message-ID: <9830.1155181257@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/9 X-Sequence-Number: 3580 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