Is record handle available to a check constraint stored procedure call?

From: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Is record handle available to a check constraint stored procedure call?
Date: 2012-03-23 02:03:16
Message-ID: 0AD01C53605506449BA127FB8B99E5E10C358B82@FMSMSX105.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

v8.3.4 on Linux

I have a check constraint on a column. The constraint decides pass/fail based on the returned status of a stored procedure call that returns either "OK" or "NO". So when the stored procedure is called, there's a living attempt to insert or update a record.

Question: Is there a handle on the record being inserted or updated? Something like what's available in a trigger function (new.col1, old.col2, etc...)? If so, what does it look like?

Thanks in Advance

Responses

Browse pgsql-general by date

  From Date Subject
Next Message leaf_yxj 2012-03-23 03:30:32 postgresql 8.2 security definer is a built-in function. very confused??
Previous Message Maxim Boguk 2012-03-22 23:34:43 Question about warning: "invalid resource manager ID 128 at ..." on hot stanby