Re: Question about a query plan - Mailing list pgsql-general

From Tom Lane
Subject Re: Question about a query plan
Date
Msg-id 8751.1127254318@sss.pgh.pa.us
Whole thread Raw
In response to Re: Question about a query plan  (Bill Moseley <moseley@hank.org>)
List pgsql-general
Bill Moseley <moseley@hank.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

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Question about a query plan
Next
From: "Jim C. Nasby"
Date:
Subject: Re: ltree and ordering - what index?