Fix recovery_prefetch docs.
authorThomas Munro <[email protected]>
Fri, 8 Apr 2022 01:28:04 +0000 (13:28 +1200)
committerThomas Munro <[email protected]>
Fri, 8 Apr 2022 01:43:37 +0000 (13:43 +1200)
Correct a typo and a couple of sentences that weren't updated to reflect
recent changes to the code.

Reported-by: Justin Pryzby <[email protected]>
Discussion: https://postgr.es/m/20220407125555.GC24419%40telsasoft.com

doc/src/sgml/config.sgml
doc/src/sgml/monitoring.sgml
doc/src/sgml/wal.sgml

index ac533968a0ccf7e14ff3d2a82a3347902d48a008..c2c7a95a8285c4dbff74ae4ff79b9cccb29db307 100644 (file)
@@ -3685,8 +3685,9 @@ include_dir 'conf.d'
        <para>
         Whether to try to prefetch blocks that are referenced in the WAL that
         are not yet in the buffer pool, during recovery.  Valid values are
-        <literal>off</literal> (the default), <literal>on</literal> and
-        <literal>try</literal>.  The setting <literal>try</literal> enables
+        <literal>off</literal>, <literal>on</literal> and
+        <literal>try</literal> (the default).  The setting
+        <literal>try</literal> enables
         prefetching only if the operating system provides the
         <function>posix_fadvise</function> function, which is currently used
         to implement prefetching.  Note that some operating systems provide the
index 76766d28dd4f38f87783a7cdcc8c89a9c2e70046..8717df060e240d55c96510806e1ab8cd48f33bcd 100644 (file)
@@ -3049,11 +3049,9 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
 
   <para>
    The <structname>pg_stat_recovery_prefetch</structname> view will contain
-   only one row.  It is filled with nulls if recovery has not run or
-   <xref linkend="guc-recovery-prefetch"/> is not enabled.  The
-   columns <structfield>wal_distance</structfield>,
-   <structfield>block_distance</structfield>
-   and <structfield>io_depth</structfield> show current values, and the
+   only one row.  The columns <structfield>wal_distance</structfield>,
+   <structfield>block_distance</structfield> and
+   <structfield>io_depth</structfield> show current values, and the
    other columns show cumulative counters that can be reset
    with the <function>pg_stat_reset_shared</function> function.
   </para>
index 6b3406b7de6204af155bb979f297ca8b4fcfeaa0..4b6ef283c1ce72d57ad6a1241724f47b4d72dcb9 100644 (file)
    The <xref linkend="guc-maintenance-io-concurrency"/> and
    <xref linkend="guc-wal-decode-buffer-size"/> settings limit prefetching
    concurrency and distance, respectively.  By default, it is set to
-   <literal>try</literal>, which enabled the feature on systems where
+   <literal>try</literal>, which enables the feature on systems where
    <function>posix_fadvise</function> is available.
   </para>
  </sect1>