Re: Planner hints in Postgresql
От
Atri Sharma
Тема
Re: Planner hints in Postgresql
Дата
Msg-id
CAOeZVifuFwnR67EjHsTxKnejcBF=HcAvY8oGFfgxo+y_hVgptQ@mail.gmail.com
Ответ на
Re: Planner hints in Postgresql (Claudio Freire)
Список
Дерево обсуждения
Planner hints in Postgresql Rajmohan C <csrajmohan@gmail.com>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql David Johnston <polobo@yahoo.com>
Re: Planner hints in Postgresql Tom Lane <tgl@sss.pgh.pa.us>
Re: Planner hints in Postgresql Merlin Moncure <mmoncure@gmail.com>
Re: Planner hints in Postgresql Stephen Frost <sfrost@snowman.net>
Re: Planner hints in Postgresql Jim Nasby <jim@nasby.net>
Re: Planner hints in Postgresql Merlin Moncure <mmoncure@gmail.com>
Re: Planner hints in Postgresql Jim Nasby <jim@nasby.net>
Re: Planner hints in Postgresql Claudio Freire <klaussfreire@gmail.com>
Re: Planner hints in Postgresql Tom Lane <tgl@sss.pgh.pa.us>
Re: Planner hints in Postgresql Claudio Freire <klaussfreire@gmail.com>
Re: Planner hints in Postgresql Merlin Moncure <mmoncure@gmail.com>
Re: Planner hints in Postgresql Claudio Freire <klaussfreire@gmail.com>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql Jeff Janes <jeff.janes@gmail.com>
Re: Planner hints in Postgresql Jim Nasby <jim@nasby.net>
Re: Planner hints in Postgresql Claudio Freire <klaussfreire@gmail.com>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql Merlin Moncure <mmoncure@gmail.com>
Re: Planner hints in Postgresql Martijn van Oosterhout <kleptog@svana.org>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql Tom Lane <tgl@sss.pgh.pa.us>
Re: Planner hints in Postgresql Pavel Stehule <pavel.stehule@gmail.com>
Re: Planner hints in Postgresql Merlin Moncure <mmoncure@gmail.com>
Re: Planner hints in Postgresql Jim Nasby <jim@nasby.net>
Re: Planner hints in Postgresql Claudio Freire <klaussfreire@gmail.com>
Re: Planner hints in Postgresql Jim Nasby <jim@nasby.net>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql David Johnston <polobo@yahoo.com>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql Stephen Frost <sfrost@snowman.net>
Re: Planner hints in Postgresql Vik Fearing <vik.fearing@dalibo.com>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql Stephen Frost <sfrost@snowman.net>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Re: Planner hints in Postgresql Jeff Janes <jeff.janes@gmail.com>
Re: Planner hints in Postgresql Tom Lane <tgl@sss.pgh.pa.us>
Re: Planner hints in Postgresql Atri Sharma <atri.jiit@gmail.com>
Yeah. I would like to see the planner's cost estimates extended to
> That's precisely what risk estimation was about.
include some sort of uncertainty estimate, whereupon risk-averse people
could ask it to prefer low-uncertainty plans over high-uncertainty ones
(the plans we typically choose for ORDER BY ... LIMIT queries being great
examples of the latter). But it's a long way from wishing that to making
it so. Right now it's not even clear (to me anyway) how we'd measure or
model such uncertainty.Well, currently, selectivity estimates based on MCV should be pretty low-uncertainty, whereas certainty of other estimates could be modeled as a random variable if ANALYZE gathered a few statistical moments (for variables that are prone to that kind of statistical analysis).That alone could improve things considerably, and statistical info could be propagated along expressions to make it possible to model uncertainty in complex expressions as well.
The problem is multi faceted (outdated stats, bad guess at distribution of data, cases Merlin mentioned before (CASE statements, COALESCE statements etc.). Finding a general solution to this problem shall require a lot of research and time.
I agree with Tom, we should focus on some of the main problems we have in that domain and then try to solve them first.
Regards,I agree with Tom, we should focus on some of the main problems we have in that domain and then try to solve them first.
Atri
--
Regards,
Atri
l'apprenant
В списке pgsql-hackers по дате отправления
От: Prabakaran, Vaishnavi
Дата: