Re: (PATCH) Adding CORRESPONDING (NULL error) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: (PATCH) Adding CORRESPONDING (NULL error)
Date
Msg-id 4746.1319745357@sss.pgh.pa.us
Whole thread Raw
In response to Re: (PATCH) Adding CORRESPONDING (NULL error)  (Kerem Kat <keremkat@gmail.com>)
Responses Re: (PATCH) Adding CORRESPONDING (NULL error)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Kerem Kat <keremkat@gmail.com> writes:
> Union with NULL error persists without the corresponding patch. Here
> is the output from postgres without the patch:

> SELECT a FROM (SELECT 1 a) foo
> UNION
> SELECT a FROM (SELECT NULL a) foo2;

> ERROR:  failed to find conversion function from unknown to integer

Yeah, this is a longstanding issue that is not simple to fix without
introducing other unpleasantnesses.  It is not something you should
try to deal with at the same time as implementing CORRESPONDING.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: fun with unlogged tables
Next
From: Tom Lane
Date:
Subject: Re: (PATCH) Adding CORRESPONDING (NULL error)