nconway@klamath.dyndns.org (Neil Conway) writes:
> I'd like to add the ability to use a sub-select in a CHECK constraint.
> Can someone elaborate on what changes would be needed to support
> this?
Define what you think should happen when the other rows referenced
by the subselect change.
regards, tom lane