From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
Cc: | eric(dot)mutta(at)gmail(dot)com |
Subject: | Should 'sum(mvf)' read 'sum(mcv)'...? |
Date: | 2022-08-21 23:02:04 |
Message-ID: | 166112292492.654.5377188452604176150@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/14/row-estimation-examples.html
Description:
About halfway down this page
https://www.postgresql.org/docs/current/row-estimation-examples.html we see
the following formula for calculating selectivity:
> selectivity = (1 - sum(mvf))/(num_distinct - num_mcv)
And just below the formula we see the explanatory sentence saying:
> That is, add up all the frequencies for the MCVs and subtract them from
one, ...
It appears the above sentence is referring to the "(1 - sum(mvf))" portion
of the formula, however I am not sure what "mvf" is referring to
there...shouldn't it be "(1 - sum(mcv))" in order to match what the
explanatory sentence is saying?
Many thanks,
Eric Mutta.
From | Date | Subject | |
---|---|---|---|
Next Message | Julien Rouhaud | 2022-08-22 07:48:37 | Re: Should 'sum(mvf)' read 'sum(mcv)'...? |
Previous Message | Tom Lane | 2022-08-21 19:14:21 | Re: Typo in description of PROGRAM parameter for the COPY command |