Re: Identifying casts - Mailing list pgsql-general

From Tom Lane
Subject Re: Identifying casts
Date
Msg-id 415.1197075448@sss.pgh.pa.us
Whole thread Raw
In response to Identifying casts  (Marc Munro <marc@bloodnok.com>)
List pgsql-general
Marc Munro <marc@bloodnok.com> writes:
> Is there any way of identifying whether a cast was built-in or is
> user-defined?

It's not easy.  I'd suggest following the same heuristic pg_dump
does, which is that if any of the source type, target type, or
underlying function is considered user-defined, then the cast is too.

            regards, tom lane

pgsql-general by date:

Previous
From: "Amit Phatarphekar"
Date:
Subject: Returning columns from different tables, in plpgsql function
Next
From: Tom Lane
Date:
Subject: Re: Array index not used for query on first element?