Re: Domains and type coercion - Mailing list pgsql-hackers

From Rod Taylor
Subject Re: Domains and type coercion
Date
Msg-id 00d801c1cf92$b75f8570$5302000a@jester
Whole thread Raw
In response to Domains and type coercion  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> I am thinking that a non-broken approach would involve (1) treating
> a domain as binary-compatible with its base type, and therefore with
> all other domains on the same base type, and (2) allowing a coercion
> function that produces the base type to be used to produce the
domain
> type.  (The patch tries to do (2), but does it in the wrong places,
> leading to the mislabeled-expression problem.)

2 was the goal, and it worked enough for any default expression I
could come up with -- so I thought it did pretty good.  Guess not.  It
should be binary equivelent to the base type it's made out of.




pgsql-hackers by date:

Previous
From: Matthew Kirkwood
Date:
Subject: Re: Bitmap indexes?
Next
From: Greg Copeland
Date:
Subject: Re: Bitmap indexes?