Re: Question about a query plan

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bill Moseley <moseley(at)hank(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question about a query plan
Date: 2005-09-20 22:11:58
Message-ID: 8751.1127254318@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bill Moseley <moseley(at)hank(dot)org> writes:
> ws2=> select count(*) from person_role;
> count
> -------
> 123
> (1 row)
> ...
> -> Seq Scan on person_role (cost=0.00..2.83 rows=1 width=4) (actual time=0.130..0.165 rows=1 loops=1)
> Filter: ((role = 2) AND (person = 94))

> Why does it say "Seq Scan" on person_role?

Probably because it doesn't consider that table big enough to warrant
using an index.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2005-09-20 22:49:34 Re: ltree and ordering - what index?
Previous Message Stephan Szabo 2005-09-20 22:08:34 Re: Question about a query plan