Re: Query too slow with "not in" condition

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query too slow with "not in" condition
Дата
Msg-id 16753.1228067890@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query too slow with "not in" condition  ("David Rowley" <dgrowley@gmail.com>)
Список pgsql-general
"David Rowley" <dgrowley@gmail.com> writes:
> I assume workmem, effective_cache_size and random_page_cost are all the same
> in the 2 postgresql.conf?

Indeed, work_mem is probably the problem.  The critical difference
between the two plans seems to be that the first one is using a
"hashed subplan" and the second one isn't.  Assuming the same datatypes
in both databases, the only reason not to use a hashed subplan is if
the hashtable is estimated not to fit in work_mem.

            regards, tom lane

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: db backup script in gentoo
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Question on libpq parameters