Re: How to read a query plan?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to read a query plan?
Дата
Msg-id 9761.987606941@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to read a query plan?  (elwood@agouros.de (Konstantinos Agouros))
Список pgsql-general
elwood@agouros.de (Konstantinos Agouros) writes:
> after this I created an index on the field webhost, now the query plan says:

CREATE INDEX updates the basic statistics about the table's size (number
of rows and disk blocks).  The first plan was evidently generated using
statistics that claimed the table was empty.  The second plan has rather
more plausible-looking numbers.  I surmise that you did something like

    CREATE TABLE ...

    VACUUM   (sets stats to reflect empty table)

    load a bunch of data

    EXPLAIN

    CREATE INDEX  (now stats reflect existence of data)

    EXPLAIN

> Could someone give me an interpretation (or a URL that explains this)?

See the performance section of the User's Guide for a general discussion
of EXPLAIN.

            regards, tom lane

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

Предыдущее
От: martin.chantler@convergys.com
Дата:
Сообщение: Re: Yet another Performance Question
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: How to read a query plan?