Tom Walta <twalta(at)yahoo(dot)com> writes:
> "ERROR: fmgr_info: Cache lookup for language failed 18977"
Did you perchance drop and recreate the plpgsql language when
you already had functions defined in the language? The system
will let you do that :-(, but then the old functions refer to
a language OID that no longer exists. You'll need to drop and
recreate the functions, too.
regards, tom lane