Roodie <roodie(at)morahalom(dot)hu> writes:
> ERROR: ExecEvalExpr: unknown expression type 108
Sub-selects in constraint expressions don't work at the moment :-(.
An easy workaround is to put the sub-select in a function and call
the function from your constraint.
regards, tom lane