Skip to content

Commit

Permalink
Mise à jour en version 9.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
gleu committed Nov 4, 2015
1 parent 49ad004 commit 93676c2
Show file tree
Hide file tree
Showing 17 changed files with 1,986 additions and 109 deletions.
48 changes: 41 additions & 7 deletions postgresql/array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,7 @@ SELECT array_dims(ARRAY[[1,2],[3,4]] || ARRAY[[5,6],[7,8],[9,0]]);
<function>array_prepend</function>, <function>array_append</function>
ou <function>array_cat</function>. Les deux premières ne supportent que les
tableaux à une dimension alors que <function>array_cat</function> supporte les
tableaux multidimensionnels.

L'opérateur de concaténation vu plus haut est préférable à
l'utilisation directe de ces fonctions. En fait, les fonctions existent
principalement pour l'implantation de l'opérateur de concaténation.
Néanmoins, elles peuvent être directement utiles dans la création
d'agrégats utilisateur. Quelques exemples&nbsp;:
tableaux multidimensionnels. Quelques exemples&nbsp;:

<programlisting>SELECT array_prepend(1, ARRAY[2,3]);
array_prepend
Expand Down Expand Up @@ -492,6 +486,46 @@ SELECT array_cat(ARRAY[5,6], ARRAY[[1,2],[3,4]]);
---------------------
{{5,6},{1,2},{3,4}}</programlisting>
</para>

<para>
Dans les cas simples, l'opération de concaténation discutée ci-dessus est
préférée à l'utilisation directe de ces fonctions. Néanmoins, comme
l'opérateur de concaténation est surchargé pour servir les trois cas,
certaines utilisations peuvent bénéficier de l'utilisation d'une fonction
pour éviter toute ambiguité. Par exemple&nbsp;:

<programlisting>
SELECT ARRAY[1, 2] || '{3, 4}'; -- le litéral non typé est pris pour un tableau
?column?
-----------
{1,2,3,4}

SELECT ARRAY[1, 2] || '7'; -- idem pour celui-ci
ERROR: malformed array literal: "7"

SELECT ARRAY[1, 2] || NULL; -- pareil pour un NULL
?column?
----------
{1,2}
(1 row)

SELECT array_append(ARRAY[1, 2], NULL); -- ceci peut être voulu
array_append
--------------
{1,2,NULL}
</programlisting>

Dans l'exemple ci-dessus, l'analyseur voit un tableau d'entiers d'un côté de
l'opérateur de concaténation et une constante de type indéterminé de
l'autre. L'heuristique utilisé pour résoudre le type de la constante revient
à assumer qu'elle est de même type que l'autre entrée de l'opérateur &mdash;
dans ce cas, un tableau d'entiers. Donc l'opérateur de concaténation est
supposé représenter <function>array_cat</function>, et non pas
<function>array_append</function>. Quand le choix est erroné, cela peut se
corriger en convertissant la constante dans le type de données d'un élément
du tableau. L'utilisation de la fonction <function>array_append</function>
peut être préférable.
</para>
</sect2>

<sect2 id="arrays-searching">
Expand Down
11 changes: 10 additions & 1 deletion postgresql/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ include 'nom_fichier'
peuvent être examinées, mais cela ajoute aussi une grosse pénalité sur
les performances. La quantité de trafic envoyé et reçu est utilisé pour
vérifier la limite. Si ce paramètre vaut 0, la renégotiation est
désactivée. La valeur par défaut est <literal>512MB</literal>.
désactivée. La valeur par défaut est <literal>0</literal>.
</para>
<note>
<para>
Expand All @@ -833,6 +833,15 @@ include 'nom_fichier'
renégotiation SSL devra être désactivée.
</para>
</note>

<warning>
<para>
À cause de bugs dans l'activation de la renégotiation SSL avec
<productname>OpenSSL</productname>, configurer une valeur différente
de 0 pour <varname>ssl_renegotiation_limit</varname> a un fort risque
d'amener des problèmes comme l'arrêt inattendu de connexions longues.
</para>
</warning>
</listitem>
</varlistentry>

Expand Down
26 changes: 13 additions & 13 deletions postgresql/dblink.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom à utiliser pour la connexion&nbsp;; en cas d'omission,
Expand Down Expand Up @@ -277,7 +277,7 @@ SELECT dblink_connect('dbname=postgres');

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à fermer
Expand Down Expand Up @@ -359,7 +359,7 @@ SELECT dblink_disconnect();

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à utiliser&nbsp;; ce paramètre doit être omis
Expand Down Expand Up @@ -580,7 +580,7 @@ SELECT * FROM dblink('myconn', 'select proname, prosrc from pg_proc')

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à utiliser&nbsp;; ce paramètre doit être omis
Expand Down Expand Up @@ -708,7 +708,7 @@ DETAIL: ERROR: null value in column "relnamespace" violates not-null constrain

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à utiliser&nbsp;; ce paramètre doit être omis
Expand Down Expand Up @@ -830,7 +830,7 @@ SELECT dblink_open('foo', 'select proname, prosrc from pg_proc');

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Nom de la connexion à utiliser&nbsp;; ce paramètre doit être omis pour
Expand Down Expand Up @@ -983,7 +983,7 @@ SELECT * FROM dblink_fetch('foo', 5) AS (funcname name, source text);

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à utiliser&nbsp;; ce paramètre doit être omis pour
Expand Down Expand Up @@ -1137,7 +1137,7 @@ SELECT dblink_close('foo');

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Nom de la connexion à utiliser.
Expand Down Expand Up @@ -1208,7 +1208,7 @@ SELECT dblink_close('foo');

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à utiliser.
Expand Down Expand Up @@ -1277,7 +1277,7 @@ SELECT dblink_close('foo');

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à vérifier.
Expand Down Expand Up @@ -1344,7 +1344,7 @@ SELECT dblink_close('foo');

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom d'une connexion nommée qui veut récupérer les notifications.
Expand Down Expand Up @@ -1420,7 +1420,7 @@ SELECT * FROM dblink_get_notify();

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à utiliser.
Expand Down Expand Up @@ -1583,7 +1583,7 @@ contrib_regression=# SELECT * FROM dblink_get_result('dtest1') AS t1(f1 int, f2

<variablelist>
<varlistentry>
<term><parameter>conname</parameter></term>
<term><parameter>connname</parameter></term>
<listitem>
<para>
Le nom de la connexion à utiliser.
Expand Down
8 changes: 4 additions & 4 deletions postgresql/external-projects.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<entry>Npgsql</entry>
<entry>.NET</entry>
<entry>Fournisseur de données .NET</entry>
<entry><ulink url="http://npgsql.projects.postgresql.org/">http://npgsql.projects.postgresql.org/</ulink></entry>
<entry><ulink url="http://www.npgsql.org/">http://www.npgsql.org/</ulink></entry>
</row>

<row>
Expand All @@ -103,7 +103,7 @@
<entry>psqlODBC</entry>
<entry>ODBC</entry>
<entry>Pilote ODBC</entry>
<entry><ulink url="http://psqlodbc.projects.postgresql.org/">http://psqlodbc.projects.postgresql.org/</ulink></entry>
<entry><ulink url="https://odbc.postgresql.org/">https://odbc.postgresql.org/</ulink></entry>
</row>

<row>
Expand Down Expand Up @@ -175,7 +175,7 @@
<row>
<entry>PL/Java</entry>
<entry>Java</entry>
<entry><ulink url="http://pljava.projects.postgresql.org/">http://pljava.projects.postgresql.org/</ulink></entry>
<entry><ulink url="https://github.com/tada/pljava">https://github.com/tada/pljava</ulink></entry>
</row>

<row>
Expand Down Expand Up @@ -211,7 +211,7 @@
<row>
<entry>PL/sh</entry>
<entry>Unix shell</entry>
<entry><ulink url="http://plsh.projects.postgresql.org/">http://plsh.projects.postgresql.org/</ulink></entry>
<entry><ulink url="https://github.com/petere/plsh">https://github.com/petere/plsh</ulink></entry>
</row>
</tbody>
</tgroup>
Expand Down

0 comments on commit 93676c2

Please sign in to comment.