mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 05:36:52 +02:00
Doc: enhance pgbench manual.
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.
This commit is contained in:
parent
6c61d7c593
commit
2472ea0a53
@ -473,6 +473,13 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d
|
|||||||
<para><literal>prepared</literal>: use extended query protocol with prepared statements.</para>
|
<para><literal>prepared</literal>: use extended query protocol with prepared statements.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</itemizedlist>
|
</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"/>
|
The default is simple query protocol. (See <xref linkend="protocol"/>
|
||||||
for more information.)
|
for more information.)
|
||||||
</para>
|
</para>
|
||||||
|
Loading…
Reference in New Issue
Block a user