Re: PostgreSQL does not choose my indexes well

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PostgreSQL does not choose my indexes well
Дата
Msg-id 12521.1587674742@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PostgreSQL does not choose my indexes well  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: PostgreSQL does not choose my indexes well
Список pgsql-performance
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> I noticed that too...I suspect its related to the ANALYZE result:

> Index Scan using idx_tabla_entidad on entidad (cost=0.56..51121.41
> rows=1405216 width=20) (actual time=0.037..242.609 rows=1409985 loops=1)
>    Index Cond: ((cod_tabla)::bigint = 4)

Yeah, that *strongly* suggests that cod_tabla isn't really bigint.
I'm wondering about domains, for instance.

            regards, tom lane



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: PostgreSQL does not choose my indexes well
Следующее
От: Arcadio Ortega Reinoso
Дата:
Сообщение: Re: PostgreSQL does not choose my indexes well