Skip to content

Commit

Permalink
Nouvelle traduction
Browse files Browse the repository at this point in the history
  • Loading branch information
julien2512 authored and gleu committed Jun 26, 2012
1 parent 3de4a35 commit 93614c8
Showing 1 changed file with 29 additions and 27 deletions.
56 changes: 29 additions & 27 deletions postgresql/ref/alter_domain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,15 @@ ALTER DOMAIN <replaceable class="PARAMETER">nom</replaceable>
<para>
Cette forme ajoute une nouvelle contrainte à un domaine avec la même
syntaxe que <xref linkend="sql-createdomain"/>.
When a new constraint is added to a domain, all columns using that
domain will be checked against the newly added constraint. These
checks can be suppressed by adding the new constraint using the
<literal>NOT VALID</literal> option; the constraint can later be made
valid using <command>ALTER DOMAIN ... VALIDATE CONSTRAINT</command>.
Newly inserted or updated rows are always checked against all
constraints, even those marked <literal>NOT VALID</literal>.
<literal>NOT VALID</literal> is only accepted for <literal>CHECK</literal> constraints.
Lorsqu'une nouvelle contrainte est ajoutée à un domaine, toutes les colonnes
utilisant ce domaine seront vérifiées avec cette nouvelle contrainte. Cette
vérification initiale peut être annulée en ajoutant l'option <literal>NOT VALID</literal>
lors de l'ajout de la nouvelle contrainte&nbsp;; la contrainte pourra à nouveau être
activée en utilisant la commande <command>ALTER DOMAIN ... VALIDATE CONSTRAINT</command>.
Les lignes nouvellement ajoutées ou modifiées sont toujours vérifiées pour l'ensemble
des contraintes, y compris celles marquées <literal>NOT VALID</literal>. À noter enfin
que l'option <literal>NOT VALID</literal> n'est acceptée que pour les contraintes de
type <literal>CHECK</literal>.
</para>
</listitem>
</varlistentry>
Expand All @@ -101,8 +102,9 @@ ALTER DOMAIN <replaceable class="PARAMETER">nom</replaceable>
<listitem>
<para>
Cette forme supprime les contraintes sur un domaine.
If <literal>IF EXISTS</literal> is specified and the constraint
does not exist, no error is thrown. In this case a notice is issued instead.
Si l'option <literal>IF EXISTS</literal> est spécifiée et que la contrainte
n'existe pas, aucune erreur n'est retournée. Dans ce cas, un simple message
d'avertissement est retourné.
</para>
</listitem>
</varlistentry>
Expand All @@ -111,7 +113,7 @@ ALTER DOMAIN <replaceable class="PARAMETER">nom</replaceable>
<term>RENAME CONSTRAINT</term>
<listitem>
<para>
This form changes the name of a constraint on a domain.
Cette forme modifie le nom de la contrainte d'un domaine.
</para>
</listitem>
</varlistentry>
Expand All @@ -120,9 +122,9 @@ ALTER DOMAIN <replaceable class="PARAMETER">nom</replaceable>
<term>VALIDATE CONSTRAINT</term>
<listitem>
<para>
This form validates a constraint previously added as
<literal>NOT VALID</literal>, that is, verify that all data in columns using the
domain satisfy the specified constraint.
Cette forme valide une contrainte ajoutée précédemment avec l'option <literal>NOT VALID</literal>,
c'est-à-dire qu'elle vérifie que les données de chaque colonne utilisant le
domaine satisfont la contrainte spécifiée.
</para>
</listitem>
</varlistentry>
Expand All @@ -140,7 +142,7 @@ ALTER DOMAIN <replaceable class="PARAMETER">nom</replaceable>
<term><literal>RENAME</literal></term>
<listitem>
<para>
This form changes the name of the domain.
Cette forme modifie le nom du domaine.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -211,7 +213,7 @@ ALTER DOMAIN <replaceable class="PARAMETER">nom</replaceable>
<term><replaceable class="PARAMETER">NOT VALID</replaceable></term>
<listitem>
<para>
Do not verify existing column data for constraint validity.
Ne vérifie pas la validité de la contrainte appliquée aux données des colonnes existantes.
</para>
</listitem>
</varlistentry>
Expand All @@ -236,19 +238,19 @@ ALTER DOMAIN <replaceable class="PARAMETER">nom</replaceable>
</varlistentry>

<varlistentry>
<term><replaceable class="PARAMETER">new_name</replaceable></term>
<term><replaceable class="PARAMETER">nouveau_nom</replaceable></term>
<listitem>
<para>
The new name for the domain.
Le nouveau nom du domaine.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><replaceable class="PARAMETER">new_constraint_name</replaceable></term>
<term><replaceable class="PARAMETER">nouveau_nom_de_contrainte</replaceable></term>
<listitem>
<para>
The new name for the constraint.
Le nouveau nom de la contrainte.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -309,9 +311,9 @@ ALTER DOMAIN <replaceable class="PARAMETER">nom</replaceable>
</para>

<para>
To rename a check constraint on a domain:
Pour renommer une contrainte de contrôle d'un domaine&nbsp;:
<programlisting>
ALTER DOMAIN zipcode RENAME CONSTRAINT zipchk TO zip_check;
ALTER DOMAIN codezip RENAME CONSTRAINT verif_zip TO zip_verif;
</programlisting>
</para>

Expand All @@ -327,11 +329,11 @@ ALTER DOMAIN zipcode RENAME CONSTRAINT zipchk TO zip_check;
<para>
<command>ALTER DOMAIN</command> se conforme au standard <acronym>SQL</acronym>,
à l'exception des variantes <literal>OWNER</literal>, <literal>RENAME</literal>,
<literal>SET SCHEMA</literal>, and
<literal>VALIDATE CONSTRAINT</literal> variants, which are
<productname>PostgreSQL</productname> extensions. The <literal>NOT VALID</literal>
clause of the <literal>ADD CONSTRAINT</literal> variant is also a
<productname>PostgreSQL</productname> extension.
<literal>SET SCHEMA</literal> et
<literal>VALIDATE CONSTRAINT</literal>, qui sont des extensions
<productname>PostgreSQL</productname>. L'option <literal>NOT VALID</literal>
de la variante <literal>ADD CONSTRAINT</literal> est elle-aussi une extension de
<productname>PostgreSQL</productname>.
</para>
</refsect1>

Expand Down

0 comments on commit 93614c8

Please sign in to comment.