Re: Question about a query plan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about a query plan
Дата
Msg-id 8751.1127254318@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Question about a query plan  (Bill Moseley <moseley@hank.org>)
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Question about a query plan
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: ltree and ordering - what index?