Coerce to Domain - Mailing list pgsql-hackers

From Rod Taylor
Subject Coerce to Domain
Date
Msg-id 1040154310.44928.29.camel@jester
Whole thread Raw
Responses Re: Coerce to Domain
List pgsql-hackers
As suggested, I intend to create a 'CoerceToDomain' node in the
expression tree rather than attempting to apply the create the
constraints tests immediately.

1. Create a new function in the executor to handle domain coercions:
ExecEvalCoerceToDomain()

2. Move coerce_type_constraints to the executor (builds expression tree
of constraints) under the name ExecCoerceTypeConstraints().

3. On initial pass, CoerceToDomain will have a 'raw' expression tree
(simple arg of data to coerce).  After passing through
ExecCoerceTypeConstraints a 'cooked' expression tree will contain the
constraint tests.  Subsequent tuples will simply use the pre-cooked
tree.


--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Update on replication
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Update on replication