>>>> Now it gives a error that type double does not exist.
>>> CREATE DOMAIN double AS float8;
>>>
>>> There, now the type exists ;)
>> That's a little too perl for me ;)
>
> I suppose it depends on the goal. If it is an application that is to be
> supported on more than one database, defining types and other things for
> a given DB type (PostgreSQL) is easier than injecting a large number of
> SWITCH statements into the code.
\
Why in the world would you build an application for anything except
PostgreSQL?
;)