Marc Munro <marc@xxxxxxxxxxxx> 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 ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend