]> granicus.if.org Git - postgresql/commitdiff
doc: Fix some whitespace issues
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 21 May 2018 15:41:37 +0000 (11:41 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 21 May 2018 15:42:43 +0000 (11:42 -0400)
doc/src/sgml/jit.sgml
doc/src/sgml/textsearch.sgml

index bcff1174082f0052c2d7cdc22c7c389098036401..6a712ff7c2e5b6aabd24f6cdfc6d561aa30d8555 100644 (file)
    <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
    is not using <acronym>JIT</acronym>:
-   <programlisting>
+<screen>
 =# EXPLAIN ANALYZE SELECT SUM(relpages) FROM pg_class;
 ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
 │                                                 QUERY PLAN                                                  │
 │ Execution Time: 0.365 ms                                                                                    │
 └─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
 (4 rows)
-   </programlisting>
+</screen>
    Given the cost of the plan, it is entirely reasonable that no
    <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
    <acronym>JIT</acronym> use:
-   <programlisting>
+<screen>
 =# SET jit_above_cost = 10;
 SET
 =# EXPLAIN ANALYZE SELECT SUM(relpages) FROM pg_class;
@@ -185,7 +185,7 @@ SET
 │   Emission Time: 5.048 ms                                                                                   │
 │ Execution Time: 7.416 ms                                                                                    │
 └─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
-   </programlisting>
+</screen>
    As visible here, <acronym>JIT</acronym> was used, but inlining and
    expensive optimization were not. If <xref
    linkend="guc-jit-optimize-above-cost"/>, <xref
@@ -283,7 +283,7 @@ SET
      <function>_PG_jit_provider_init</function>. This function is passed a
      struct that needs to be filled with the callback function pointers for
      individual actions.
-     <programlisting>
+<programlisting>
 struct JitProviderCallbacks
 {
     JitProviderResetAfterErrorCB reset_after_error;
@@ -291,7 +291,7 @@ struct JitProviderCallbacks
     JitProviderCompileExprCB compile_expr;
 };
 extern void _PG_jit_provider_init(JitProviderCallbacks *cb);
-     </programlisting>
+</programlisting>
     </para>
    </sect3>
   </sect2>
index 19f58511c8221976db48f30bf19262f3f540e266..8075ea94e780c4c7286c7ff84a2cbac2229bbccf 100644 (file)
@@ -1010,41 +1010,37 @@ websearch_to_tsquery(<optional> <replaceable class="parameter">config</replaceab
    </para>
    <para>
     Examples:
-    <screen>
-      select websearch_to_tsquery('english', 'The fat rats');
+<screen>
+SELECT websearch_to_tsquery('english', 'The fat rats');
+ websearch_to_tsquery
+----------------------
+ 'fat' &amp; 'rat'
+(1 row)
+
+SELECT websearch_to_tsquery('english', '"supernovae stars" -crab');
        websearch_to_tsquery
-      -----------------
-       'fat' &amp; 'rat'
-      (1 row)
-    </screen>
-    <screen>
-      select websearch_to_tsquery('english', '"supernovae stars" -crab');
-             websearch_to_tsquery
-      ----------------------------------
-       'supernova' &lt;-&gt; 'star' &amp; !'crab'
-      (1 row)
-    </screen>
-    <screen>
-      select websearch_to_tsquery('english', '"sad cat" or "fat rat"');
-             websearch_to_tsquery
-      -----------------------------------
-       'sad' &lt;-&gt; 'cat' | 'fat' &lt;-&gt; 'rat'
-      (1 row)
-    </screen>
-    <screen>
-      select websearch_to_tsquery('english', 'signal -"segmentation fault"');
-               websearch_to_tsquery
-      ---------------------------------------
-       'signal' &amp; !( 'segment' &lt;-&gt; 'fault' )
-      (1 row)
-    </screen>
-    <screen>
-      select websearch_to_tsquery('english', '""" )( dummy \\ query &lt;-&gt;');
+----------------------------------
+ 'supernova' &lt;-&gt; 'star' &amp; !'crab'
+(1 row)
+
+SELECT websearch_to_tsquery('english', '"sad cat" or "fat rat"');
        websearch_to_tsquery
-      ----------------------
-       'dummi' &amp; 'queri'
-      (1 row)
-    </screen>
+-----------------------------------
+ 'sad' &lt;-&gt; 'cat' | 'fat' &lt;-&gt; 'rat'
+(1 row)
+
+SELECT websearch_to_tsquery('english', 'signal -"segmentation fault"');
+         websearch_to_tsquery
+---------------------------------------
+ 'signal' &amp; !( 'segment' &lt;-&gt; 'fault' )
+(1 row)
+
+SELECT websearch_to_tsquery('english', '""" )( dummy \\ query &lt;-&gt;');
+ websearch_to_tsquery
+----------------------
+ 'dummi' &amp; 'queri'
+(1 row)
+</screen>
     </para>
   </sect2>