Re: Different execution plan between PostgreSQL 8.4 and 12.11
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Different execution plan between PostgreSQL 8.4 and 12.11 |
| Дата | |
| Msg-id | 3977622.1665369954@sss.pgh.pa.us обсуждение |
| Ответ на | Re:Re: Different execution plan between PostgreSQL 8.4 and 12.11 (gzh <gzhcoder@126.com>) |
| Ответы |
Re:Re: Different execution plan between PostgreSQL 8.4 and 12.11
|
| Список | pgsql-general |
gzh <gzhcoder@126.com> writes:
> I've run analyze(not vacuum analyze), but it doesn't seem to work.
When you're asking for help, please don't give us vague statements
like "doesn't seem to work". Did the plan (including rowcount
estimates) change at all? To what? How far off is that rowcount
estimate, anyway --- that is, how many rows actually have cseid = 94?
If the estimate is far off, then increasing the table's statistics
target might help.
Another thing that would be worth checking is whether
"set enable_seqscan = off" prods it to choose the plan you want.
If not, then there's something else going on besides poor estimates.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера