Re: Table scan on 15.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Table scan on 15.2
Дата
Msg-id 3340032.1678897087@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Table scan on 15.2  (Arthur Ramsey <arthur.ramsey@code42.com>)
Ответы Re: Table scan on 15.2  (Arthur Ramsey <arthur.ramsey@code42.com>)
Список pgsql-general
Arthur Ramsey <arthur.ramsey@code42.com> writes:
> After a restart and seq disabled for session with no other load (same for
> plan with seq enabled).

>  Bitmap Heap Scan on t_user user0_  (cost=19567.17..58623.03 rows=800678
> width=761) (actual time=0.370..0.702 rows=36 loops=1)

So the problem is that awful rowcount estimate.  (I see that v12's
estimate wasn't exactly spot-on either, but it wasn't so bad as to
push the planner to use a seqscan.)  Hard to form an opinion on the
cause of that when you've redacted all the details of the index
condition, unfortunately.

It could be that increasing the table's statistics target and
re-ANALYZEing would help.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to behive if I remove password from postgres role
Следующее
От: Arthur Ramsey
Дата:
Сообщение: Re: Table scan on 15.2