pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mendola Gaetano <mendola@bigfoot.com>
To: Yudie <yudie@axiontech.com>
To: pgsql-sql@postgresql.org
Subject: Re: trigger error
Date: Tue, 10 Jun 2003 18:27:48 +0200
Message-ID: <012f01c32f6d$3b9495c0$152aa8c0@GMENDOLA2> (raw)
References: <001b01c32f69$eda57120$8401a8c0@yudie>

"Yudie" <yudie@axiontech.com> wrote:
> Hi,
> I',m trying to create trigger with plpgsql trigger function
> then I got this error message when trigger executed:

> Number: -2147467259
> Error while executing th query;
> ERROR: fmgr_info: function 1546856080: cache lookup failed

> Here is the function code:

>CREATE FUNCTION TRIGGER_UPDATE_AXPRDT_STATUS()
>RETURNS OPAQUE
>[snipped]
>LANGUAGE 'plpgsql';

>CREATE TRIGGER TRIGGER_AXPRDT_FUTURESTATUS
>BEFORE UPDATE ON AXPRDT
>FOR EACH ROW
>EXECUTE PROCEDURE TRIGGER_UPDATE_AXPRDT_STATUS();

The errors mean that after the trigger definition you maded a 
modification on the function rebuilding it. Try to delete the trigger and
define it again.

The fact that you are using "RETURN OPAQUE" instead of
"RETURN TRIGGER" means that you are using a Postgres 
version prior then 7.3.x.
Using the version 7.3.x ( I suggest you the 7.3.3 ) you can 
define that funcion: "CREATE OR REPLACE .... " so you are
not forced to delete it before and your problem should gone.


Gaetano




view thread (3+ messages)

Message-ID: <012f01c32f6d$3b9495c0$152aa8c0@GMENDOLA2>
Permalink:  ../012f01c32f6d$3b9495c0$152aa8c0@GMENDOLA2/
Also on:    postgresql.org/message-id/012f01c32f6d$3b9495c0$152aa8c0@GMENDOLA2

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mendola@bigfoot.com, yudie@axiontech.com
  Subject: Re: trigger error
  In-Reply-To: <012f01c32f6d$3b9495c0$152aa8c0@GMENDOLA2>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox