"Joris Dobbelsteen" <Joris(at)familiedobbelsteen(dot)nl> writes:
> My intention is to expose the functionality to the outside world for
> general use. This provides means to ensure custom complex constraints
> can be enforced properly. I hope to push it into 8.3 if possible.
You are at least a month too late for 8.3, even if you had a solid
design now, which you clearly don't. Nor am I convinced that we really
want/need to support what you are talking about at the SQL level. To me,
the crosscheck stuff in the RI support is an extremely dirty hack that
might or might not be 100% correct. Exposing it to the SQL level,
and thereby committing to support it forever, seems the height of folly.
regards, tom lane