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

bug? non working casts for domain

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: bug? non working casts for domain
Date: 2006-05-03 08:46:02
Message-ID: Pine.LNX.4.64.0605031033350.16727@briare.cri.ensmp.fr (view raw or flat)
Thread:
Lists: pgsql-hackers
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.

Attachment: domain_cast.sql
Description: text/plain (706 bytes)

Responses

pgsql-hackers by date

Next:From: Hannu KrosingDate: 2006-05-03 11:34:08
Subject: Re: Automatic free space map filling
Previous:From: Robert StaudingerDate: 2006-05-03 07:57:50
Subject: [SoC] Relation between project "XML improvements" and "pgxml"

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