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 ? ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match