Re: Performing INSERT from a Trigger fired function - Mailing list pgsql-general

From Tom Lane
Subject Re: Performing INSERT from a Trigger fired function
Date
Msg-id 20845.1033743624@sss.pgh.pa.us
Whole thread Raw
In response to Performing INSERT from a Trigger fired function  ("Darrell Skogman" <darrellskogman@email.com>)
List pgsql-general
"Darrell Skogman" <darrellskogman@email.com> writes:
> I want to be able to capture changes to a db with the use of
> triggers. I have created a simple db to test the methods to do
> this. When I change the age in this example, I get the error - "cashe
> lookup failed".

Do you get cache-lookup-failed when you use a non-trigger plpgsql
function, too?  I'll bet your plpgsql language definition is broken.
Try dropping and recreating it (see droplang and createlang scripts).

            regards, tom lane

pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Inheritance: problems with primary key
Next
From: Patrick Welche
Date:
Subject: Re: PL/pgSQL