Skip to content

Commit 2472ea0

Browse files
committed
Doc: enhance pgbench manual.
Clarify the difference between "prepared mode" and other query modes. Discussion: https://postgr.es/m/[email protected] Reviewed by: Fabien Coelh and Alvaro Herrera.
1 parent 6c61d7c commit 2472ea0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/src/sgml/ref/pgbench.sgml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,13 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d
473473
<para><literal>prepared</literal>: use extended query protocol with prepared statements.</para>
474474
</listitem>
475475
</itemizedlist>
476+
477+
Because in "prepared" mode <application>pgbench</application> reuses
478+
the parse analysis result for the second and subsequent query
479+
iteration, <application>pgbench</application> runs faster in the
480+
prepared mode than in other modes.
481+
</para>
482+
<para>
476483
The default is simple query protocol. (See <xref linkend="protocol"/>
477484
for more information.)
478485
</para>

0 commit comments

Comments
 (0)