Re: Domains and type coercion

From: "Rod Taylor" <rbt(at)zort(dot)ca>
To: <pgsql-hackers(at)postgreSQL(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Domains and type coercion
Date: 2002-03-19 22:09:17
Message-ID: 00d801c1cf92$b75f8570$5302000a@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Copeland 2002-03-19 23:00:53 Re: Bitmap indexes?
Previous Message Matthew Kirkwood 2002-03-19 21:30:36 Re: Bitmap indexes?