Skip to content

Commit

Permalink
Translate pgstatstatements.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju authored and gleu committed Jun 16, 2017
1 parent e0225d4 commit 7edbd4b
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions postgresql/pgstatstatements.xml
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@
</table>

<para>
For security reasons, only superusers and members of the
<literal>pg_read_all_stats</literal> role are allowed to see the SQL text and
<structfield>queryid</structfield> of queries executed by other users.
Other users can see the statistics, however, if the view has been installed
in their database.
Pour raisons de sécurité, seuls les super utilisateurs et les membres du
rôle <literal>pg_read_all_stats</literal> sont autorisé à voir le texte SQL
ainsi que le champ <structfield>queryid</structfield> des requêtes exécutées
par d'autres utilisateurs. Les autres utilisateurs peuvent cependant voir
les statistiques, si la vue a été installée dans leur base de données.
</para>

<para>
Expand All @@ -269,13 +269,13 @@
</para>

<para>
When a constant's value has been ignored for purposes of matching the query
to other queries, the constant is replaced by a parameter symbol, such
as <literal>$1</literal>, in the <structname>pg_stat_statements</structname>
display.
The rest of the query text is that of the first query that had the
particular <structfield>queryid</structfield> hash value associated with the
<structname>pg_stat_statements</structname> entry.
Quand la valeur d'une constante a été ignorée pour pouvoir comparer la
requête à d'autres requêtes, la constante est remplacée par un symbole de
paramètre, tel que <literal>$1</literal>, dans l'affichage de
<structname>pg_stat_statements</structname>. Le reste du texte de la
requête est tel qu'était la première requête ayant la valeur de hashage
<structfield>queryid</structfield> spécifique assoiée à l'entrée dans
<structname>pg_stat_statements</structname>.
</para>

<para>
Expand Down Expand Up @@ -332,15 +332,17 @@
</para>

<para>
The parameter symbols used to replace constants in
representative query texts start from the next number after the
highest <literal>$</literal><replaceable>n</replaceable> parameter in the original query
text, or <literal>$1</literal> if there was none. It's worth noting that in
some cases there may be hidden parameter symbols that affect this
numbering. For example, <application>PL/pgSQL</application> uses hidden parameter
symbols to insert values of function local variables into queries, so that
a <application>PL/pgSQL</application> statement like <literal>SELECT i + 1 INTO j</literal>
would have representative text like <literal>SELECT i + $2</literal>.
Le symbole de paramètre utilité pour remplacer les constantes dans le texte
représentatif de la requête démarre après le plus grand paramètre
<literal>$</literal><replaceable>n</replaceable> dans le texte de la requête
originale, ou <literal>$1</literal> s'il n'y en avait pas. Il est
intéressant de noter que dans cerains cas il pourrait y avoir un symbole de
paramètre caché qui affecte cette numérotation. Par exemple,
<application>PL/pgSQL</application> utilise des symbole de paramètre cachés
pour insérer des valeurs de variables locales à la fonction dans les
requêtes, ainsi un ordre <application>PL/pgSQL</application> comme
<literal>SELECT i + 1 INTO j</literal> aurait un texte représentatif tel que
<literal>SELECT i + $2</literal>.
</para>

<para>
Expand Down

0 comments on commit 7edbd4b

Please sign in to comment.