mirror of
https://github.com/postgres/postgres.git
synced 2025-05-25 00:04:05 -04:00
doc: Fix some whitespace issues
This commit is contained in:
parent
f755a152d4
commit
17485552ec
@ -149,7 +149,7 @@
|
|||||||
<xref linkend="sql-explain"/> can be used to see whether
|
<xref linkend="sql-explain"/> can be used to see whether
|
||||||
<acronym>JIT</acronym> is used or not. As an example, here is a query that
|
<acronym>JIT</acronym> is used or not. As an example, here is a query that
|
||||||
is not using <acronym>JIT</acronym>:
|
is not using <acronym>JIT</acronym>:
|
||||||
<programlisting>
|
<screen>
|
||||||
=# EXPLAIN ANALYZE SELECT SUM(relpages) FROM pg_class;
|
=# EXPLAIN ANALYZE SELECT SUM(relpages) FROM pg_class;
|
||||||
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||||
│ QUERY PLAN │
|
│ QUERY PLAN │
|
||||||
@ -160,12 +160,12 @@
|
|||||||
│ Execution Time: 0.365 ms │
|
│ Execution Time: 0.365 ms │
|
||||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
(4 rows)
|
(4 rows)
|
||||||
</programlisting>
|
</screen>
|
||||||
Given the cost of the plan, it is entirely reasonable that no
|
Given the cost of the plan, it is entirely reasonable that no
|
||||||
<acronym>JIT</acronym> was used, the cost of <acronym>JIT</acronym> would
|
<acronym>JIT</acronym> was used, the cost of <acronym>JIT</acronym> would
|
||||||
have been bigger than the savings. Adjusting the cost limits will lead to
|
have been bigger than the savings. Adjusting the cost limits will lead to
|
||||||
<acronym>JIT</acronym> use:
|
<acronym>JIT</acronym> use:
|
||||||
<programlisting>
|
<screen>
|
||||||
=# SET jit_above_cost = 10;
|
=# SET jit_above_cost = 10;
|
||||||
SET
|
SET
|
||||||
=# EXPLAIN ANALYZE SELECT SUM(relpages) FROM pg_class;
|
=# EXPLAIN ANALYZE SELECT SUM(relpages) FROM pg_class;
|
||||||
@ -185,7 +185,7 @@ SET
|
|||||||
│ Emission Time: 5.048 ms │
|
│ Emission Time: 5.048 ms │
|
||||||
│ Execution Time: 7.416 ms │
|
│ Execution Time: 7.416 ms │
|
||||||
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
</programlisting>
|
</screen>
|
||||||
As visible here, <acronym>JIT</acronym> was used, but inlining and
|
As visible here, <acronym>JIT</acronym> was used, but inlining and
|
||||||
expensive optimization were not. If <xref
|
expensive optimization were not. If <xref
|
||||||
linkend="guc-jit-optimize-above-cost"/>, <xref
|
linkend="guc-jit-optimize-above-cost"/>, <xref
|
||||||
|
@ -1011,35 +1011,31 @@ websearch_to_tsquery(<optional> <replaceable class="parameter">config</replaceab
|
|||||||
<para>
|
<para>
|
||||||
Examples:
|
Examples:
|
||||||
<screen>
|
<screen>
|
||||||
select websearch_to_tsquery('english', 'The fat rats');
|
SELECT websearch_to_tsquery('english', 'The fat rats');
|
||||||
websearch_to_tsquery
|
websearch_to_tsquery
|
||||||
-----------------
|
----------------------
|
||||||
'fat' & 'rat'
|
'fat' & 'rat'
|
||||||
(1 row)
|
(1 row)
|
||||||
</screen>
|
|
||||||
<screen>
|
SELECT websearch_to_tsquery('english', '"supernovae stars" -crab');
|
||||||
select websearch_to_tsquery('english', '"supernovae stars" -crab');
|
|
||||||
websearch_to_tsquery
|
websearch_to_tsquery
|
||||||
----------------------------------
|
----------------------------------
|
||||||
'supernova' <-> 'star' & !'crab'
|
'supernova' <-> 'star' & !'crab'
|
||||||
(1 row)
|
(1 row)
|
||||||
</screen>
|
|
||||||
<screen>
|
SELECT websearch_to_tsquery('english', '"sad cat" or "fat rat"');
|
||||||
select websearch_to_tsquery('english', '"sad cat" or "fat rat"');
|
|
||||||
websearch_to_tsquery
|
websearch_to_tsquery
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
'sad' <-> 'cat' | 'fat' <-> 'rat'
|
'sad' <-> 'cat' | 'fat' <-> 'rat'
|
||||||
(1 row)
|
(1 row)
|
||||||
</screen>
|
|
||||||
<screen>
|
SELECT websearch_to_tsquery('english', 'signal -"segmentation fault"');
|
||||||
select websearch_to_tsquery('english', 'signal -"segmentation fault"');
|
|
||||||
websearch_to_tsquery
|
websearch_to_tsquery
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
'signal' & !( 'segment' <-> 'fault' )
|
'signal' & !( 'segment' <-> 'fault' )
|
||||||
(1 row)
|
(1 row)
|
||||||
</screen>
|
|
||||||
<screen>
|
SELECT websearch_to_tsquery('english', '""" )( dummy \\ query <->');
|
||||||
select websearch_to_tsquery('english', '""" )( dummy \\ query <->');
|
|
||||||
websearch_to_tsquery
|
websearch_to_tsquery
|
||||||
----------------------
|
----------------------
|
||||||
'dummi' & 'queri'
|
'dummi' & 'queri'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user