doc: Reword unexplained abbreviation
authorDaniel Gustafsson <[email protected]>
Wed, 12 Apr 2023 14:16:12 +0000 (16:16 +0200)
committerDaniel Gustafsson <[email protected]>
Wed, 12 Apr 2023 14:16:12 +0000 (16:16 +0200)
The previous wording used MVF to indicate the Most Common Values'
Frequencies, but the abbreviation was never explained or defined.
Reword to mcv_freqs to make the use clearer.

Also add MCF and MCV as acronyms as they were using <acronym>
markup but were missing from the acronyms page.

Reported-by: Eric Mutta <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/166112292492.654.5377188452604176150@wrigleys.postgresql.org

doc/src/sgml/acronyms.sgml
doc/src/sgml/planstats.sgml

index 2df6559accce57af2304f4a4cbef4b711c390275..a60ff54a6ce1c8b4d7f31664887d6146fe2ee8c0 100644 (file)
     </listitem>
    </varlistentry>
 
+   <varlistentry>
+    <term><acronym>MCF</acronym></term>
+    <listitem>
+     <para>
+      Most Common Frequency, that is the frequency associated with some
+      Most Common Value
+     </para>
+    </listitem>
+   </varlistentry>
+
+   <varlistentry>
+    <term><acronym>MCV</acronym></term>
+    <listitem>
+     <para>
+      Most Common Value, one of the values appearing most often within a
+      particular table column
+     </para>
+    </listitem>
+   </varlistentry>
+
    <varlistentry>
     <term><acronym>MITM</acronym></term>
     <listitem>
index df85ea5eea48c07be23c6bbf33916cac2ebf8db0..d2b84b301f5c6c9af4584774c7d18d9206b2848c 100644 (file)
@@ -203,7 +203,7 @@ EXPLAIN SELECT * FROM tenk1 WHERE stringu1 = 'xxx';
    <acronym>MCV</acronym>s:
 
 <programlisting>
-selectivity = (1 - sum(mvf))/(num_distinct - num_mcv)
+selectivity = (1 - sum(mcv_freqs))/(num_distinct - num_mcv)
             = (1 - (0.00333333 + 0.003 + 0.003 + 0.003 + 0.003 + 0.003 +
                     0.003 + 0.003 + 0.003 + 0.003))/(676 - 10)
             = 0.0014559