Skip to content

Commit

Permalink
Merge de la beta 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gleu committed May 19, 2011
1 parent db0b4ca commit c68caa7
Show file tree
Hide file tree
Showing 175 changed files with 26,619 additions and 10,005 deletions.
6 changes: 3 additions & 3 deletions postgresql/acronyms.xml
Expand Up @@ -513,7 +513,7 @@
<term><acronym>PGXS</acronym></term>
<listitem>
<para>
<link linkend="xfunc-c-pgxs"><productname>PostgreSQL</productname>
<link linkend="extend-pgxs"><productname>PostgreSQL</productname>
Extension System</link>, système d'extension de PostgreSQL
</para>
</listitem>
Expand Down Expand Up @@ -543,8 +543,8 @@
<term><acronym>PL</acronym></term>
<listitem>
<para>
<link linkend="server-programming">Programming Languages</link>, langages de
programmation côté serveur
<link linkend="server-programming">Procedural Languages</link>, langages
procéduraux côté serveur
</para>
</listitem>
</varlistentry>
Expand Down
13 changes: 5 additions & 8 deletions postgresql/advanced.xml
Expand Up @@ -407,7 +407,7 @@ SELECT nomdep, noemp, salaire, avg(salaire) OVER (PARTITION BY nomdep) FROM sala

<para>
Un appel à une fonction <foreignphrase>window</foreignphrase> contient toujours une clause
<literal>OVER</literal> qui suit le nom et les arguments de la fonction.
<literal>OVER</literal> qui suit immédiatement le nom et les arguments de la fonction.
C'est ce qui permet de la distinguer syntaxiquement d'une fonction simple
ou d'une fonction de regroupement. La clause <literal>OVER</literal>
détermine précisément comment les lignes de la requête sont éclatées pour
Expand All @@ -421,13 +421,10 @@ SELECT nomdep, noemp, salaire, avg(salaire) OVER (PARTITION BY nomdep) FROM sala
</para>

<para>
Bien que la fonction <function>avg</function> produise le même résultat
quel que soit l'ordre dans lequel elle traite les enregistrements de la
partition, ceci n'est pas généralisable à toutes les fonctions
<foreignphrase>window</foreignphrase>.
Lorsque cela s'avère nécessaire, l'ordre peut être contrôlé à l'aide d'une
clause <literal>ORDER BY</literal> à l'intérieur de
<literal>OVER</literal>. Exemple&nbsp;:
You can also control the order in which rows are processed by
window functions using <literal>ORDER BY</> within <literal>OVER</>.
(The window <literal>ORDER BY</> does not even have to match the
order in which the rows are output.) Here is an example:

<programlisting>
SELECT nomdep, noemp, salaire, rank() OVER (PARTITION BY nomdep ORDER BY salaire DESC) FROM salaireemp;
Expand Down
2 changes: 1 addition & 1 deletion postgresql/array.xml
Expand Up @@ -249,7 +249,7 @@ INSERT INTO sal_emp
Si l'une des dimensions est écrite comme une partie, c'est-à-dire si elle contient
le caractère deux-points, alors toutes les dimensions sont traitées comme
des parties. Toute dimension qui n'a qu'un numéro (pas de
deux-points), est traitée comme allant de <literal>1</literal>
deux-points), est traitée comme allant de 1
au nombre indiqué. Par exemple, <literal>[2]</literal> est traitée comme
<literal>[1:2]</literal>, comme le montre cet exemple&nbsp;:

Expand Down
67 changes: 67 additions & 0 deletions postgresql/auth-delay.xml
@@ -0,0 +1,67 @@
<!-- doc/src/sgml/auth-delay.sgml -->

<sect1 id="auth-delay">
<title>auth_delay</title>

<indexterm zone="auth-delay">
<primary>auth_delay</primary>
</indexterm>

<para>
<filename>auth_delay</filename> causes the server to pause briefly before
reporting authentication failure, to make brute-force attacks on database
passwords more difficult. Note that it does nothing to prevent
denial-of-service attacks, and may even exacerbate them, since processes
that are waiting before reporting authentication failure will still consume
connection slots.
</para>

<para>
In order to function, this module must be loaded via
<xref linkend="guc-shared-preload-libraries"> in <filename>postgresql.conf</>.
</para>

<sect2>
<title>Configuration Parameters</title>

<variablelist>
<varlistentry>
<term>
<varname>auth_delay.milliseconds</varname> (<type>int</type>)
</term>
<indexterm>
<primary><varname>auth_delay.milliseconds</> configuration parameter</primary>
</indexterm>
<listitem>
<para>
The number of milliseconds to wait before reporting an authentication
failure. The default is 0.
</para>
</listitem>
</varlistentry>
</variablelist>

<para>
In order to set these parameters in your <filename>postgresql.conf</> file,
you will need to add <literal>auth_delay</> to
<xref linkend="guc-custom-variable-classes">. Typical usage might be:
</para>

<programlisting>
# postgresql.conf
shared_preload_libraries = 'auth_delay'

custom_variable_classes = 'auth_delay'
auth_delay.milliseconds = '500'
</programlisting>
</sect2>

<sect2>
<title>Author</title>

<para>
KaiGai Kohei <email>kaigai@ak.jp.nec.com</email>
</para>
</sect2>

</sect1>

0 comments on commit c68caa7

Please sign in to comment.