Re: Delaying the planning of unnamed statements until Bind
| От | Tom Lane |
|---|---|
| Тема | Re: Delaying the planning of unnamed statements until Bind |
| Дата | |
| Msg-id | 16676.1085178615@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Delaying the planning of unnamed statements until Bind (Greg Stark <gsstark@mit.edu>) |
| Ответы |
Re: Delaying the planning of unnamed statements until Bind
Re: Delaying the planning of unnamed statements until Bind |
| Список | pgsql-hackers |
Greg Stark <gsstark@mit.edu> writes:
> If the planner had the expected value as well as the variance of the cost
> distribution then it might realize that in this case for instance that the
> penalty for guessing wrong with an index scan is only going to be a small
> slowdown factor, perhaps 2-4x slower. Whereas the penalty for guessing wrong
> with a sequential scan could be a factor in the thousands or more.
Au contraire --- a full-table index scan can be vastly slower than a
full-table seqscan. I think it's wishful thinking to assume that
picking an indexscan is the right thing when we don't know any better.
regards, tom lane
В списке pgsql-hackers по дате отправления: