Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> But yes, schema-qualifying casts seems weird:
> '123'::someschema.user_type
> Is that even accepted by the grammar?
Yes, but it'd be taken as a qualification on the type name not the cast
per se. Offhand I'm not sure where we could even put a schema name for
the cast itself in the CAST syntax ... so that idea probably doesn't fly
at all.
regards, tom lane