Re: Explain reports unexpected results with inheritance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Explain reports unexpected results with inheritance
Дата
Msg-id 15428.982178023@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Explain reports unexpected results with inheritance  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
> Explain reports unexpected results with inheritance

I see no unexpected behavior here, nor anything that has anything to do
with inheritance.  The CREATE INDEX updates (some of) the planner's
statistics about the table, so that it now knows tab2 contains only one
page and two rows.  Under those conditions it's never going to select
an index scan --- seqscan will always look cheaper.  (A seqscan will
only need one disk page fetch, indexscan must take at least two.)

Load up more data, do a VACUUM, and try the EXPLAIN again.

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Sequence increased before constraint check
Следующее
От: Chris Storah
Дата:
Сообщение: create table bug with reserved words?