"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> - if (inputTypeId == UNKNOWNOID && IsA(node, Const))
> + if ( ( ( ( inputTypeId == UNKNOWNOID) || (inputTypeId == TEXTOID ) )
> && IsA(node, Const))&& IsA(node, Const) )
No thank you. Fix your broken client code, rather than screwing up type
coercion behavior for everyone else. If you've explicitly specified
that something is TEXT, then the system should treat it as TEXT.
regards, tom lane