Skip to content

Commit

Permalink
Suite de la traduction de la RC1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gleu committed Aug 31, 2010
1 parent ede04bc commit b46a0be
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 101 deletions.
49 changes: 26 additions & 23 deletions postgresql/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -446,17 +446,18 @@ include 'nom_fichier'
</para>

<para>
In addition to the socket file itself, which is named
<literal>.s.PGSQL.<replaceable>nnnn</replaceable></literal> where
<replaceable>nnnn</replaceable> is the server's port number, an ordinary file
named <literal>.s.PGSQL.<replaceable>nnnn</replaceable>.lock</literal> will be
created in the <varname>unix_socket_directory</varname> directory. Neither
file should ever be removed manually.
En plus du fichier socket, qui est nommé
<literal>.s.PGSQL.<replaceable>nnnn</replaceable></literal> où
<replaceable>nnnn</replaceable> est le numéro de port du serveur, un
fichier ordinaire nommé
<literal>.s.PGSQL.<replaceable>nnnn</replaceable>.lock</literal> sera
créé dans le répertoire <varname>unix_socket_directory</varname>.
Les deux fichiers ne doivent pas être supprimés manuellement.
</para>

<para>
This parameter is irrelevant on Windows, which does not have
Unix-domain sockets.
Ce paramètre n'a aucun intérêt sous Windows car ce système n'a pas
de sockets domaine Unix.
</para>
</listitem>
</varlistentry>
Expand All @@ -481,8 +482,8 @@ include 'nom_fichier'
</para>

<para>
This parameter is irrelevant on Windows, which does not have
Unix-domain sockets.
Ce paramètre n'a aucun intérêt sous Windows car ce système n'a pas
de sockets domaine Unix.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -524,8 +525,8 @@ include 'nom_fichier'
</para>

<para>
This parameter is irrelevant on Windows, which does not have
Unix-domain sockets.
Ce paramètre n'a aucun intérêt sous Windows car ce système n'a pas
de sockets domaine Unix.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -4392,9 +4393,10 @@ COPY postgres_log FROM '/chemin/complet/vers/le/logfile.csv' WITH csv;
</para>

<para>
Vacuum also allows removal of old files from the
<filename>pg_clog</filename> subdirectory, which is why the default
is a relatively low 200 million transactions. Ce paramètre
L'opération VACUUM supprime aussi les anciens fichiers du
sous-répertoire <filename>pg_clog</filename>, ce qui explique pourquoi
la valeur par défaut est relativement basse (200 million transactions).
Ce paramètre
n'est lu qu'au démarrage du serveur mais il peut être diminué pour
toute table en modifiant les paramètres de stockage. Pour plus
d'informations, voir <xref linkend="vacuum-for-wraparound"/>.
Expand Down Expand Up @@ -6040,14 +6042,15 @@ plruby.use_strict = true # generates error, unknown class name</programli
Standby. Les valeurs valides sont <literal>DEBUG5</literal>,
<literal>DEBUG4</literal>, <literal>DEBUG3</literal>,
<literal>DEBUG2</literal>, <literal>DEBUG1</literal> et
<literal>LOG</literal>. The default, <literal>LOG</literal>, does not affect
logging decisions at all. The other values cause recovery-related
debug messages of that priority or higher to be logged as though they
had <literal>LOG</literal> priority; for common settings of
<varname>log_min_messages</varname> this results in unconditionally sending
them to the server log.
This parameter can only be set in the <filename>postgresql.conf</filename>
file or on the server command line.
<literal>LOG</literal>. La valeur par défaut, <literal>LOG</literal>,
n'affecte pas les décisions de trace. Les autres valeurs causent
l'apparition de messages de débogage relatifs à la restauration pour
tous les messages de ce niveau et des niveaux supérieurs. Elles utilisent
malgré tout le niveau <literal>LOG</literal>&nbsp;; pour les
configurations habituelles de <varname>log_min_messages</varname>, cela
résulte en un envoi sans condition dans les traces du serveur.
Ce paramètre ne peut être configuré que dans le fichier
<filename>postgresql.conf</filename> ou indiqué sur la ligne de commande.
</para>
</listitem>
</varlistentry>
Expand Down
26 changes: 13 additions & 13 deletions postgresql/ddl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ DROP TABLE produits;</programlisting>
</para>

<para>
Adding a unique constraint will automatically create a unique btree
index on the column or group of columns used in the constraint.
L'ajout d'une contrainte unique créera automatiquement un index B-tree
unique sur la colonne ou le groupe de colonnes utilisé dans la contrainte.
</para>

<indexterm>
Expand Down Expand Up @@ -611,8 +611,8 @@ DROP TABLE produits;</programlisting>
</para>

<para>
Adding a primary key will automatically create a unique btree index
on the column or group of columns used in the primary key.
L'ajout d'une clé primaire créera automatiquement un index B-tree unique
sur la colonne ou le groupe de colonnes utilisé dans la clé primaire.
</para>

<para>
Expand Down Expand Up @@ -823,13 +823,13 @@ DROP TABLE produits;</programlisting>
</para>

<para>
Since a <command>DELETE</command> of a row from the referenced table
or an <command>UPDATE</command> of a referenced column will require
a scan of the referencing table for rows matching the old value, it
is often a good idea to index the referencing columns. Because this
is not always needed, and there are many choices available on how
to index, declaration of a foreign key constraint does not
automatically create an index on the referencing columns.
Comme la suppression d'une ligne de la table référencée ou la mise à jour
d'une colonne référencée nécessitera un parcours de la table référée pour
trouver les lignes correspondant à l'ancienne valeur, il est souvent
intéressant d'indexer les colonnes référencées. Comme cela n'est pas
toujours nécessaire et qu'il y a du choix sur la façon d'indexer, l'ajout
d'une contrainte de clé étrangère ne crée pas automatiquement un index sur
les colonnes référencées.
</para>

<para>
Expand Down Expand Up @@ -878,8 +878,8 @@ CREATE TABLE cercles (
</para>

<para>
Adding an exclusion constraint will automatically create an index
of the type specified in the constraint declaration.
L'ajout d'une contrainte d'exclusion créera automatiquement un index du
type spécifié dans la déclaration de la contrainte.
</para>
</sect2>
</sect1>
Expand Down
28 changes: 15 additions & 13 deletions postgresql/plpython.xml
Original file line number Diff line number Diff line change
Expand Up @@ -972,17 +972,18 @@ $$ LANGUAGE plpythonu;


<sect1 id="plpython-envar">
<title>Environment Variables</title>
<title>Variables d'environnement</title>

<para>
Some of the environment variables that are accepted by the Python
interpreter can also be used to affect PL/Python behavior. They
would need to be set in the environment of the main PostgreSQL
server process, for example in a start script. The available
environment variables depend on the version of Python; see the
Python documentation for details. At the time of this writing, the
following environment variables have an affect on PL/Python,
assuming an adequate Python version:
Certaines des variables d'environnement qui sont acceptées par
l'interpréteur Python peuvent aussi être utilisées pour modifier le
comportement de PL/Python. Elles doivent être configurées dans
l'environnement du processus serveur PostgreSQL principal, par exemple dans
le script de démarrage. Les variables d'environnement disponibles dépendent
de la version de Python&nbsp;; voir la documentation de Python pour les
détails. Au moment de l'écriture de ce chapitre, les variables
d'environnement suivantes avaient un comportement sur PL/Python, à
condition d'utiliser une version adéquate de Python&nbsp;:
<itemizedlist>
<listitem>
<para><envar>PYTHONHOME</envar></para>
Expand Down Expand Up @@ -1025,10 +1026,11 @@ $$ LANGUAGE plpythonu;
</listitem>
</itemizedlist>

(It appears to be a Python implementation detail beyond the control
of PL/Python that some of the environment variables listed on
the <command>python</command> man page are only effective in a
command-line interpreter and not an embedded Python interpreter.)
(Cela semble être un détail d'implémentation de Python, en dehors du
contrôle de PL/Python, qui fait que certaines variables d'environnement
listées dans la page man de <command>python</command> sont seulement
utilisables avec l'interpréteur en ligne de commande et non avec
un interpréteur Python embarqué.)
</para>
</sect1>
</chapter>
52 changes: 26 additions & 26 deletions postgresql/textsearch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2158,10 +2158,10 @@ SELECT alias, description, token FROM ts_debug('http://example.com/stuff/index.h
</listitem>
<listitem>
<para>
a single lexeme with the <literal>TSL_FILTER</literal> flag set, to replace
the original token with a new token to be passed to subsequent
dictionaries (a dictionary that does this is called a
<firstterm>filtering dictionary</firstterm>)
un unique lexeme avec le drapeau <literal>TSL_FILTER</literal> configuré,
pour remplacer le jeton original avec un nouveau jeton à passer aux
dictionnaires suivants (un dictionnaire de ce type est appelé un
<firstterm>dictionnaire filtrant</firstterm>)
</para>
</listitem>
<listitem>
Expand Down Expand Up @@ -2197,11 +2197,11 @@ SELECT alias, description, token FROM ts_debug('http://example.com/stuff/index.h
est trouvée par l'analyseur, chaque dictionnaire de la liste est consulté
jusqu'à ce qu'un dictionnaire le reconnaisse comme un mot connu. S'il est
identifié comme un terme courant ou si aucun dictionnaire ne le reconnait,
il sera ignoré et non indexé.
Normally, the first dictionary that returns a non-<literal>NULL</literal>
output determines the result, and any remaining dictionaries are not
consulted; but a filtering dictionary can replace the given word
with a modified word, which is then passed to subsequent dictionaries.
il sera ignoré et non indexé. Normalement, le premier dictionnaire qui
renvoie une sortie non <literal>NULL</literal> détermine le résultat et
tout dictionnaire restant n'est pas consulté&nbsp;; par contre, un
dictionnaire filtrant peut remplacer le mot donné avec un autre mot qui
est ensuite passé aux dictionnaires suivants.
</para>

<para>
Expand All @@ -2223,13 +2223,13 @@ ALTER TEXT SEARCH CONFIGURATION astro_en
</para>

<para>
A filtering dictionary can be placed anywhere in the list, except at the
end where it'd be useless. Filtering dictionaries are useful to partially
normalize words to simplify the task of later dictionaries. For example,
a filtering dictionary could be used to remove accents from accented
letters, as is done by the
<link linkend="unaccent"><filename>contrib/unaccent</filename></link>
extension module.
Un dictionnaire filtrant peut être placé n'importe où dans la liste.
Cependant, le placer à la fin n'a aucun intérêt. Les dictionnaires filtrants
sont utiles pour normaliser partiellement les mots, ce qui permet de
simplifier la tâche aux dictionnaires suivants. Par exemple, un dictionnaire
filtrant peut être utilisé pour supprimer les accents des lettres accentués.
C'est ce que fait le module contrib
<link linkend="unaccent"><filename>contrib/unaccent</filename></link>.
</para>

<sect2 id="textsearch-stopwords">
Expand Down Expand Up @@ -2448,23 +2448,23 @@ SELECT * FROM ts_debug('english', 'Paris');
</para>

<para>
An asterisk (<literal>*</literal>) can be placed at the end of a synonym
in the configuration file. This indicates that the synonym is a prefix.
The asterisk is ignored when the entry is used in
<function>to_tsvector()</function>, but when it is used in
<function>to_tsquery()</function>, the result will be a query item with
the prefix match marker (see
<xref linkend="textsearch-parsing-queries"/>).
For example, suppose we have these entries in
<filename>$SHAREDIR/tsearch_data/synonym_sample.syn</filename>:
Un astérisque (<literal>*</literal>) peut être placé à la fin d'un synonyme
dans le fichier de configuration. Ceci indique que le synonyme est un
préfixe. L'astérisque est ignoré quand l'entrée est utilisée dans
<function>to_tsvector()</function>, mais quand il est utilisé dans
<function>to_tsquery()</function>, le résultat sera un élément de la
requête avec le marqueur de correspondance du préfixe (voir
<xref linkend="textsearch-parsing-queries"/>). Par exemple, supposons
que nous avons ces entrées dans
<filename>$SHAREDIR/tsearch_data/synonym_sample.syn</filename>&nbsp;:
<programlisting>
postgres pgsql
postgresql pgsql
postgre pgsql
gogle googl
indices index*
</programlisting>
Then we will get these results:
Alors nous obtiendrons les résultats suivants&nbsp;:
<screen>
mydb=# CREATE TEXT SEARCH DICTIONARY syn (template=synonym, synonyms='synonym_sample');
mydb=# SELECT ts_lexize('syn','indices');
Expand Down
52 changes: 26 additions & 26 deletions postgresql/unaccent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@

<para>
<filename>unaccent</filename> is a text search dictionary that supprime les
accents d'un lexeme. C'est un
dictionnaire de filtre, ce qui signifie que sa sortie est passée au prochain
dictionnaire (s'il y en a un), unlike the normal
behavior of dictionaries. This allows accent-insensitive processing
for full text search.
accents d'un lexeme. C'est un dictionnaire de filtre, ce qui signifie que sa
sortie est passée au prochain dictionnaire (s'il y en a un), contrairement
au comportement normal des dictionnaires. Cela permet le traitement des
accents pour la recherche plein texte.
</para>

<para>
Expand Down Expand Up @@ -46,40 +45,40 @@
<itemizedlist>
<listitem>
<para>
Chaque ligne représente une paire, consisting of a character with accent
followed by a character without accent. The first is translated into
the second. For example,
<programlisting>
&Agrave; A
Chaque ligne représente une paire, consistant en un caractère avec accent
suivi par un caractère sans accent. Le premier est traduit par le second.
Par exemple&nbsp;:
<programlisting>&Agrave; A
&Aacute; A
&Acirc; A
&Atilde; A
&Auml; A
&Aring; A
&AElig; A
</programlisting>
&AElig; A</programlisting>
</para>
</listitem>
</itemizedlist>

<para>
A more complete example, which is directly useful for most European
languages, can be found in <filename>unaccent.rules</filename>, which is installed
in <filename>$SHAREDIR/tsearch_data/</filename> when the <filename>unaccent</filename>
module is installed.
Un exemple plus complet, qui est directement utile pour les langages
européens, se trouve dans <filename>unaccent.rules</filename>, qui est
installé dans le répertoire <filename>$SHAREDIR/tsearch_data/</filename>
une fois le module <filename>unaccent</filename> installé.
</para>
</sect2>

<sect2>
<title>Utilisation</title>

<para>
Running the installation script <filename>unaccent.sql</filename> creates a text
search template <literal>unaccent</literal> and a dictionary <literal>unaccent</literal>
based on it. The <literal>unaccent</literal> dictionary has the default
parameter setting <literal>RULES='unaccent'</literal>, which makes it immediately
usable with the standard <filename>unaccent.rules</filename> file.
If you wish, you can alter the parameter, for example
L'exécution du script d'installation <filename>unaccent.sql</filename> crée
un modèle de recherche de texte appelé <literal>unaccent</literal> et un
dictionnaire basé sur ce modèle, appelé lui-aussi
<literal>unaccent</literal>. Le dictionnaire <literal>unaccent</literal> a
le paramètre par défaut <literal>RULES='unaccent'</literal>, qui le rend
directement utilisable avec le fichier standard
<filename>unaccent.rules</filename>. Si vous le souhaitez, vous pouvez
modifier le paramètre. Par exemple&nbsp;:

<programlisting>
ma_base=# ALTER TEXT SEARCH DICTIONARY unaccent (RULES='mes_regles');
Expand All @@ -101,8 +100,9 @@ ma_base=# select ts_lexize('unaccent','Hôtel');
</para>

<para>
Here is an example showing how to insert the
<filename>unaccent</filename> dictionary into a text search configuration:
Voici un exemple montrant comment installer le dictionnaire
<filename>unaccent</filename> dans une configuration de recherche plein
texte&nbsp;:
<programlisting>
ma_base=# CREATE TEXT SEARCH CONFIGURATION fr ( COPY = french );
ma_base=# ALTER TEXT SEARCH CONFIGURATION fr
Expand Down Expand Up @@ -135,8 +135,8 @@ ma_base=# select ts_headline('fr','Hôtel de la Mer',to_tsquery('fr','Hotels'));
<para>
La fonction <function>unaccent()</function> supprime les accents d'une
chaîne de caractères donnée. Il utilise le dictionnaire
<filename>unaccent</filename>, but it can be used outside normal
text search contexts.
<filename>unaccent</filename> mais il peut être utilisé en dehors du
contexte normal de la recherche plein texte.
</para>

<indexterm>
Expand Down

0 comments on commit b46a0be

Please sign in to comment.