Re: Risk Estimation WAS: Planner hints in Postgresql

Поиск
Список
Период
Сортировка
От Atri Sharma
Тема Re: Risk Estimation WAS: Planner hints in Postgresql
Дата
Msg-id CAOeZVifc88H512xq31Dj3ccsn1ecArr8hStK8ZT-qbt92eJB9g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Risk Estimation WAS: Planner hints in Postgresql  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers



On Thu, Mar 20, 2014 at 8:51 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Atri Sharma <atri.jiit@gmail.com> writes:
> Now, why cannot we take the estimate of all the buckets behind the bucket
> in which our value is present? Will that estimate not give us the fraction
> of tuples that are expected to be before the first matching row?

Uh, no, not unless you assume that the table happens to be perfectly
sorted by the column's value.

                       

Yes, that is true. So, if an attribute has an index present, can we do this somehow?

Regards,

Atri



--
Regards,
 
Atri
l'apprenant

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Risk Estimation WAS: Planner hints in Postgresql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: effective_cache_size cannot be changed by a reload