Skip to content

Commit

Permalink
Mise à jour de CREATE COLLATION pour version 12.
Browse files Browse the repository at this point in the history
  • Loading branch information
dverite committed Jul 9, 2019
1 parent 1f17fac commit 6d84a0d
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions postgresql/ref/create_collation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ CREATE COLLATION [ IF NOT EXISTS ] <replaceable>nom</replaceable> FROM <replacea

<listitem>
<para>
Spécifie le fournisseur à utiliser pour les services de locale associé
Spécifie le fournisseur à utiliser pour les services de locale associés
à cette collation. Les valeurs possibles sont :
<literal>icu</literal>, <indexterm><primary>ICU</primary></indexterm>, <literal>libc</literal>.
<literal>libc</literal> est la valeur par défaut.
Expand All @@ -131,18 +131,21 @@ CREATE COLLATION [ IF NOT EXISTS ] <replaceable>nom</replaceable> FROM <replacea

<listitem>
<para>
Specifies whether the collation should use deterministic comparisons.
The default is true. A deterministic comparison considers strings that
are not byte-wise equal to be unequal even if they are considered
logically equal by the comparison. PostgreSQL breaks ties using a
byte-wise comparison. Comparison that is not deterministic can make the
collation be, say, case- or accent-insensitive. For that, you need to
choose an appropriate <literal>LC_COLLATE</literal> setting
<emphasis>and</emphasis> set the collation to not deterministic here.
Indique si la collation doit utiliser des comparaisons déterministes.
La valeur par défaut est vraie. Une comparaison déterministe considère
que les chaînes de caractères qui ne sont pas équivalentes à l'octet
près ne sont pas égales, même si la comparaison logique a pour
résultat qu'elles sont égales. PostgreSQL départage les égalités
en utilisant une comparaison à l'octet.
Une comparaison non déterministe peut faire que la collation est,
par exemple, insensible à la casse ou aux accents. Pour cela, vous
devez choisir une option <literal>LC_COLLATE</literal> appropriée
<emphasis>et</emphasis> indiquer ici que la collation est non déterministe.
</para>

<para>
Nondeterministic collations are only supported with the ICU provider.
Les collations non déterministes sont supportées uniquement par
le fournisseur ICU.
</para>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -186,10 +189,10 @@ CREATE COLLATION [ IF NOT EXISTS ] <replaceable>nom</replaceable> FROM <replacea
<title>Notes</title>

<para>
<command>CREATE COLLATION</command> takes a <literal>SHARE ROW
EXCLUSIVE</literal> lock, which is self-conflicting, on the
<structname>pg_collation</structname> system catalog, so only one
<command>CREATE COLLATION</command> command can run at a time.
<command>CREATE COLLATION</command> acquiert un verrou <literal>SHARE ROW
EXCLUSIVE</literal>, qui est exclusif avec lui-même, sur le catalogue
système <structname>pg_collation</structname>, de sorte qu'une seule
commande <command>CREATE COLLATION</command> peut s'exécuter à la fois.
</para>

<para>
Expand Down

0 comments on commit 6d84a0d

Please sign in to comment.