Fix recovery_prefetch docs.
authorThomas Munro
Fri, 8 Apr 2022 01:28:04 +0000 (13:28 +1200)
committerThomas Munro
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
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'
        
         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
-        off (the default), on and
-        try.  The setting try enables
+        offon and
+        try (the default).  The setting
+        try enables
         prefetching only if the operating system provides the
         posix_fadvise 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
 
   
    The pg_stat_recovery_prefetch view will contain
-   only one row.  It is filled with nulls if recovery has not run or
-    is not enabled.  The
-   columns wal_distance,
-   block_distance
-   and io_depth show current values, and the
+   only one row.  The columns wal_distance,
+   block_distance and
+   io_depth show current values, and the
    other columns show cumulative counters that can be reset
    with the pg_stat_reset_shared function.
   
index 6b3406b7de6204af155bb979f297ca8b4fcfeaa0..4b6ef283c1ce72d57ad6a1241724f47b4d72dcb9 100644 (file)
    The  and
     settings limit prefetching
    concurrency and distance, respectively.  By default, it is set to
-   try, which enabled the feature on systems where
+   try, which enables the feature on systems where
    posix_fadvise is available.