Re: ERROR: left and right pathkeys do not match in mergejoin
От
Alexander Kuzmenkov
Тема
Re: ERROR: left and right pathkeys do not match in mergejoin
Дата
Msg-id
a88ce274-7288-a595-386c-2be60a8b7cab@postgrespro.ru
Ответ на
Список
Дерево обсуждения
ERROR: left and right pathkeys do not match in mergejoin Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
Re: ERROR: left and right pathkeys do not match in mergejoin Tom Lane <tgl@sss.pgh.pa.us>
Re: ERROR: left and right pathkeys do not match in mergejoin Tom Lane <tgl@sss.pgh.pa.us>
Re: ERROR: left and right pathkeys do not match in mergejoin Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
Re: ERROR: left and right pathkeys do not match in mergejoin Tom Lane <tgl@sss.pgh.pa.us>
Re: ERROR: left and right pathkeys do not match in mergejoin Alexander Kuzmenkov <a.kuzmenkov@postgrespro.ru>
Re: ERROR: left and right pathkeys do not match in mergejoin Tom Lane <tgl@sss.pgh.pa.us>
Ah, I understand now. We can lie to the executor about the order, because when we are moving based on the second outer column, we have a stretch of equal values in the inner column, so we can consider them to be sorted whatever way we need. The patch applies cleanly, make check-world passes. In create_mergejoin_plan: * implied inner ordering is then "ORDER BY x, y, x", but the pathkey * drops the second sort by x as redundant, and this code must cope. -- should this read "the pathkey machinery drops"? -- Alexander Kuzmenkov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
В списке pgsql-hackers по дате отправления