Re: [GENERAL] QUERY PLAN:

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: [GENERAL] QUERY PLAN:
Дата
Msg-id 19991027100913.A21159@wallace.ece.rice.edu
обсуждение исходный текст
Ответ на QUERY PLAN:  ("Tim Joyce" <tim@hoop.co.uk>)
Список pgsql-general
On Wed, Oct 27, 1999 at 11:03:45AM +0100, Tim Joyce wrote:
> can someone point me at documentation so that i can unserstand the results
> of an EXPLAIN, eg:
>
> Index Scan using words_id_idx on books_idx  (cost=441.19 rows=7644 width=8)
>
> explain select * from books_idx where wrd_id=1;
>
> I am paticularly interested in what the rows= figure means.

I've picked up a little info on this from following the hackers list,
so I don't know what docs to point you at. My understanding is that the
rows= represents the number of tuples the optimizer estimates will be
returned by that step of the execution plan. In the example you've shown,
it's an index scan of a field, and the estimate (based on last know number
of tuples in the table (as of your last VACUUM ANALYZE) and an estimate
of the selectivity of the operator being applied to this index (<, =,
>, etc), and the approximate dispersion of the values in that field.

For more detail, I'd suggest checking the archives of the pgsql-hackers
list, and perhaps then asking on the list itself. There's some hints in the
"PostgreSQL Programmer's Guide" in the "Extending SQL" sections on functions,
operators, and interfacing them to indices.

Ross
--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005

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

Предыдущее
От: Shadkam Islam
Дата:
Сообщение: Re: [GENERAL] how to insert from sequence
Следующее
От: Alain TESIO
Дата:
Сообщение: Re: [GENERAL] how to insert from sequence