Vinicio Llumiquinga <vinill(at)alainet(dot)org> writes:
> fmgr_info: function 18816: cache lookup failed
> This happend when I write any function.
I suspect you dropped the plpgsql call handler function.
If so, the only convenient recovery method AFAIK is to drop the
plpgsql language entry and all your plpgsql functions (dump them
out first!) then rerun "createlang" and reload your functions.
regards, tom lane