Re: bug? non working casts for domain - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: bug? non working casts for domain
Date
Msg-id 200606162205.k5GM56421499@candle.pha.pa.us
Whole thread Raw
In response to bug? non working casts for domain  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Added to TODO list, with URL.

---------------------------------------------------------------------------

Fabien COELHO wrote:
> 
> Dear PostgreSQL developer.
> 
> Although it is allowed to create a cast for a domain, it seems that there 
> is no way to trigger it. You can find attached an sql script to illustrate 
> the issue with postgresql 8.1.3. The create cast and create domain 
> documentations do not seem to discuss this point.
> 
> ISTM that it is a pg bug. Indeed, either
> 
> (1) the create cast should be rejected if it is not allowed for domains.
> 
> or
> 
> (2) the function should be triggered by explicit casts to the domain.
> 
> Have a nice day,
> 
> -- 
> Fabien.

Content-Description: 

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
> 
>                http://archives.postgresql.org

--  Bruce Momjian   http://candle.pha.pa.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [COMMITTERS] pgsql: Add STRICT to PL/pgSQL SELECT INTO, so exceptions
Next
From: Tom Lane
Date:
Subject: Re: [COMMITTERS] pgsql: Add STRICT to PL/pgSQL SELECT INTO, so exceptions are thrown if