doc: Fix up spacing around verbatim DocBook elements
This commit is contained in:
parent
83751691e9
commit
b53d58097d
|
@ -17725,28 +17725,28 @@ ERROR: jsonpath member accessor can only be applied to an object
|
||||||
The unwrapping behavior of lax mode can lead to surprising results. For
|
The unwrapping behavior of lax mode can lead to surprising results. For
|
||||||
instance, the following query using the <literal>.**</literal> accessor
|
instance, the following query using the <literal>.**</literal> accessor
|
||||||
selects every <literal>HR</literal> value twice:
|
selects every <literal>HR</literal> value twice:
|
||||||
<screen>
|
<screen>
|
||||||
<prompt>=></prompt> <userinput>select jsonb_path_query(:'json', 'lax $.**.HR');</userinput>
|
<prompt>=></prompt> <userinput>select jsonb_path_query(:'json', 'lax $.**.HR');</userinput>
|
||||||
jsonb_path_query
|
jsonb_path_query
|
||||||
------------------
|
------------------
|
||||||
73
|
73
|
||||||
135
|
135
|
||||||
73
|
73
|
||||||
135
|
135
|
||||||
</screen>
|
</screen>
|
||||||
This happens because the <literal>.**</literal> accessor selects both
|
This happens because the <literal>.**</literal> accessor selects both
|
||||||
the <literal>segments</literal> array and each of its elements, while
|
the <literal>segments</literal> array and each of its elements, while
|
||||||
the <literal>.HR</literal> accessor automatically unwraps arrays when
|
the <literal>.HR</literal> accessor automatically unwraps arrays when
|
||||||
using lax mode. To avoid surprising results, we recommend using
|
using lax mode. To avoid surprising results, we recommend using
|
||||||
the <literal>.**</literal> accessor only in strict mode. The
|
the <literal>.**</literal> accessor only in strict mode. The
|
||||||
following query selects each <literal>HR</literal> value just once:
|
following query selects each <literal>HR</literal> value just once:
|
||||||
<screen>
|
<screen>
|
||||||
<prompt>=></prompt> <userinput>select jsonb_path_query(:'json', 'strict $.**.HR');</userinput>
|
<prompt>=></prompt> <userinput>select jsonb_path_query(:'json', 'strict $.**.HR');</userinput>
|
||||||
jsonb_path_query
|
jsonb_path_query
|
||||||
------------------
|
------------------
|
||||||
73
|
73
|
||||||
135
|
135
|
||||||
</screen>
|
</screen>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
|
|
@ -116,8 +116,8 @@ BEGIN;
|
||||||
now only choose one of these two commands, since all other commands
|
now only choose one of these two commands, since all other commands
|
||||||
will be ignored:
|
will be ignored:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
ROLLBACK TO SAVEPOINT sp1;
|
ROLLBACK TO SAVEPOINT sp1;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
Choosing <command>ROLLBACK</command> will abort everything, including
|
Choosing <command>ROLLBACK</command> will abort everything, including
|
||||||
value 1, whereas <command>ROLLBACK TO SAVEPOINT sp1</command> will retain
|
value 1, whereas <command>ROLLBACK TO SAVEPOINT sp1</command> will retain
|
||||||
|
|
Loading…
Reference in New Issue