Re: PostgreSQL does not choose my indexes well
Вложения
В списке pgsql-performance по дате отправления:
| От | Stephen Frost |
|---|---|
| Тема | Re: PostgreSQL does not choose my indexes well |
| Дата | |
| Msg-id | 20200425120246.GP13712@tamriel.snowman.net обсуждение |
| Ответ на | Re: PostgreSQL does not choose my indexes well (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: PostgreSQL does not choose my indexes well
|
| Список | pgsql-performance |
Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost <sfrost@snowman.net> writes: > > Turns out to be because what was provided wasn't actually what was being > > used- there's a domain in there and that seems to gum up the works and > > make it so we don't consider the partial index as being something we can > > use (see the discussion at the end of the other sub-thread). > > Some simple experiments here don't find that a domain-type column prevents > use of the partial index. So it's still not entirely clear what's > happening for the OP. I concur with Jeff's suggestion to try forcing > use of the desired index, and see whether it happens at all and what > the cost estimate is. Once burned, twice shy, I suppose- considering we weren't given the actual DDL the first round, I'm guessing there's other differences. > I'm also wondering exactly which Postgres version this is. Also a good question. Thanks, Stephen
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера