Re: Performing INSERT from a Trigger fired function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Darrell Skogman" <darrellskogman(at)email(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Performing INSERT from a Trigger fired function
Date: 2002-10-04 15:00:24
Message-ID: 20845.1033743624@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Darrell Skogman" <darrellskogman(at)email(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message shey sewani 2002-10-04 15:03:42 DTOI4 integer out of range
Previous Message Patrick Welche 2002-10-04 15:00:05 Re: PL/pgSQL