Domain casting still not working right? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Domain casting still not working right?
Date
Msg-id Pine.LNX.4.44.0305232137260.5719-100000@peter.localdomain
Whole thread Raw
List pgsql-hackers
This particular case arose during work on the information schema:

-- good

select cast(55::oid AS varchar);varchar
---------55
(1 row)

-- bad

create domain test as varchar;
CREATE DOMAIN
select cast(55::oid AS test);
ERROR:  Cannot cast type oid to test

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Plan B for log rotation support: borrow Apache code
Next
From: Tom Lane
Date:
Subject: Re: Plan B for log rotation support: borrow Apache code