Re: IN() Optimization issue in 8.0rc5

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: IN() Optimization issue in 8.0rc5
Дата
Msg-id 200501151332.27896.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: IN() Optimization issue in 8.0rc5  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Tom,

> Hmm.  What you want for a NOT IN is for it to say
>    Filter: (NOT (hashed subplan))
> which you are not getting.  What's the datatypes of the two personid
> columns?

INT

> Is the 400k-row estimate for person_attributes reasonable?

Yes, the estimates are completely accurate.

> Maybe you need to increase work_mem (nee sort_mem) to allow a
> 400k-row hash table?

Aha, that's it.  I thought I'd already set that, but apparently it was a
different session.    Fixed.  Thanks!

--
Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: IN() Optimization issue in 8.0rc5
Следующее
От: amrit@health2.moph.go.th
Дата:
Сообщение: Re: Increasing RAM for more than 4 Gb. using postgresql