Re: PG choosing nested loop for set membership?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PG choosing nested loop for set membership?
Дата
Msg-id 31260.1395781637@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PG choosing nested loop for set membership?  (Brian Crowell <brian@fluggo.com>)
Ответы Re: PG choosing nested loop for set membership?  (Brian Crowell <brian@fluggo.com>)
Список pgsql-general
Brian Crowell <brian@fluggo.com> writes:
> The trouble comes when enforcing the "dci.account in (...)" search
> condition: pl2.visible_accounts is a view that determines which
> accounts the current user can see, which, depending on who you are,
> can be several hundred or none at all. Postgres estimates the output
> of this query as two rows, but in my case, it's actually 240.

So the main estimation error is inside that view, which you didn't
show us :-(

            regards, tom lane


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

Предыдущее
От: Brian Crowell
Дата:
Сообщение: PG choosing nested loop for set membership?
Следующее
От: David Johnston
Дата:
Сообщение: Re: PG choosing nested loop for set membership?