Skip to content

Commit

Permalink
Une traduction supplémentaire
Browse files Browse the repository at this point in the history
  • Loading branch information
julien2512 authored and gleu committed May 27, 2011
1 parent 6b32f3f commit 11092fc
Showing 1 changed file with 44 additions and 42 deletions.
86 changes: 44 additions & 42 deletions postgresql/ref/create_foreign_table.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<refmeta>
<refentrytitle>CREATE FOREIGN TABLE</refentrytitle>
<manvolnum>7</manvolnum>
<refmiscinfo>SQL - Language Statements</refmiscinfo>
<refmiscinfo>SQL - Instructions de langage</refmiscinfo>
</refmeta>

<refnamediv>
<refname>CREATE FOREIGN TABLE</refname>
<refpurpose>define a new foreign table</refpurpose>
<refpurpose>crée une nouvelle table distante</refpurpose>
</refnamediv>

<indexterm zone="sql-createforeigntable">
Expand All @@ -32,41 +32,39 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
<title>Description</title>

<para>
<command>CREATE FOREIGN TABLE</command> will create a new foreign table
in the current database. The table will be owned by the user issuing the
command.
La commande <command>CREATE FOREIGN TABLE</command> crée une nouvelle table distante
dans la base de données courante. La table distante appartient à l'utilisateur qui
exécute cette commande.
</para>

<para>
If a schema name is given (for example, <literal>CREATE FOREIGN TABLE
myschema.mytable ...</literal>) then the table is created in the specified
schema. Otherwise it is created in the current schema.
The name of the foreign table must be
distinct from the name of any other foreign table, table, sequence, index,
or view in the same schema.
Si un nom de schema est spécifié (par exemple, <literal>CREATE FOREIGN TABLE
monschema.matable ...</literal>), alors la table sera créée dans le schéma
spécifié. Sinon, il sera créé dans le schéma courant.
Le nom de la table distante doit être différent du nom des autres tables distantes,
tables, séquences, index ou vues du même schéma.
</para>

<para>
<command>CREATE FOREIGN TABLE</command> also automatically creates a data
type that represents the composite type corresponding to one row of
the foreign table. Therefore, foreign tables cannot have the same
name as any existing data type in the same schema.
La commande <command>CREATE FOREIGN TABLE</command> crée aussi automatiquement
un type de donnée qui représente le type composite correspondant à une ligne
de la table distante. En conséquence, une table distante ne peut pas avoir
le même nom qu'un type de donnée existant dans le même schéma.
</para>
</refsect1>

<refsect1>
<title>Parameters</title>
<title>Paramètres</title>

<variablelist>

<varlistentry>
<term><literal>IF NOT EXISTS</literal></term>
<listitem>
<para>
Do not throw an error if a relation with the same name already exists.
A notice is issued in this case. Note that there is no guarantee that
the existing relation is anything like the one that would have been
created.
Permet de ne pas retourner d'erreur si une table distante de même nom existe déjà.
Une simple notice est alors rapportée. À noter que la table distante existante
n'a potentiellement aucun lien avec la table distante qui aurait pu être créée.
</para>
</listitem>
</varlistentry>
Expand All @@ -75,7 +73,8 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
<term><replaceable class="PARAMETER">table_name</replaceable></term>
<listitem>
<para>
The name (optionally schema-qualified) of the table to be created.
Le nom de la table distante à créer.
Il est aussi possible de spécifier le schéma qui contient cette table.
</para>
</listitem>
</varlistentry>
Expand All @@ -84,7 +83,7 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
<term><replaceable class="PARAMETER">column_name</replaceable></term>
<listitem>
<para>
The name of a column to be created in the new table.
Le nom de la colonne à créer dans cette nouvelle table distante.
</para>
</listitem>
</varlistentry>
Expand All @@ -93,9 +92,10 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
<term><replaceable class="PARAMETER">data_type</replaceable></term>
<listitem>
<para>
The data type of the column. This can include array
specifiers. For more information on the data types supported by
<productname>PostgreSQL</productname>, refer to <xref
Le type de donnée de la colonne. Cela peut inclure des spécificateurs
de tableaux.
Pour plus d'information sur les types de données supportés par
<productname>PostgreSQL</productname>, se référer à <xref
linkend="datatype"/>.
</para>
</listitem>
Expand All @@ -105,7 +105,7 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
<term><literal>NOT NULL</literal></term>
<listitem>
<para>
The column is not allowed to contain null values.
Interdiction des valeurs NULL dans la colonne.
</para>
</listitem>
</varlistentry>
Expand All @@ -114,13 +114,12 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
<term><literal>NULL</literal></term>
<listitem>
<para>
The column is allowed to contain null values. This is the default.
Les valeurs NULL sont autorisées pour la colonne. Il s'agit du comportement par défaut.
</para>

<para>
This clause is only provided for compatibility with
non-standard SQL databases. Its use is discouraged in new
applications.
Cette clause n'est fournie que pour des raisons de compatibilité avec les bases de données
SQL non standard. Son utilisation n'est pas encouragée dans les nouvelles applications.
</para>
</listitem>
</varlistentry>
Expand All @@ -129,7 +128,7 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
<term><replaceable class="PARAMETER">server_name</replaceable></term>
<listitem>
<para>
The name of an existing server for the foreign table.
Le nom d'un serveur existant pour la table distante.
</para>
</listitem>
</varlistentry>
Expand All @@ -138,10 +137,11 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name
<term><literal>OPTIONS ( <replaceable class="PARAMETER">option</replaceable> '<replaceable class="PARAMETER">value</replaceable>' [, ...] )</literal></term>
<listitem>
<para>
Options to be associated with the new foreign table.
The allowed option names and values are specific to each foreign
data wrapper and are validated using the foreign-data wrapper's
validator function. Option names must be unique.
Options qui peuvent être associés à la nouvelle table distante.
Les noms des options autorisées et leurs valeurs sont spécifiques
à chaque wrapper de données distantes et son validées en utilisant
la fonction de validation du wrapper de données distantes. Le nom
de chaque option doit être unique.
</para>
</listitem>
</varlistentry>
Expand All @@ -152,10 +152,11 @@ CREATE FOREIGN TABLE [ IF NOT EXISTS ] <replaceable class="PARAMETER">table_name


<refsect1 id="SQL-CREATEFOREIGNTABLE-examples">
<title>Examples</title>
<title>Exemples</title>

<para>
Create foreign table <structname>films</structname> with <structname>film_server</structname>:
Créer une table distante <structname>films</structname> avec le serveur
<structname>film_server</structname>&nbsp;:

<programlisting>
CREATE FOREIGN TABLE films (
Expand All @@ -173,19 +174,20 @@ SERVER film_server;
</refsect1>

<refsect1 id="SQL-CREATEFOREIGNTABLE-compatibility">
<title id="SQL-CREATEFOREIGNTABLE-compatibility-title">Compatibility</title>
<title id="SQL-CREATEFOREIGNTABLE-compatibility-title">Compatibilité</title>

<para>
The <command>CREATE FOREIGN TABLE</command> command largely conforms to the
<acronym>SQL</acronym> standard; however, much as with
La commande <command>CREATE FOREIGN TABLE</command> est conforme au standard
<acronym>SQL</acronym>. Toutefois, tout comme la commande
<link linkend="sql-createtable"><command>CREATE TABLE</command></link>,
<literal>NULL</literal> constraints and zero-column foreign tables are permitted.
l'usage de la contrainte <literal>NULL</literal> et des tables distantes
sans colonnes sont autorisés.
</para>

</refsect1>

<refsect1>
<title>See Also</title>
<title>Voir aussi</title>

<simplelist type="inline">
<member><xref linkend="sql-alterforeigntable"/></member>
Expand Down

0 comments on commit 11092fc

Please sign in to comment.