Re: Indices arent being used

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Indices arent being used
Дата
Msg-id 15414.1064586936@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Indices arent being used  (rantunes@student.dei.uc.pt)
Список pgsql-performance
rantunes@student.dei.uc.pt writes:
> sort_mem = 2048

2 meg sort_mem seems on the small side.

> Yes I have an index on actvars.product_level and an index on
> prodlevel.code_level.Both indices have character(12) data types.

Can you force an indexscan to be chosen by setting enable_seqscan off?
If so, what does the explain look like?

BTW, it's always much more useful to show EXPLAIN ANALYZE output than
plain EXPLAIN.  The issue is generally "why did the planner misestimate"
and so knowing how its estimates diverge from reality is always a
critical bit of information.

            regards, tom lane

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

Предыдущее
От: rantunes@student.dei.uc.pt
Дата:
Сообщение: Re: Indices arent being used
Следующее
От: Mary Edie Meredith
Дата:
Сообщение: Re: TPC-R benchmarks