Re: multivariate statistics / patch v7

Поиск
Список
Период
Сортировка
Искать
От
Tomas Vondra
Тема
Re: multivariate statistics / patch v7
Дата
Msg-id
55BA9712.9090608@2ndquadrant.com
Ответ на
Список
Дерево обсуждения
WIP: multivariate statistics / proof of concept Tomas Vondra <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept Heikki Linnakangas <hlinnakangas@vmware.com>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: multivariate statistics v8 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v9 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v10 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v11 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v11 Jeff Janes <jeff.janes@gmail.com>
Re: multivariate statistics v11 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v11 Alvaro Herrera <alvherre@2ndquadrant.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Jeff Janes <jeff.janes@gmail.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Jeff Janes <jeff.janes@gmail.com>
Re: multivariate statistics v14 Jeff Janes <jeff.janes@gmail.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Petr Jelinek <petr@2ndquadrant.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Alvaro Herrera <alvherre@2ndquadrant.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tom Lane <tgl@sss.pgh.pa.us>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 David Steele <david@pgmasters.net>
Re: multivariate statistics v14 Robert Haas <robertmhaas@gmail.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Robert Haas <robertmhaas@gmail.com>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics (v19) Dean Rasheed <dean.a.rasheed@gmail.com>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Heikki Linnakangas <hlinnaka@iki.fi>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics (v19) Heikki Linnakangas <hlinnaka@iki.fi>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics (v19) Dean Rasheed <dean.a.rasheed@gmail.com>
Re: multivariate statistics (v19) Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: multivariate statistics (v19) Dean Rasheed <dean.a.rasheed@gmail.com>
Re: multivariate statistics (v19) Heikki Linnakangas <hlinnaka@iki.fi>
Re: multivariate statistics (v19) Dean Rasheed <dean.a.rasheed@gmail.com>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Petr Jelinek <petr.jelinek@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] multivariate statistics (v19) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] multivariate statistics (v19) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] multivariate statistics (v19) "Ideriha, Takeshi" <ideriha.takeshi@jp.fujitsu.com>
Re: [HACKERS] multivariate statistics (v19) Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Dean Rasheed <dean.a.rasheed@gmail.com>
Re: [HACKERS] multivariate statistics (v19) David Fetter <david@fetter.org>
Re: [HACKERS] multivariate statistics (v19) Dean Rasheed <dean.a.rasheed@gmail.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
[HACKERS] Multivariate statistics and expression indexes Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Multivariate statistics and expression indexes Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] Multivariate statistics and expression indexes Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] multivariate statistics (v19) Dean Rasheed <dean.a.rasheed@gmail.com>
Re: [HACKERS] multivariate statistics (v19) David Fetter <david@fetter.org>
Re: [HACKERS] multivariate statistics (v24) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v24) Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] multivariate statistics (v25) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) David Fetter <david@fetter.org>
Re: [HACKERS] multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: multivariate statistics (v25) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: multivariate statistics (v25) Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: multivariate statistics (v25) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v25) Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: multivariate statistics (v25) Simon Riggs <simon@2ndquadrant.com>
Re: multivariate statistics (v25) "Tels" <nospam-abuse@bloodgate.com>
Re: multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: multivariate statistics (v25) Simon Riggs <simon@2ndquadrant.com>
Re: multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: multivariate statistics (v25) "Sven R. Kunze" <srkunze@mail.de>
Re: multivariate statistics (v25) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v25) David Rowley <david.rowley@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v24) Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] multivariate statistics (v19) Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] multivariate statistics (v19) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] multivariate statistics (v19) Dilip Kumar <dilipbalaut@gmail.com>
Re: [HACKERS] multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Petr Jelinek <petr@2ndquadrant.com>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics (v19) Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics (v19) Michael Paquier <michael.paquier@gmail.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Simon Riggs <simon@2ndQuadrant.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Robert Haas <robertmhaas@gmail.com>
Re: multivariate statistics v14 Tom Lane <tgl@sss.pgh.pa.us>
Re: multivariate statistics v14 Robert Haas <robertmhaas@gmail.com>
Re: multivariate statistics v14 Simon Riggs <simon@2ndQuadrant.com>
Re: multivariate statistics v14 Alvaro Herrera <alvherre@2ndquadrant.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Alvaro Herrera <alvherre@2ndquadrant.com>
Re: multivariate statistics v14 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Tatsuo Ishii <ishii@postgresql.org>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Alvaro Herrera <alvherre@2ndquadrant.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Robert Haas <robertmhaas@gmail.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v14 Jeff Janes <jeff.janes@gmail.com>
Re: multivariate statistics v14 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v10 Thom Brown <thom@linux.com>
Re: multivariate statistics v10 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics v8 Robert Haas <robertmhaas@gmail.com>
Re: multivariate statistics v8 Bruce Momjian <bruce@momjian.us>
Re: multivariate statistics v8 Alvaro Herrera <alvherre@2ndquadrant.com>
Re: multivariate statistics v8 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: WIP: multivariate statistics / proof of concept Albe Laurenz <laurenz.albe@wien.gv.at>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept Simon Riggs <simon@2ndQuadrant.com>
Re: WIP: multivariate statistics / proof of concept "Tomas Vondra" <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept Katharina Büchse<katharina.buechse@uni-jena.de>
Re: WIP: multivariate statistics / proof of concept "Tomas Vondra" <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept Kevin Grittner <kgrittn@ymail.com>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept Michael Paquier <michael.paquier@gmail.com>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept Michael Paquier <michael.paquier@gmail.com>
Re: WIP: multivariate statistics / proof of concept Michael Paquier <michael.paquier@gmail.com>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: WIP: multivariate statistics / proof of concept Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: WIP: multivariate statistics / proof of concept Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: WIP: multivariate statistics / proof of concept Jeff Janes <jeff.janes@gmail.com>
Re: WIP: multivariate statistics / proof of concept Stephen Frost <sfrost@snowman.net>
Re: WIP: multivariate statistics / proof of concept Jeff Janes <jeff.janes@gmail.com>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v6 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v6 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics / patch v6 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v6 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics / patch v6 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v6 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics / patch v7 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Heikki Linnakangas <hlinnaka@iki.fi>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Heikki Linnakangas <hlinnaka@iki.fi>
Re: multivariate statistics / patch v7 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: multivariate statistics / patch v7 Michael Paquier <michael.paquier@gmail.com>
Re: WIP: multivariate statistics / proof of concept Robert Haas <robertmhaas@gmail.com>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: WIP: multivariate statistics / proof of concept Haribabu Kommi <kommi.haribabu@gmail.com>
Re: WIP: multivariate statistics / proof of concept David Rowley <dgrowleyml@gmail.com>
Re: WIP: multivariate statistics / proof of concept "Tomas Vondra" <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept David Rowley <dgrowleyml@gmail.com>
Re: WIP: multivariate statistics / proof of concept Tomas Vondra <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept Petr Jelinek <petr@2ndquadrant.com>
Re: WIP: multivariate statistics / proof of concept "Tomas Vondra" <tv@fuzzy.cz>
Re: WIP: multivariate statistics / proof of concept David Rowley <dgrowleyml@gmail.com>
Re: WIP: multivariate statistics / proof of concept "Tomas Vondra" <tv@fuzzy.cz>
Hi,

On 07/30/2015 06:58 PM, Heikki Linnakangas wrote:
>
> The problem with a threshold is that around that threshold, even a
> small change in the data set can drastically change the produced
> estimates. For example, imagine that we know from the stats that zip
> code implies city. But then someone adds a single row to the table
> with an odd zip code & city combination, which pushes the estimator
> over the threshold, and the columns are no longer considered
> dependent, and the estimates are now completely different. We should
> avoid steep cliffs like that.
>
> BTW, what is the threshold in the current patch?

There's not a simple threshold - the algorithm mining the functional 
dependencies is a bit more complicated. I tried to explain it in the 
comment before build_mv_dependencies (in dependencies.c), but let me 
briefly summarize it here.

To mine dependency [A => B], build_mv_dependencies does this:

(1) sort the sample by {A,B}

(2) split the sample into groups with the same value of A

(3) for each group, decide if it's consistent with the dependency
    (a) if the group is too small (less than 3 rows), ignore it
    (a) if the group is consistent, update
        n_supporting        n_supporting_rows
    (b) if the group is inconsistent, update
        n_contradictingn_contradicting_rows

(4) decide whether the dependency is "valid" by checking
    n_supporting_rows >= n_contradicting_rows * 10

The limit is rather arbitrary and yes - I can imagine a more complex 
condition (e.g. looking at average number of tuples per group etc.), but 
I haven't looked into that - the point was to use something very simple, 
only to illustrate the infrastructure.

I think we might come up with some elaborate way of associating "degree" 
with the functional dependency, but at that point we really loose the 
simplicity, and also make it indistinguishable from the remaining 
statistics (because it won't be possible to reduce the clauses like 
this, before performing the regular estimation). Which is exactly what 
makes the functional dependencies so neat and efficient, so I'm not 
overly enthusiastic about doing that.

What seems more interesting is implementing the ndistinct coefficient 
instead, as proposed by Kyotaro-san - that seems to have the nice 
"smooth" behavior you desire, while keeping the simplicity.

Both statistics types (functional dependencies and ndistinct coeff) have 
one weak point, though - they somehow assume the queries use 
"compatible" values. For example if you use a query with
   WHERE city = 'New York' AND zip = 'zip for Detroit'

they can't detect cases like this, because those statistics types are 
oblivious to individual values. I don't see this as a fatal flaw, though 
- it's rather a consequence of the nature of the stats. And I tend to 
look at the functional dependencies the same way.

If you need stats without these "issues" you'll have to use MCV list or 
a histogram. Trying to fix the simple statistics types is futile, IMHO.

regards
Tomas

--
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Josh Berkus
Дата:
Сообщение: Re: 64-bit XIDs again
FAQ