Is record handle available to a check constraint stored procedure call? - Mailing list pgsql-general

From Gauthier, Dave
Subject Is record handle available to a check constraint stored procedure call?
Date
Msg-id 0AD01C53605506449BA127FB8B99E5E10C358B82@FMSMSX105.amr.corp.intel.com
Whole thread Raw
List 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  

pgsql-general by date:

Previous
From: Maxim Boguk
Date:
Subject: Question about warning: "invalid resource manager ID 128 at ..." on hot stanby
Next
From: leaf_yxj
Date:
Subject: Re: postgresql 8.2 security definer is a built-in function. very confused??