@ -1188,10 +1188,8 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d
<variablelist>
<variablelist>
<varlistentry id="pgbench-metacommand-gset">
<varlistentry id="pgbench-metacommand-gset">
<term>
<term><literal>\gset [<replaceable>prefix</replaceable>]</literal></term>
<literal>\gset [<replaceable>prefix</replaceable>]</literal>
<term><literal>\aset [<replaceable>prefix</replaceable>]</literal></term>
<literal>\aset [<replaceable>prefix</replaceable>]</literal>
</term>
<listitem>
<listitem>
<para>
<para>
@ -1203,16 +1201,17 @@ pgbench <optional> <replaceable>options</replaceable> </optional> <replaceable>d
When the <literal>\gset</literal> command is used, the preceding SQL query is
When the <literal>\gset</literal> command is used, the preceding SQL query is
expected to return one row, the columns of which are stored into variables
expected to return one row, the columns of which are stored into variables
named after column names, and prefixed with <replaceable>prefix</replaceable>
named after column names, and prefixed with <replaceable>prefix</replaceable>
if provided.
if provided. If the query returns zero or multiple rows, an error is raised.
</para>
</para>
<para>
<para>
When the <literal>\aset</literal> command is used, all combined SQL queries
When the <literal>\aset</literal> command is used, all combined SQL queries
(separated by <literal>\;</literal>) have their columns stored into variables
(separated by <literal>\;</literal>) have their columns stored into variables
named after column names, and prefixed with <replaceable>prefix</replaceable>
named after column names, and prefixed with <replaceable>prefix</replaceable>
if provided. If a query returns no row, no assignment is made and the variable
if provided. If a query returns no rows, no assignment is made.
can be tested for existence to detect this. If a query returns more than one
This can be detected by initializing the variable beforehand with
row, the last value is kept.
a value the query cannot return, then checking whether it changes.
If a query returns more than one row, the last values is kept.
</para>
</para>
<para>
<para>