Skip to content

Commit 1748555

Browse files
committed
doc: Fix some whitespace issues
1 parent f755a15 commit 1748555

File tree

2 files changed

+35
-39
lines changed

2 files changed

+35
-39
lines changed

doc/src/sgml/jit.sgml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<xref linkend="sql-explain"/> can be used to see whether
150150
<acronym>JIT</acronym> is used or not. As an example, here is a query that
151151
is not using <acronym>JIT</acronym>:
152-
<programlisting>
152+
<screen>
153153
=# EXPLAIN ANALYZE SELECT SUM(relpages) FROM pg_class;
154154
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
155155
│ QUERY PLAN │
@@ -160,12 +160,12 @@
160160
│ Execution Time: 0.365 ms │
161161
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
162162
(4 rows)
163-
</programlisting>
163+
</screen>
164164
Given the cost of the plan, it is entirely reasonable that no
165165
<acronym>JIT</acronym> was used, the cost of <acronym>JIT</acronym> would
166166
have been bigger than the savings. Adjusting the cost limits will lead to
167167
<acronym>JIT</acronym> use:
168-
<programlisting>
168+
<screen>
169169
=# SET jit_above_cost = 10;
170170
SET
171171
=# EXPLAIN ANALYZE SELECT SUM(relpages) FROM pg_class;
@@ -185,7 +185,7 @@ SET
185185
│ Emission Time: 5.048 ms │
186186
│ Execution Time: 7.416 ms │
187187
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
188-
</programlisting>
188+
</screen>
189189
As visible here, <acronym>JIT</acronym> was used, but inlining and
190190
expensive optimization were not. If <xref
191191
linkend="guc-jit-optimize-above-cost"/>, <xref
@@ -283,15 +283,15 @@ SET
283283
<function>_PG_jit_provider_init</function>. This function is passed a
284284
struct that needs to be filled with the callback function pointers for
285285
individual actions.
286-
<programlisting>
286+
<programlisting>
287287
struct JitProviderCallbacks
288288
{
289289
JitProviderResetAfterErrorCB reset_after_error;
290290
JitProviderReleaseContextCB release_context;
291291
JitProviderCompileExprCB compile_expr;
292292
};
293293
extern void _PG_jit_provider_init(JitProviderCallbacks *cb);
294-
</programlisting>
294+
</programlisting>
295295
</para>
296296
</sect3>
297297
</sect2>

doc/src/sgml/textsearch.sgml

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,41 +1010,37 @@ websearch_to_tsquery(<optional> <replaceable class="parameter">config</replaceab
10101010
</para>
10111011
<para>
10121012
Examples:
1013-
<screen>
1014-
select websearch_to_tsquery('english', 'The fat rats');
1013+
<screen>
1014+
SELECT websearch_to_tsquery('english', 'The fat rats');
1015+
websearch_to_tsquery
1016+
----------------------
1017+
'fat' &amp; 'rat'
1018+
(1 row)
1019+
1020+
SELECT websearch_to_tsquery('english', '"supernovae stars" -crab');
10151021
websearch_to_tsquery
1016-
-----------------
1017-
'fat' &amp; 'rat'
1018-
(1 row)
1019-
</screen>
1020-
<screen>
1021-
select websearch_to_tsquery('english', '"supernovae stars" -crab');
1022-
websearch_to_tsquery
1023-
----------------------------------
1024-
'supernova' &lt;-&gt; 'star' &amp; !'crab'
1025-
(1 row)
1026-
</screen>
1027-
<screen>
1028-
select websearch_to_tsquery('english', '"sad cat" or "fat rat"');
1029-
websearch_to_tsquery
1030-
-----------------------------------
1031-
'sad' &lt;-&gt; 'cat' | 'fat' &lt;-&gt; 'rat'
1032-
(1 row)
1033-
</screen>
1034-
<screen>
1035-
select websearch_to_tsquery('english', 'signal -"segmentation fault"');
1036-
websearch_to_tsquery
1037-
---------------------------------------
1038-
'signal' &amp; !( 'segment' &lt;-&gt; 'fault' )
1039-
(1 row)
1040-
</screen>
1041-
<screen>
1042-
select websearch_to_tsquery('english', '""" )( dummy \\ query &lt;-&gt;');
1022+
----------------------------------
1023+
'supernova' &lt;-&gt; 'star' &amp; !'crab'
1024+
(1 row)
1025+
1026+
SELECT websearch_to_tsquery('english', '"sad cat" or "fat rat"');
10431027
websearch_to_tsquery
1044-
----------------------
1045-
'dummi' &amp; 'queri'
1046-
(1 row)
1047-
</screen>
1028+
-----------------------------------
1029+
'sad' &lt;-&gt; 'cat' | 'fat' &lt;-&gt; 'rat'
1030+
(1 row)
1031+
1032+
SELECT websearch_to_tsquery('english', 'signal -"segmentation fault"');
1033+
websearch_to_tsquery
1034+
---------------------------------------
1035+
'signal' &amp; !( 'segment' &lt;-&gt; 'fault' )
1036+
(1 row)
1037+
1038+
SELECT websearch_to_tsquery('english', '""" )( dummy \\ query &lt;-&gt;');
1039+
websearch_to_tsquery
1040+
----------------------
1041+
'dummi' &amp; 'queri'
1042+
(1 row)
1043+
</screen>
10481044
</para>
10491045
</sect2>
10501046

0 commit comments

Comments
 (0)