Re: sequence scan problem

Поиск
Список
Период
Сортировка
От Jeremy Harris
Тема Re: sequence scan problem
Дата
Msg-id 48680860.2000300@wizmail.org
обсуждение исходный текст
Ответ на sequence scan problem  (John Beaver <john.e.beaver@gmail.com>)
Ответы Re: sequence scan problem
Re: sequence scan problem
Re: sequence scan problem
Список pgsql-performance
John Beaver wrote:
> I'm having a strange problem with a query. The query is fairly simple,
> with a few constants and two joins. All relevant columns should be
> indexed, and I'm pretty sure there aren't any type conversion issues.
> But the query plan includes a fairly heavy seq scan. The only possible
> complication is that the tables involved are fairly large - hundreds of
> millions of rows each.
>
> Can anyone explain this? There should only ever be a maximum of about 50
> rows returned when the query is executed.

You didn't say when you last vacuumed?
If there should only be 50 rows returned then the estimates from the
planner are way out.

If that doesn't help, we'll need version info, and (if you can afford
the time) an "explain analyze"

Cheers,
  Jeremy

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

Предыдущее
От: John Beaver
Дата:
Сообщение: sequence scan problem
Следующее
От: John Beaver
Дата:
Сообщение: Re: sequence scan problem