From: | Jesus Aneiros <aneiros(at)jagua(dot)cfg(dot)sld(dot)cu> |
---|---|
To: | jprem <jprem(at)srmsoft(dot)co(dot)in> |
Cc: | pgman <pgman(at)candle(dot)pha(dot)pa(dot)us>, postgresql <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: urgent help on function/trigger |
Date: | 2000-07-17 11:10:02 |
Message-ID: | Pine.LNX.4.10.10007170705220.5549-100000@jagua.cfg.sld.cu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Something similar happened to me. Did you create the function, then the
triger, found some error in the function then drop the function and
created again? The table of triggers is pointing to a function's oid that
is different now (that's what I figured out because I don't have the
source code). Drop the function and the trigger and create them again.
Regards, Jesus.
On Mon, 17 Jul 2000, jprem wrote:
> hello,
> i have a procedure and a trigger as below
> ______________________________________________________________________
> create function FUNCTEST () returns opaque
> as
> 'begin
> delete from X where COLX in (select COLX from X
> where COLX not in (select COLY from Y ));
> return null;
> end;'
> language 'plpgsql';
>
> create trigger TRIGTEST after delete on Y for each row
> execute procedure FUNCTEST();
> ________________________________________________________________________
>
> i need some tuples to be deleted from X while i delete some from Y.
>
> the function and trigger are created without any problem.
> when i delete a tuple from Y , i get the following error.
> _________________________________________________________________________
>
> ERROR: fmgr_info: function 152480: cache lookup failed
> _________________________________________________________________________
>
> why this error is due to ? can anyone help me on this ?
> thanx in advance.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Oakley | 2000-07-17 11:54:11 | Logging Help Needed |
Previous Message | Nagel, Thomas | 2000-07-17 10:03:03 | AW: performance question |