From: | Jan Wieck <janwieck(at)yahoo(dot)com> |
---|---|
To: | pblunat <pblunat(at)ujf-grenoble(dot)fr> |
Cc: | "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: a trigger question |
Date: | 2002-06-06 19:01:35 |
Message-ID: | 200206061901.g56J1ZV27320@saturn.janwieck.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
pblunat wrote:
> Hi,
> i have a problem with "cache lookup failled" when an insert is made in a
> table with a trigger.
> Error message is : "ERROR : fmgr_info : function 16586 : cache lookup
> failed"
> Quest.: where this problem is ?
You have dropped and recreated a trigger function without
dropping and redefining the trigger itself. The trigger on
the table has a dangling reference to the functions old OID.
Whenever you do DROP FUNCTION for a trigger, be sure to do
the DROP/CREATE TRIGGER as well.
In v7.2 you could alternatively use CREATE OR REPLACE
FUNCTION to avoid this problem.
> and where the documentation is on this subject ?.
Well hidden :-)
> I made :
> GRANT ALL PRIVILEGES ON all table and trigger,
> trigger is a very simple program for cut string (OK when stand alone).
>
> I am so sorry but beginers in english + beg. in trigger proc. + project'
> stress = problem.
And a voice out of the chaos spoke to me and said "smile and
be happy, it could be worse". And I smiled. And I was happy.
And It went worse.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
From | Date | Subject | |
---|---|---|---|
Next Message | Nigel J. Andrews | 2002-06-06 19:04:29 | Re: a trigger question |
Previous Message | Jan Wieck | 2002-06-06 18:52:18 | Re: a trigger question |