Inconsistency between try_mergejoin_path and create_mergejoin_plan

Поиск
Список
Период
Сортировка
От Alexander Pyhalov
Тема Inconsistency between try_mergejoin_path and create_mergejoin_plan
Дата
Msg-id c59ec04a2fef94d9ffc35a9b17dfc081@postgrespro.ru
обсуждение исходный текст
Ответы Re: Inconsistency between try_mergejoin_path and create_mergejoin_plan
Список pgsql-hackers
Hi.

There's the following inconsistency between try_mergejoin_path() and 
create_mergejoin_plan().
When clause operator has no commutator, we can end up with mergejoin 
path.
Later create_mergejoin_plan() will call get_switched_clauses(). This 
function can error out with

ERROR:  could not find commutator for operator XXX

The similar behavior seems to be present also for hash join.

Attaching a test case (in patch) and a possible fix.

-- 
Best regards,
Alexander Pyhalov,
Postgres Professional
Вложения

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

Предыдущее
От: Jacob Champion
Дата:
Сообщение: Re: Direct SSL connection and ALPN loose ends
Следующее
От: Melanie Plageman
Дата:
Сообщение: Re: Show WAL write and fsync stats in pg_stat_io