Re: Seq scan

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Seq scan
Дата
Msg-id 20020816101922.L99304-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: Seq scan  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Seq scan  (<stas-pgsql@xstas.net>)
Список pgsql-general
On Fri, 16 Aug 2002, Tom Lane wrote:

> Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> > On Fri, 16 Aug 2002 stas-pgsql@xstas.net wrote:
> >> "SELECT my_field FROM my_table WHERE id=12168996"      takes
> >> about half a minute ( 'id' is an sequential indexed field in my_table )
> >>
> >> EXPLAIN says it is doing a Seq Scan
>
> > Have you vacuum analyzed the table?
>
> I'm betting it's ye olde wrong-datatype issue.  What's the data type of
> id?  If it's not int4 then a cast is indicated ...

Well, he said that the "solution below did not help" in response to a
message about casting the data type, so I was wondering if it was simply
a default stats case.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Seq scan
Следующее
От: "Bryan White"
Дата:
Сообщение: query planner oddity for data constant vs current_date