Code review for domain-constraints patch. Use a new ConstraintTest node

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 845a6c3acccea0ec34e70808787aa7d431b0d96d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-08-31T22:10:48Z
Releases: 7.3.1
Code review for domain-constraints patch.  Use a new ConstraintTest node
type for runtime constraint checks, instead of misusing the parse-time
Constraint node for the purpose.  Fix some damage introduced into type
coercion logic; in particular ensure that a coerced expression tree will
read out the correct result type when inspected (patch had broken some
RelabelType cases).  Enforce domain NOT NULL constraints against columns
that are omitted from an INSERT.

Files