Re: Non Matching Records in Two Tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Non Matching Records in Two Tables
Дата
Msg-id 22658.1139951249@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Non Matching Records in Two Tables  (Ken Hill <ken@scottshill.com>)
Ответы Re: Non Matching Records in Two Tables  (Ken Hill <ken@scottshill.com>)
Список pgsql-sql
Ken Hill <ken@scottshill.com> writes:
>  Seq Scan on ncccr10  (cost=0.00..20417160510.08 rows=305782 width=104)
>    Filter: (NOT (subplan))
>    SubPlan
>      ->  Seq Scan on ncccr9  (cost=0.00..65533.71 rows=494471 width=104)
> (4 rows)

> Any ideas why it is so slow?

"NOT (subplan)" is horrendous (and the system knows it, note the huge
cost estimate).  Try increasing work_mem enough so you get a hashed
subplan instead.
        regards, tom lane


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

Предыдущее
От: Ken Hill
Дата:
Сообщение: Re: Non Matching Records in Two Tables
Следующее
От: chester c young
Дата:
Сообщение: Re: Non Matching Records in Two Tables