agora inbox for pgsql-admin@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: geoff@metalogicplc.com
Cc: Pgsql-Admin (E-mail) <pgsql-admin@postgresql.org>
Subject: Re: Function problem.
Date: Mon, 13 Jan 2003 10:58:44 -0500
Message-ID: <25405.1042473524@sss.pgh.pa.us> (raw)
In-Reply-To: <FDCF842C8B1DD311833C0090277C04B518C359@augusta.planmatics.co.uk>
References: <FDCF842C8B1DD311833C0090277C04B518C359@augusta.planmatics.co.uk>

"Geoff Ellis" <geoff@metalogicplc.com> writes:
> === ERROR: fmgr_info: function 696542: cache lookup failed =====

This is on 7.3?  My first guess would have been that you deleted and
recreated the function without recreating the trigger that references
it.  But 7.3 should not let you do that.

> I've tried to change the return type to opaque and remove the RETURN 1; But
> if the condition isn't true then I don't have a return.

In an update trigger, you RETURN NEW in the normal case where you want
the update to proceed.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <25405.1042473524@sss.pgh.pa.us>
Permalink:  ../25405.1042473524@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25405.1042473524@sss.pgh.pa.us

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, geoff@metalogicplc.com
  Subject: Re: Function problem.
  In-Reply-To: <25405.1042473524@sss.pgh.pa.us>

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

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