ERROR: fmgr_info: function 24126: cache lookup failed - Mailing list pgsql-general

From Guilherme Silva
Subject ERROR: fmgr_info: function 24126: cache lookup failed
Date
Msg-id !~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAAchv9IrPe1RGyqQAwTwTX38KAAAAQAAAAwuXE856fm0WIwaMCtFYXwQEAAAAA@infosites.com.br
Whole thread Raw
List pgsql-general
Hi.
Even after reading many messages in this list, I still have this
problem, so I ask for help. In this case, recreating the trigger didn't
fix the problem.

I have to timestamp records on every update or insert. I did the
following steps in this order:
1) created this table:
CREATE TABLE "tb_cargo" (
   "id_cargo" int4 DEFAULT nextval('"sqnc_cargo"'::text) NOT NULL,
   "id_familiacargo" int4 NOT NULL,
   "ds_cargo" varchar(40) NOT NULL,
   "dt_alteracao" timestamp,
   CONSTRAINT "PK_cargo" PRIMARY KEY ("id_cargo")
);

2) created this function:
CREATE FUNCTION "atualizadtalteracaorefs"() RETURNS OPAQUE AS 'begin
NEW.dt_alteracao:=CURRENT_TIMESTAMP;
return NEW;
end;
' LANGUAGE 'plpgsql'
 The table

3) created this trigger:
CREATE TRIGGER "ta_tb_cargo" BEFORE INSERT OR UPDATE ON "tb_cargo " FOR
EACH ROW EXECUTE PROCEDURE atualizadtalteracaorefs();

4) tried to insert data
ERROR: fmgr_info: function 24126: cache lookup failed

Guilherme Silva



pgsql-general by date:

Previous
From: "Weaver, Walt"
Date:
Subject: Re: Hey, where is Python.h ???
Next
From: Barry Lind
Date:
Subject: Re: [JDBC] Prepared statement performance...