X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id ED4CBEFF9C for ; Fri, 6 Jun 2003 20:11:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 82611-07 for ; Fri, 6 Jun 2003 20:11:29 +0000 (GMT) Received: from trece.agalis.net (trece.agalis.net [207.173.203.233]) by svr1.postgresql.org (Postfix) with SMTP id A583BEFF9B for ; Fri, 6 Jun 2003 20:11:26 +0000 (GMT) Received: (qmail 12008 invoked by uid 506); 6 Jun 2003 20:16:15 -0000 Received: from bschneider@microdynamics.cc by trece by uid 503 with qmail-scanner-1.15 (uvscan: v4.1.60/v4252. Clear:. Processed in 0.804552 secs); 06 Jun 2003 20:16:15 -0000 Received: from unknown (HELO micronpc) (207.189.110.29) by trece.agalis.net with SMTP; 6 Jun 2003 20:16:14 -0000 Reply-To: From: "Ben Schneider" To: "Postgres Admin List" Subject: Help! Error when calling a function Date: Fri, 6 Jun 2003 13:12:50 -0700 Message-ID: <000001c32c68$05a00560$5011a8c0@micronpc> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C32C2D.5942B400" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=0.6 tagged_above=0.0 required=5.0 tests=HTML_50_60, HTML_MESSAGE X-Spam-Level: * X-Archive-Number: 200306/41 X-Sequence-Number: 9032 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C32C2D.5942B400 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I am receiving the following error when I call a simple function: =20 Warning: pg_exec() [function.pg-exec ]: Query failed: ERROR: fmgr_info: function 3036754: cache lookup failed . in /var/www/html/cmwareben/db_pgsql.php on line 93 Database error: Invalid SQL: SELECT note_num, fn_concat(rtrim(substring(note,0,40)), '...') AS note FROM feedback_notes ORDER BY note_num PostgreSQL Error: 1 (ERROR: fmgr_info: function 3036754: cache lookup failed ) Session halted. =20 Here is the fn_concat function that I am calling =20 CREATE FUNCTION "fn_concat"(text, text) RETURNS text AS 'begin return $1 || $2; end;' LANGUAGE 'plpgsql' =20 I have the same function in another DB on the same server and it is working fine. The only change I made to the DB was to drop the feedback_notes table and recreate it with an additional column (New column =3D 'status'). The select was working before I made this change and now it doesn't. No changes were made to my PHP scripts at all! I hadn't don't even call the new column in my select. =20 What the heck happened? =20 Ben ------=_NextPart_000_0001_01C32C2D.5942B400 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am receiving the following error when I call a simple function:

 

Warning: pg_e= xec() [function.pg-exec]: Que= ry failed: ERROR: fmgr_info: function 3036754: cache lookup failed . in /var/www/html/cmwareben/db_pgsql.php = on line 93
Database error: Invalid SQL: SELECT note_num, fn_concat(rtrim(substring(note,0,40)), '...') AS note FROM= feedback_notes ORDER BY note_num
PostgreSQL Error: 1 (ERROR: = fmgr_info: function 3036754: cache lookup failed )
Session halted.

 

Here is the fn_concat function that I am calling

 

CREATE FUNCTION "fn_concat"(text, text) RETURN= S text AS 'begin
return $1 || $2;
end;' LANGUAGE 'plpgsql'

 

I have the same function in another DB on the same server and it is working fine. The only change I made to the DB was to drop the fe= edback_notes table and recreate it with an additional column (New column =3D ‘stat= us’). The select was working before I made this change and now it doesn’t. = No changes were made to my PHP scripts at all! I hadn’t don’t even call the new column in my select.

 

What the heck happened?

 

Ben

------=_NextPart_000_0001_01C32C2D.5942B400--