CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl@postgresql.org 02/08/31 18:10:48
Modified files:
src/backend/executor: execQual.c
src/backend/nodes: copyfuncs.c equalfuncs.c outfuncs.c
readfuncs.c
src/backend/optimizer/prep: preptlist.c
src/backend/optimizer/util: clauses.c
src/backend/parser: parse_coerce.c parse_expr.c parse_type.c
src/backend/utils/adt: ruleutils.c
src/backend/utils/cache: lsyscache.c
src/include/nodes: nodes.h parsenodes.h
src/include/parser: parse_coerce.h parse_type.h
src/include/utils: lsyscache.h
src/test/regress/expected: domain.out
src/test/regress/sql: domain.sql
Log message:
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.