Re: BUG #5263: Query execution fails with "ERROR: FULL JOIN is only supported with merge-joinable join conditions"

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5263: Query execution fails with "ERROR: FULL JOIN is only supported with merge-joinable join conditions"
Дата
Msg-id 15477.1262726235@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5263: Query execution fails with "ERROR: FULL JOIN is only supported with merge-joinable join conditions"  ("Jozsef Szalay" <jszalay@storediq.com>)
Ответы Re: BUG #5263: Query execution fails with "ERROR: FULL JOIN is only supported with merge-joinable join conditions"  (Jozsef Szalay <jszalay@storediq.com>)
Список pgsql-bugs
"Jozsef Szalay" <jszalay@storediq.com> writes:
> Execute the following query:

> SELECT *
> FROM (SELECT id, 0 AS value
>       FROM test
>       WHERE description = 'abc'
>      ) t1
>      FULL OUTER JOIN
>      (SELECT id, 1 AS value
>       FROM test
>       WHERE description = 'def'
>      ) t2 USING (id, value);

Hm.  It's reducing the join condition to constant FALSE (since 0<>1) and
then deciding it doesn't know how to join in that case.  While this is
certainly undesirable, I have to wonder about the purpose of the query.
It seems like this is just a remarkably inefficient way of performing
UNION ALL.  Do you have a more real-world case where it happens?

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "robson"
Дата:
Сообщение: BUG #5266: erros no servidor web
Следующее
От: Jozsef Szalay
Дата:
Сообщение: Re: BUG #5263: Query execution fails with "ERROR: FULL JOIN is only supported with merge-joinable join conditions"