Re: DOMAINs and CASTs

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
Cc: Darren Duncan <darren(at)darrenduncan(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: DOMAINs and CASTs
Date: 2011-05-16 02:14:45
Message-ID: BANLkTi=M6pVo3ZTeGC+FDW9ZJmmsUQzWow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, May 15, 2011 at 10:13 PM, Jaime Casanova <jaime(at)2ndquadrant(dot)com> wrote:
> On Sun, May 15, 2011 at 9:01 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> On Sun, May 15, 2011 at 7:43 PM, Jaime Casanova <jaime(at)2ndquadrant(dot)com> wrote:
>>> still, we have a problem... because we are happily ignoring correctely
>>> created casts...
>>> at least, we should document that casts on domains are ignored and
>>> that we should use the base types instead, maybe even a warning or a
>>> notice when issuing the CREATE CAST command using domains...
>>>
>>> make the user think everything is fine when it's not is not a good idea
>>
>> +1.
>>
>
> ok, i will make a patch for this... btw, why is that we allow to
> create those casts at all? or we can deny them?

Before you write the patch... we should probably try to agree on which
of the various options you mention makes most sense.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2011-05-16 03:52:56 Re: cache estimates, cache access cost
Previous Message Jaime Casanova 2011-05-16 02:13:07 Re: DOMAINs and CASTs