"OLD used in query that is not in a rule"

From: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: "OLD used in query that is not in a rule"
Date: 2012-03-26 14:42:33
Message-ID: 0AD01C53605506449BA127FB8B99E5E10C3596C7@FMSMSX105.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I get... "OLD used in query that is not in a rule" when trying to ref, for example, OLD.tblcol1, from inside a stored procedure. Is this saying you cannot use OLD.* (or NEW.* I suppose) unless it's from within a trigger function (returns type "trigger")?

If so, is there some way to tap this info given that the stored procedure is running as part of a check constraint definition?

Thanks for any help.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2012-03-26 14:51:56 Re: "OLD used in query that is not in a rule"
Previous Message Adrian Klaver 2012-03-26 14:27:04 Re: loading a function from a file