pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ben Schneider <bschneider@microdynamics.cc>
To: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: Help! Error when calling a function
Date: Fri, 6 Jun 2003 13:12:50 -0700
Message-ID: <000001c32c68$05a00560$5011a8c0@micronpc> (raw)

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

 

Warning: pg_exec() [function.pg-exec <http://www.php.net/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.

 

Here is the fn_concat function that I am calling

 

CREATE FUNCTION "fn_concat"(text, text) RETURNS 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 feedback_notes table
and recreate it with an additional column (New column = '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.

 

What the heck happened?

 

Ben

view thread (3+ messages)  latest in thread

Message-ID: <000001c32c68$05a00560$5011a8c0@micronpc>
Permalink:  ../000001c32c68$05a00560$5011a8c0@micronpc/
Also on:    postgresql.org/message-id/000001c32c68$05a00560$5011a8c0@micronpc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bschneider@microdynamics.cc
  Subject: Re: Help! Error when calling a function
  In-Reply-To: <000001c32c68$05a00560$5011a8c0@micronpc>
  References: <000001c32c68$05a00560$5011a8c0@micronpc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox