Old question - failed to find conversion function from "unknown" - Mailing list pgsql-general

From Ilja Golshtein
Subject Old question - failed to find conversion function from "unknown"
Date
Msg-id 42DCCCCE.000006.04382@mfront8.yandex.ru
Whole thread Raw
In response to dump/restore needed when switching from 32bit to 64bit processor architecture?  (Dirk Lutzebäck <lutzeb@aeccom.com>)
Responses Re: Old question - failed to find conversion function from
List pgsql-general
Hi!

I've already asked this question a month ago -
it remains unanswered.
Dare to repeat since this issue is rather important for me.

So.

When I invoke

select 1 where 5 in (null)

everything is Ok,
though when I try

select 1 where 5 in (select null)

I get

ERROR:  failed to find conversion function from "unknown" to integer.

Is it desired behavior or subject to change
in future versions of PG?

I realize my simplified example looks radiculous while it came from reality.
Sometimes my engine generates SQL queries does not know correct type
and unable to cast, while PostgreSQL should have all information required.

Thanks.

--
Best regards
Ilja Golshtein

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Converting MySQL tinyint to PostgreSQL
Next
From: Dennis Bjorklund
Date:
Subject: Re: index row size exceeds btree maximum, 2713 - Solutions?