Re: ERROR: failed to find conversion function from iso-8859-1 to text - Mailing list pgsql-hackers

From Tom Lane
Subject Re: ERROR: failed to find conversion function from iso-8859-1 to text
Date
Msg-id 1127584.1769649859@sss.pgh.pa.us
Whole thread Raw
In response to ERROR: failed to find conversion function from iso-8859-1 to text  (jian he <jian.universality@gmail.com>)
Responses Re: ERROR: failed to find conversion function from iso-8859-1 to text
List pgsql-hackers
jian he <jian.universality@gmail.com> writes:
> select cast(NULL::text as unknown);
> ERROR:  failed to find conversion function from unknown to text

Is there a good reason why that shouldn't be an error?
I certainly don't like the cast pathway you suggest adding
to make it not be one --- that seems likely to cause lots of
not-very-desirable behaviors.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Decoupling our alignment assumptions about int64 and double
Next
From: Michael Paquier
Date:
Subject: Re: pg_stat_statements: add missing tests for nesting_level