trigger error

From: "Yudie" <yudie(at)axiontech(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: trigger error
Date: 2003-06-10 16:04:05
Message-ID: 001b01c32f69$eda57120$8401a8c0@yudie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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
AS 'BEGIN
IF NEW.ONHAND = 0 THEN
NEW.STATUS = ''D'';
END IF;
RETURN NEW;
END;'
LANGUAGE 'plpgsql';

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

Please Help..

Yudie

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Mendola Gaetano 2003-06-10 16:27:48 Re: trigger error
Previous Message Dmitry Tkach 2003-06-10 15:57:31 Re: trigger error