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 B21DBF0091 for ; Sat, 7 Jun 2003 16:18:23 +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 33487-09 for ; Sat, 7 Jun 2003 16:18:13 +0000 (GMT) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by svr1.postgresql.org (Postfix) with ESMTP id DE29EF0085 for ; Sat, 7 Jun 2003 16:18:12 +0000 (GMT) Received: from [192.168.5.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.0.6) with ESMTP-TLS id 1790104; Sat, 07 Jun 2003 08:54:23 -0700 Message-ID: <3EE21008.2060201@joeconway.com> Date: Sat, 07 Jun 2003 09:17:12 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: bschneider@microdynamics.cc Cc: Postgres Admin List Subject: Re: Help! Error when calling a function References: <000001c32c68$05a00560$5011a8c0@micronpc> In-Reply-To: <000001c32c68$05a00560$5011a8c0@micronpc> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/78 X-Sequence-Number: 9069 Ben Schneider wrote: > 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. I can't explain the exact cause in this case, because I don't see right off how it fits, but cache lookup failure is typically caused by dropping and recreating some object that is referenced somewhere else. Are there views referencing that table somewhere in this? BTW, you could have done ALTER TABLE ADD COLUMN. In any case, this might fix it: CREATE OR REPLACE FUNCTION "fn_concat"(text, text) RETURNS text AS 'begin return $1 || $2; end;' LANGUAGE 'plpgsql'; But I'm not sure why you'd want to use plpgsql for that; I'd use: DROP FUNCTION "fn_concat"(text, text); CREATE OR REPLACE FUNCTION "fn_concat"(text, text) RETURNS text AS 'SELECT $1 || $2' LANGUAGE 'sql'; HTH, Joe