Re: Indexes not used

Поиск
Список
Период
Сортировка
От D. Duccini
Тема Re: Indexes not used
Дата
Msg-id Pine.GSO.4.03.10103151440560.2896-100000@ra.bpsi.net
обсуждение исходный текст
Ответ на Re: Indexes not used  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
not even a million

# select count(*) from radusage;
 count
--------
 573042
(1 row)

what is the analyze?  i've run vacuum several times

On Thu, 15 Mar 2001, Tom Lane wrote:

> "D. Duccini" <duccini@backpack.com> writes:
> > # explain select * from radusage where account = 'someuser';
>
> > Seq Scan on radusage  (cost=0.00..13839.67 rows=5757 width=50)
>
> Have you done a VACUUM ANALYZE?
>
> The rows count looks like it might be a default estimate (but I'm just
> counting on my fingers to guess that you have about a million rows in
> the table).  If the rows count *is* accurate then a seq scan is
> probably the right thing to be using...
>
>             regards, tom lane
>


-----------------------------------------------------------------------------
david@backpack.com            BackPack Software, Inc.        www.backpack.com
+1 651.645.7550 voice       "Life is an Adventure.
+1 651.645.9798 fax            Don't forget your BackPack!"
-----------------------------------------------------------------------------


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Indexes not used
Следующее
От: "D. Duccini"
Дата:
Сообщение: Re: Indexes not used