Re: a little doubr about domains and pl/python - Mailing list pgsql-hackers

From Tom Lane
Subject Re: a little doubr about domains and pl/python
Date
Msg-id 17877.1159551164@sss.pgh.pa.us
Whole thread Raw
In response to a little doubr about domains and pl/python  ("Walter Cruz" <walter.php@gmail.com>)
List pgsql-hackers
"Walter Cruz" <walter.php@gmail.com> writes:
> CREATE CAST (integer AS romano) WITH FUNCTION to_roman(integer);

> What's wrong?

Domains aren't supported as cast source/targets at the moment; I don't
think the system is finding your cast specification at all, but is
instead doing this as 5::text::romano which of course fails.  See past
discussions about the subtleties of trying to fix this.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Nulls, arrays, records, IS NULL, IS DISTINCT FROM
Next
From: Erik Jones
Date:
Subject: Re: [GENERAL] Array assignment behavior (was Re: [ADMIN] Stored procedure