Re: Postgres using the wrong index index

Поиск
Список
Период
Сортировка
От Mladen Gogala
Тема Re: Postgres using the wrong index index
Дата
Msg-id 4db19bdf-ab40-ed68-4897-c9b328272421@gmail.com
обсуждение исходный текст
Ответ на Re: Postgres using the wrong index index  (Matt Dupree <matt.dupree@heap.io>)
Список pgsql-performance

You know that you can use pg_hint_plan extension? That way you don't have to disable indexes or set session parameters.

Regards

On 8/11/21 3:56 PM, Matt Dupree wrote:
Thanks for your response, Justin!

Here's the plan if we disable the custom_2 index. It uses the index I expect and it's much faster.

Here's a plan if we disable index scans. It uses both indexes and is much faster.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

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

Предыдущее
От: Matt Dupree
Дата:
Сообщение: Re: Postgres using the wrong index index
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: Postgres using the wrong index index