Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D21F8476003 for ; Wed, 11 Sep 2002 00:40:52 -0400 (EDT) Received: from lucidindia.net (unknown [61.11.73.194]) by postgresql.org (Postfix) with ESMTP id 759774759F5 for ; Wed, 11 Sep 2002 00:40:48 -0400 (EDT) Received: from a4005 ([192.168.1.18]) by lucidindia.net (8.11.6/8.11.6) with SMTP id g8B4ig101550 for ; Wed, 11 Sep 2002 10:14:42 +0530 Message-ID: <003101c2594d$f1b24060$1201a8c0@a4005> From: "shreedhar" To: "Postgres" Subject: Cache Lookup failed Error - while using Triggers Date: Wed, 11 Sep 2002 10:14:41 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/125 X-Sequence-Number: 5664 Hi All, I took the following example to create trigger TABLE CREATE TABLE emp ( empname text, salary integer, last_date timestamp, last_user text); Function emp_stamp() returns OPAQUE DECLARE current_user text; BEGIN -- Check that empname and salary are given IF NEW.empname ISNULL THEN RAISE EXCEPTION ''empname cannot be NULL value''; END IF; IF NEW.salary ISNULL THEN RAISE EXCEPTION ''% cannot have NULL salary'', NEW.empname; ELSE current_user := NEW.empname; END IF -- Who works for us when she must pay for? IF NEW.salary < 0 THEN RAISE EXCEPTION ''% cannot have a negative salary'', NEW.empname; END IF; -- Remember who changed the payroll when NEW.last_date := ''now''; NEW.last_user := NEW.empname; RETURN NEW; END; Trigger CREATE TRIGGER emp_stamp BEFORE INSERT OR UPDATE ON emp FOR EACH ROW EXECUTE PROCEDURE emp_stamp(); If I use the following INSERT Statement INSERT INTO emp (empname,salary, last_date, last_user) VALUES ('sree',1000, '2002-09-11','sreedhar'); I am getting the following Error 'ERROR : fmgr_info : function 1059155 : cahce lookup failed PostgreSQL status : PGRES_FATAL_ERROR' Can any body tell that what is this error. How can I solve this. With Best Regards, Sreedhar Bhaskararaju 1,2nd Main Road, KottuGardens, Chennai - 600 085 Ph : 4475111 Email : shreedhar@lucidindia.net