Skip site navigation (1) Skip section navigation (2)

Re: Indexes not used

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "D(dot) Duccini" <duccini(at)backpack(dot)com>
Cc: Pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Indexes not used
Date: 2001-03-15 20:27:38
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
"D. Duccini" <duccini(at)backpack(dot)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

In response to


pgsql-novice by date

Next:From: Jeff WilliamsDate: 2001-03-15 20:40:00
Subject: PosgreSQL Windows install
Previous:From: D. DucciniDate: 2001-03-15 20:03:00
Subject: Indexes not used

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group