Re: domain casting? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: domain casting?
Date
Msg-id 11007.1186769301@sss.pgh.pa.us
Whole thread Raw
In response to domain casting?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> Is possible casting domain?

No, because find_coercion_pathway() expects that only base types are
listed in pg_cast, so it starts by stripping domains.  Function lookup
tends to do that too, so it's hard even to declare a function as taking
a domain.

Elein was going to look into devising a more domain-friendly set of
type coercion rules, but I dunno if she's made any progress.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unexpected VACUUM FULL failure
Next
From: "Jonah H. Harris"
Date:
Subject: Re: crypting prosrc in pg_proc