DOMAIN NEED CAST ? - Mailing list pgsql-hackers

From ivan
Subject DOMAIN NEED CAST ?
Date
Msg-id Pine.LNX.4.56.0308171803370.10497@rex.anfa.pl
Whole thread Raw
Responses Re: DOMAIN NEED CAST ?
List pgsql-hackers
Why when i create domain like :

CREATE DOMAIN alias_to_int AS INT;

and then function like :

CREATE FUNCTION func() RETURNS alist_to_int AS ' select 2::int; ' LANGUAGE
SQL;

and pg can not convert int to aliast_to_int, so i need to create cast for
all this same types ?



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Question with hashed IN
Next
From: Stephan Szabo
Date:
Subject: Re: Question with hashed IN