Skip to content

Commit

Permalink
Traduction du chapitre sur les fonctions d'information statistiques
Browse files Browse the repository at this point in the history
  • Loading branch information
gleu committed Oct 16, 2020
1 parent 40d91ba commit 895d8b1
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions postgresql/func.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27032,20 +27032,21 @@ CREATE EVENT TRIGGER test_table_rewrite_oid
</sect1>

<sect1 id="functions-statistics">
<title>Statistics Information Functions</title>
<title>Fonctions d'informations statistiques</title>

<indexterm zone="functions-statistics">
<primary>function</primary>
<secondary>statistics</secondary>
<primary>fonction</primary>
<secondary>statistiques</secondary>
</indexterm>

<para>
<productname>PostgreSQL</productname> provides a function to inspect complex
statistics defined using the <command>CREATE STATISTICS</command> command.
<productname>PostgreSQL</productname> fournit une fonction pour inspecter
les statistiques complexes définies en utilisant la commande
<command>CREATE STATISTICS</command>.
</para>

<sect2 id="functions-statistics-mcv">
<title>Inspecting MCV Lists</title>
<title>Inspecter les listes MCV</title>

<indexterm>
<primary>pg_mcv_list_items</primary>
Expand All @@ -27056,15 +27057,15 @@ CREATE EVENT TRIGGER test_table_rewrite_oid
</synopsis>

<para>
<function>pg_mcv_list_items</function> returns a set of records describing
all items stored in a multi-column <acronym>MCV</acronym> list. It
returns the following columns:
<function>pg_mcv_list_items</function> renvoie un ensemble d'enregistrements
décrivant tous les éléments enregistrés dans une liste <acronym>MCV</acronym>
multi-colonnes. Elle renvoie les colonnes suivantes&nbsp;:

<informaltable>
<tgroup cols="3">
<thead>
<row>
<entry>Name</entry>
<entry>Nom</entry>
<entry>Type</entry>
<entry>Description</entry>
</row>
Expand All @@ -27074,44 +27075,45 @@ CREATE EVENT TRIGGER test_table_rewrite_oid
<row>
<entry><literal>index</literal></entry>
<entry><type>integer</type></entry>
<entry>index of the item in the <acronym>MCV</acronym> list</entry>
<entry>index de l'élément dans la liste <acronym>MCV</acronym></entry>
</row>
<row>
<entry><literal>values</literal></entry>
<entry><type>text[]</type></entry>
<entry>values stored in the MCV item</entry>
<entry>valeurs enregistrées dans l'élément MCV</entry>
</row>
<row>
<entry><literal>nulls</literal></entry>
<entry><type>boolean[]</type></entry>
<entry>flags identifying <literal>NULL</literal> values</entry>
<entry>drapeaux identifiant les valeurs <literal>NULL</literal></entry>
</row>
<row>
<entry><literal>frequency</literal></entry>
<entry><type>double precision</type></entry>
<entry>frequency of this <acronym>MCV</acronym> item</entry>
<entry>fréquence de cet élément <acronym>MCV</acronym></entry>
</row>
<row>
<entry><literal>base_frequency</literal></entry>
<entry><type>double precision</type></entry>
<entry>base frequency of this <acronym>MCV</acronym> item</entry>
<entry>fréquence de base de cet élément <acronym>MCV</acronym></entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>

<para>
The <function>pg_mcv_list_items</function> function can be used like this:
La fonction <function>pg_mcv_list_items</function> peut être utilisée comme
ceci&nbsp;:

<programlisting>
SELECT m.* FROM pg_statistic_ext join pg_statistic_ext_data on (oid = stxoid),
pg_mcv_list_items(stxdmcv) m WHERE stxname = 'stts';
</programlisting>

Values of the <type>pg_mcv_list</type> type can be obtained only from the
<structname>pg_statistic_ext_data</structname>.<structfield>stxdmcv</structfield>
column.
Les valeurs du type <type>pg_mcv_list</type> peut être obtenues seulement
à partir de la colonne
<structname>pg_statistic_ext_data</structname>.<structfield>stxdmcv</structfield>.
</para>
</sect2>

Expand Down

0 comments on commit 895d8b1

Please sign in to comment.