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 ?