Skip site navigation (1) Skip section navigation (2)

Coerce to Domain

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Coerce to Domain
Date: 2002-12-17 19:45:11
Message-ID: 1040154310.44928.29.camel@jester (view raw or flat)
Thread:
Lists: 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(at)rbt(dot)ca>

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

Responses

pgsql-hackers by date

Next:From: Marc G. FournierDate: 2002-12-17 20:06:38
Subject: Re: Update on replication
Previous:From: Bruce MomjianDate: 2002-12-17 19:16:19
Subject: Re: Update on replication

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group