Re: The planner chooses seqscan+sort when there is an

Поиск
Список
Период
Сортировка
От John D. Burger
Тема Re: The planner chooses seqscan+sort when there is an
Дата
Msg-id 1faa2678eba0d4703f1f74a5c4563407@mitre.org
обсуждение исходный текст
Ответ на Re: The planner chooses seqscan+sort when there is an  (Csaba Nagy <nagy@ecircle-ag.com>)
Ответы Re: The planner chooses seqscan+sort when there is an  (Csaba Nagy <nagy@ecircle-ag.com>)
Список pgsql-general
> But I also asked for _ordered_ results, which the seq scan is not
> covering, but the index does... and I specifically disabled sequential
> scan.

Docs say:

> Enables or disables the query planner's use of sequential scan plan
> types. It's not possible to suppress sequential scans entirely, but
> turning this variable off discourages the planner from using one if
> there are other methods available.

Note the second sentence.  Again, I think it will have to scan the
whole table anyway, because that's what you've asked for, and given
that, enable_seqscan=off doesn't apply.

- John Burger
   MITRE


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

Предыдущее
От: Erik Myllymaki
Дата:
Сообщение: Re: logfiles filling up
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: The planner chooses seqscan+sort when there is an