]> granicus.if.org Git - postgresql/commitdiff
Doc: enhance pgbench manual.
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 17 Jan 2019 06:34:41 +0000 (15:34 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 17 Jan 2019 06:34:41 +0000 (15:34 +0900)
Clarify the difference between "prepared mode" and other query modes.

Discussion: https://postgr.es/m/20181030.103654.2249812451112831300.t-ishii@sraoss.co.jp
Reviewed by: Fabien Coelh and Alvaro Herrera.

doc/src/sgml/ref/pgbench.sgml

index ca1608811881809227272eb176cb591023a90ee1..15ee7c0f2ba9e2fe46b850a33aeb646549001fd4 100644 (file)
@@ -473,6 +473,13 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d
             <para><literal>prepared</literal>: use extended query protocol with prepared statements.</para>
            </listitem>
           </itemizedlist>
+
+        Because in "prepared" mode <application>pgbench</application> reuses
+        the parse analysis result for the second and subsequent query
+        iteration, <application>pgbench</application> runs faster in the
+        prepared mode than in other modes.
+       </para>
+       <para>
         The default is simple query protocol.  (See <xref linkend="protocol"/>
         for more information.)
        </para>