Re: Query planner quirk?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query planner quirk?
Дата
Msg-id 23157.1018883148@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query planner quirk?  ("Dave Menendez" <dave@sycamorehq.com>)
Список pgsql-general
"Dave Menendez" <dave@sycamorehq.com> writes:
> Any comments?

Can't say much useful with such a selective report.  It'd be interesting
to see the EXPLAIN output in all four cases (small bank_id list for both
index and seq scans, ditto for large bank_id list).  Also, I don't
believe the bank_id IN () part can contribute to the index condition,
so the critical number is how many rows will match just time_id = 'P_6'
and org_allow = 1.  How many such rows are there really, and how many
does the planner estimate (use EXPLAIN with just those clauses in
WHERE)?

            regards, tom lane

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

Предыдущее
От: Michael Loftis
Дата:
Сообщение: Re: Why does postgres not take into account my index on a bigint column ?
Следующее
От: Michael Devogelaere
Дата:
Сообщение: psql and passwords