Re: postrgesql query planner wrong desicion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postrgesql query planner wrong desicion
Дата
Msg-id 1217742.1655475572@sss.pgh.pa.us
обсуждение исходный текст
Ответ на postrgesql query planner wrong desicion  (Kenny Bachman <kenny.bachman17@gmail.com>)
Ответы Re: postrgesql query planner wrong desicion  (Kenny Bachman <kenny.bachman17@gmail.com>)
Список pgsql-admin
Kenny Bachman <kenny.bachman17@gmail.com> writes:
> With GIST Index: (Total exec time : 34s)

> Index Scan using "Pool_Party_Code_gist" on "Pool_Party"  (cost=0.28..8.30
> rows=1 width=4) (actual time=0.097..0.097 rows=1 loops=330870)
>                                        Index Cond: (("Code")::text =
> 'TEAM-FIXPOWERUSER'::text)

> Without GIST Index: (Total exec time: 4s)

> Index Scan using "Pool_Party_Code_idx" on "Pool_Party"  (cost=0.42..8.44
> rows=1 width=4) (actual time=0.007..0.007 rows=1 loops=330870)
>                                        Index Cond: (("Code")::text =
> 'TEAM-FIXPOWERUSER'::text)

Why do you have a gist index on a column that's apparently plain
text (or varchar)?  It seems kinda pointless, and the more so if
it duplicates a btree index.

            regards, tom lane



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

Предыдущее
От: Álvaro Herrera
Дата:
Сообщение: Re: Xmax precedes relation freeze threshold errors
Следующее
От: Vijaykumar Jain
Дата:
Сообщение: Logical replication on two identical databases but diff versions