Re: Performance of subselects

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: Performance of subselects
Дата
Msg-id bddc86150903090449g5441b5fcrcee147d66ce7e1e8@mail.gmail.com
обсуждение исходный текст
Ответ на Performance of subselects  (Christian Schröder <cs@deriva.de>)
Список pgsql-general
2009/3/6 Christian Schröder <cs@deriva.de>

Hi list,
if I want to find all records from a table that don't have a matching record in another table there are at least two ways to do it: Using a left outer join or using a subselect. I always thought that the planner would create identical plans for both approaches, but actually they are quite different which leads to a bad performance in one case.

Couldn't you also use: SELECT fk FROM b EXCEPT SELECT id FROM a;

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Performance of subselects
Следующее
От: Joe Steeve
Дата:
Сообщение: recovering databases in tablespace (lost main database)