Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f77ff08

Browse files
committed
Document the ability to specify TableAM for pgbench
Upcoming custom Table Access Methods (TableAM) need benchmarking. Despite pgbench doesn't have an explicit option for TableAM specification, one can specify it using PGOPTION environmental variable. The present commit documents this way to specify TableAM for pgbench. Discussion: https://postgr.es/m/CAC77N6ih%3DLbhZQXV76grEsaVQkBL464Y2Foqq9o%3Df4UBfEOfEQ%40mail.gmail.com Author: Michel Pelletier, Alexander Korotkov Reviewed-by: Justin Pryzby, Mason Sharp, Michael Paquier
1 parent bcedd8f commit f77ff08

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

doc/src/sgml/config.sgml

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ UPDATE pg_settings SET setting = reset_val WHERE name = 'configuration_parameter
317317

318318
</sect2>
319319

320-
<sect2>
320+
<sect2 id="config-setting-shell">
321321
<title>Parameter Interaction via the Shell</title>
322322

323323
<para>

doc/src/sgml/ref/pgbench.sgml

+16
Original file line numberDiff line numberDiff line change
@@ -2887,6 +2887,22 @@ statement latencies in milliseconds, failures and retries:
28872887
</para>
28882888
</refsect2>
28892889

2890+
<refsect2>
2891+
<title>Table Access Methods</title>
2892+
2893+
<para>
2894+
You may specify the <link linkend="tableam">Table Access Method</link>
2895+
for the pgbench tables. The environment variable <envar>PGOPTIONS</envar>
2896+
specifies database configuration options that are passed to PostgreSQL via
2897+
the command line (See <xref linkend="config-setting-shell"/>).
2898+
For example, a hypothetical default Table Access Method for the tables that
2899+
pgbench creates called <literal>wuzza</literal> can be specified with:
2900+
<programlisting>
2901+
PGOPTIONS='-c default_table_access_method=wuzza'
2902+
</programlisting>
2903+
</para>
2904+
</refsect2>
2905+
28902906
<refsect2>
28912907
<title>Good Practices</title>
28922908

0 commit comments

Comments
 (0)