| От | Tom Lane |
|---|---|
| Тема | Re: dum query plan: more info. |
| Дата | |
| Msg-id | 11332.1050597109@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | dum query plan: more info. (Jonathan Moore <moore@discern.com>) |
| Список | pgsql-performance |
Jonathan Moore <moore@discern.com> writes:
> I now under stand that my join was rong but none of the seguestions are
> the optimal solution to the problime. You can make this order n if you
> try. The trick is to use a mearg join using sorted list of the unique
> keys in each colum join. The question you are asking is what left hand
> entrys do not exist on the right.
In that case maybe what you are after is
select a.* from a left join b on (a.left = b.right) where b.right is null;
which is a pretty grotty hack using the outer-join rules, but should
work efficiently.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера