Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
config: Rename "Asynchronous Behavior" to "I/O"
authorAndres Freund <andres@anarazel.de>
Tue, 11 Feb 2025 16:39:20 +0000 (11:39 -0500)
committerAndres Freund <andres@anarazel.de>
Tue, 11 Feb 2025 17:53:40 +0000 (12:53 -0500)
"I/O" seems more descriptive than "Asynchronous Behavior", given that some of
the GUCs in the section don't relate to anything asynchronous.

Most other abbreviations in the config sections are un-abbreviated, but
"Input/Output" seems less likely to be helpful than just IO or I/O.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/x3tlw2jk5gm3r3mv47hwrshffyw7halpczkfbk3peksxds7bvc@lguk43z3bsyq

doc/src/sgml/config.sgml
src/backend/utils/misc/guc_tables.c
src/backend/utils/misc/postgresql.conf.sample
src/include/utils/guc_tables.h

index bd0dffa3e2491b41fe9e35bbd9d43a6b068fe533..17795616b5df7ee45235be7f80d9ef0ec9b61187 100644 (file)
@@ -2506,8 +2506,8 @@ include_dir 'conf.d'
      </para>
     </sect2>
 
-    <sect2 id="runtime-config-resource-async-behavior">
-     <title>Asynchronous Behavior</title>
+    <sect2 id="runtime-config-resource-io">
+     <title>I/O</title>
 
      <variablelist>
       <varlistentry id="guc-backend-flush-after" xreflabel="backend_flush_after">
index 779b6098adae66e61e33c2eae018c6f4f8dbc930..b59a3de49c50689166d7f80f2984a834e1343cd7 100644 (file)
@@ -682,7 +682,7 @@ const char *const config_group_names[] =
    [RESOURCES_DISK] = gettext_noop("Resource Usage / Disk"),
    [RESOURCES_KERNEL] = gettext_noop("Resource Usage / Kernel Resources"),
    [RESOURCES_BGWRITER] = gettext_noop("Resource Usage / Background Writer"),
-   [RESOURCES_ASYNCHRONOUS] = gettext_noop("Resource Usage / Asynchronous Behavior"),
+   [RESOURCES_IO] = gettext_noop("Resource Usage / I/O"),
    [RESOURCES_WORKER_PROCESSES] = gettext_noop("Resource Usage / Worker Processes"),
    [WAL_SETTINGS] = gettext_noop("Write-Ahead Log / Settings"),
    [WAL_CHECKPOINTS] = gettext_noop("Write-Ahead Log / Checkpoints"),
@@ -3181,7 +3181,7 @@ struct config_int ConfigureNamesInt[] =
    {
        {"effective_io_concurrency",
            PGC_USERSET,
-           RESOURCES_ASYNCHRONOUS,
+           RESOURCES_IO,
            gettext_noop("Number of simultaneous requests that can be handled efficiently by the disk subsystem."),
            NULL,
            GUC_EXPLAIN
@@ -3195,7 +3195,7 @@ struct config_int ConfigureNamesInt[] =
    {
        {"maintenance_io_concurrency",
            PGC_USERSET,
-           RESOURCES_ASYNCHRONOUS,
+           RESOURCES_IO,
            gettext_noop("A variant of \"effective_io_concurrency\" that is used for maintenance work."),
            NULL,
            GUC_EXPLAIN
@@ -3210,7 +3210,7 @@ struct config_int ConfigureNamesInt[] =
    {
        {"io_combine_limit",
            PGC_USERSET,
-           RESOURCES_ASYNCHRONOUS,
+           RESOURCES_IO,
            gettext_noop("Limit on the size of data reads and writes."),
            NULL,
            GUC_UNIT_BLOCKS
@@ -3222,7 +3222,7 @@ struct config_int ConfigureNamesInt[] =
    },
 
    {
-       {"backend_flush_after", PGC_USERSET, RESOURCES_ASYNCHRONOUS,
+       {"backend_flush_after", PGC_USERSET, RESOURCES_IO,
            gettext_noop("Number of pages after which previously performed writes are flushed to disk."),
            NULL,
            GUC_UNIT_BLOCKS
index 7a77238646ee701e520fa5c4337259e2a39fc36e..4349247245530e286d455521bff8f8c10999f94a 100644 (file)
 #bgwriter_lru_multiplier = 2.0     # 0-10.0 multiplier on buffers scanned/round
 #bgwriter_flush_after = 0      # measured in pages, 0 disables
 
-# - Asynchronous Behavior -
+# - I/O -
 
 #backend_flush_after = 0       # measured in pages, 0 disables
 #effective_io_concurrency = 1      # 1-1000; 0 disables prefetching
index 0b16b4dcf57d686f3474236fd25e61106135a69c..1c1c5b6ea523372c7b42f980a370d4a0bbb966f7 100644 (file)
@@ -64,7 +64,7 @@ enum config_group
    RESOURCES_DISK,
    RESOURCES_KERNEL,
    RESOURCES_BGWRITER,
-   RESOURCES_ASYNCHRONOUS,
+   RESOURCES_IO,
    RESOURCES_WORKER_PROCESSES,
    WAL_SETTINGS,
    WAL_CHECKPOINTS,