Re: select query does not pick up the right index

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: select query does not pick up the right index
Дата
Msg-id 20190103234743.GU25379@telsasoft.com
обсуждение исходный текст
Ответ на RE: select query does not pick up the right index  (Abadie Lana <Lana.Abadie@iter.org>)
Ответы RE: select query does not pick up the right index  (Abadie Lana <Lana.Abadie@iter.org>)
Список pgsql-performance
On Thu, Jan 03, 2019 at 12:57:27PM +0000, Abadie Lana wrote:
> Main parameters : effective_cache_size : 4GB, shared_buffers 4GB, work_mem 4MB

I doubt it will help much, but you should consider increasing work_mem, unless
you have many expensive queries running at once.

Could you also send the rest of the pg_statistic for that table ?

https://wiki.postgresql.org/wiki/Slow_Query_Questions#Statistics:_n_distinct.2C_MCV.2C_histogram

SELECT (SELECT sum(x) FROM unnest(most_common_freqs) x) frac_MCV, tablename, attname, null_frac, n_distinct,
array_length(most_common_vals,1)n_mcv, array_length(histogram_bounds,1) n_hist FROM pg_stats WHERE attname='...' AND
tablename='...'ORDER BY 1 DESC; 
 


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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: select query does not pick up the right index
Следующее
От: Abadie Lana
Дата:
Сообщение: RE: select query does not pick up the right index