Re: Optimizer: limit not taken into account

Поиск
Список
Период
Сортировка
От Craig A. James
Тема Re: Optimizer: limit not taken into account
Дата
Msg-id 446B7241.2060409@modgraph-usa.com
обсуждение исходный текст
Ответ на Re: Optimizer: limit not taken into account  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Tom Lane wrote:
> There is not anything in there that considers whether the table's
> physical order is so nonrandom that the search will take much longer
> than it would given uniform distribution.  It might be possible to do
> something with the correlation statistic in simple cases ...

In this case, the rows are not random at all, in fact they're inserted from a sequence, then rows are deleted as they
areprocessed.  If the planner is hoping for random physical distribution, this particular case is exactly wrong.  

Craig

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Optimizer: limit not taken into account
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Speed Up Offset and Limit Clause