Thread: Regarding ERROR: fmgr_info: function 2720768: cache lookup failed
Hello,
I am getting following error while inserting a row into the "abc" table:
ERROR: fmgr_info: function 2720768: cache lookup failed
Table "abc" has one trigger called "abct"
Definition is as follows:
BEGIN;
LOCK TABLE abc IN SHARE ROW EXCLUSIVE MODE;
create TRIGGER abct
AFTER INSERT OR DELETE on abc
FOR EACH ROW EXECUTE PROCEDURE abc_function();
COMMIT;
abc_function() updates entry from the "xyz" table for every insert and delete operations on table "abc".
"xyz" table maintains the count of total number of rows in table "abc"
Currently "abc" table contains 1000090 rows. And same count is available in table "xyz".
But now I am not able to insert any records into the "abc" table because of above mentioned error.
Please provide me some help regarding this.
Thanks,
Soni
"soni de" <soni.de@gmail.com> writes: > I am getting following error while inserting a row into the "abc" table: > *ERROR: fmgr_info: function 2720768: cache lookup failed* What PG version is this? (I can tell from the spelling of the error message that it's older than 7.4.) If it's pre-7.3 then the answer is probably that you dropped and re-created the function, and now need to drop and re-create the trigger to match. 7.3 shouldn't have let you drop a function that has a trigger depending on it, though. BTW this seems a bit off-topic for pgsql-performance. regards, tom lane