Skip to content

Commit

Permalink
Traduction de file-fdw pour 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
marco44 committed May 26, 2011
1 parent b67c971 commit 9c6f23c
Showing 1 changed file with 35 additions and 34 deletions.
69 changes: 35 additions & 34 deletions postgresql/file-fdw.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
</indexterm>

<para>
The <filename>file_fdw</filename> module provides the foreign-data wrapper
<function>file_fdw</function>, which can be used to access data
files in the server's filesystem. Data files must be in a format
that can be read by <command>COPY FROM</command>;
see <xref linkend="sql-copy"/> for details.
Le module <filename>file_fdw</filename> fournit le wrapper de données distantes
<function>file_fdw</function>, qui peut être utilisé pour accéder à des fichiers de
données situées sur le système de fichiers du serveur. Les fichiers de données doivent
être dans un format qui puisse être lu par <command>COPY FROM</command>; voyez
<xref linkend="sql-copy"/> pour les détails.
</para>

<para>
A foreign table created using this wrapper can have the following options:
Une table distante créée en utilisant ce wrapper peut avoir les options suivantes:
</para>

<variablelist>
Expand All @@ -26,7 +26,7 @@

<listitem>
<para>
Specifies the file to be read. Required. Must be an absolute path name.
Spécifie le fichier devant être lu. Requis. Doit être un chemin absolu.
</para>
</listitem>
</varlistentry>
Expand All @@ -36,8 +36,8 @@

<listitem>
<para>
Specifies the file's format,
the same as <command>COPY</command>'s <literal>FORMAT</literal> option.
Spécifie le format du fichier, comme dans l'option <literal>FORMAT</literal>
de la commande <command>COPY</command>.
</para>
</listitem>
</varlistentry>
Expand All @@ -47,8 +47,8 @@

<listitem>
<para>
Specifies whether the file has a header line,
the same as <command>COPY</command>'s <literal>HEADER</literal> option.
Spécifie si le fichier a une ligne d'entête, comme l'option <literal>HEADER</literal>
de la commande <command>COPY</command>.
</para>
</listitem>
</varlistentry>
Expand All @@ -58,8 +58,8 @@

<listitem>
<para>
Specifies the file's delimiter character,
the same as <command>COPY</command>'s <literal>DELIMITER</literal> option.
Spécifie le caractère délimiteur du fichier, comme l'option <literal>DELIMITER</literal>
de la commande <command>COPY</command>.
</para>
</listitem>
</varlistentry>
Expand All @@ -69,8 +69,8 @@

<listitem>
<para>
Specifies the file's quote character,
the same as <command>COPY</command>'s <literal>QUOTE</literal> option.
Spécifie le caractère guillemet, comme l'option <literal>QUOTE</literal>
de la commande <command>COPY</command>.
</para>
</listitem>
</varlistentry>
Expand All @@ -80,8 +80,8 @@

<listitem>
<para>
Specifies the file's escape character,
the same as <command>COPY</command>'s <literal>ESCAPE</literal> option.
Spécifie le caractère d'échappement du fichier, comme l'option <literal>ESCAPE</literal>
de la commande <command>COPY</command>.
</para>
</listitem>
</varlistentry>
Expand All @@ -91,8 +91,8 @@

<listitem>
<para>
Specifies the file's null string,
the same as <command>COPY</command>'s <literal>NULL</literal> option.
Spécifie la chaîne null du fichier, comme l'option <literal>NULL</literal>
de la commande <command>COPY</command>.
</para>
</listitem>
</varlistentry>
Expand All @@ -102,37 +102,38 @@

<listitem>
<para>
Specifies the file's encoding.
the same as <command>COPY</command>'s <literal>ENCODING</literal> option.
Spécifie l'encodage du fichier, comme l'option <literal>ENCODING</literal>
de la commande <command>COPY</command>.
</para>
</listitem>
</varlistentry>

</variablelist>

<para>
<command>COPY</command>'s <literal>OIDS</literal>, <literal>FORCE_QUOTE</literal>,
and <literal>FORCE_NOT_NULL</literal> options are currently not supported by
<literal>file_fdw</literal>.
Les options <literal>OIDS</literal>, <literal>FORCE_QUOTE</literal>,
et <literal>FORCE_NOT_NULL</literal> de <command>COPY</command> ne sont
pas supportées par <literal>file_fdw</literal> pour le moment.
</para>

<para>
These options can only be specified for a foreign table, not in the
options of the <literal>file_fdw</literal> foreign-data wrapper, nor in the
options of a server or user mapping using the wrapper.
Ces options ne peuvent être spécifiées que pour une table distante,
pas comme options du wrapper de données distantes <literal>file_fdw</literal>,
pas plus cque comme des options d'un serveur ou d'un mapping d'utilisateur
utilisant le wrapper.
</para>

<para>
Changing table-level options requires superuser privileges, for security
reasons: only a superuser should be able to determine which file is read.
In principle non-superusers could be allowed to change the other options,
but that's not supported at present.
Changer les options au niveau des tables nécessite des privilèges superutilisateur, pour
des raisons de sécurité: seul un superutilisateur devrait pouvoir déterminer quel fichier est lu.
En principe des non-superutilisateurs devraient avoir le droit de modifier ces options,
mais ce n'est pas supporté pour le moment.
</para>

<para>
For a foreign table using <literal>file_fdw</literal>, <command>EXPLAIN</command> shows
the name of the file to be read. Unless <literal>COSTS OFF</literal> is
specified, the file size (in bytes) is shown as well.
Pour une table utilisant <literal>file_fdw</literal>, <command>EXPLAIN</command> montre
le nom du fichier devant être lu. À moins que <literal>COSTS OFF</literal> soit spécifié,
la taille du fichier (en octets) est affichée aussi.
</para>

</sect1>

0 comments on commit 9c6f23c

Please sign in to comment.