aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-05-07 14:55:57 +0900
committerMichael Paquier <michael@paquier.xyz>2025-05-07 14:55:57 +0900
commitc4c236ab5c416131baa7109cdc25ccaadd4d7158 (patch)
tree23c7b7e12743f71036753733d999ffdfb01ef5fb /src/backend/storage
parent09a47c68e2fce446849ce0262eff1bfbf921fa18 (diff)
downloadpostgresql-c4c236ab5c416131baa7109cdc25ccaadd4d7158.tar.gz
postgresql-c4c236ab5c416131baa7109cdc25ccaadd4d7158.zip
Fix some comments related to IO workers
IO workers are treated as auxiliary processes. The comments fixed in this commit stated that there could be only one auxiliary process of each BackendType at the same time. This is not true for IO workers, as up to MAX_IO_WORKERS of them can co-exist at the same time. Author: Cédric Villemain <Cedric.Villemain@data-bene.io> Co-authored-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/e4a3ac45-abce-4b58-a043-b4a31cd11113@Data-Bene.io
Diffstat (limited to 'src/backend/storage')
-rw-r--r--src/backend/storage/ipc/procsignal.c3
-rw-r--r--src/backend/storage/ipc/sinvaladt.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/storage/ipc/procsignal.c b/src/backend/storage/ipc/procsignal.c
index a3c2cd12277..1a4cc5e5d97 100644
--- a/src/backend/storage/ipc/procsignal.c
+++ b/src/backend/storage/ipc/procsignal.c
@@ -89,7 +89,8 @@ struct ProcSignalHeader
/*
* We reserve a slot for each possible ProcNumber, plus one for each
* possible auxiliary process type. (This scheme assumes there is not
- * more than one of any auxiliary process type at a time.)
+ * more than one of any auxiliary process type at a time, except for
+ * IO workers.)
*/
#define NumProcSignalSlots (MaxBackends + NUM_AUXILIARY_PROCS)
diff --git a/src/backend/storage/ipc/sinvaladt.c b/src/backend/storage/ipc/sinvaladt.c
index 2da91738c32..c5748b690f4 100644
--- a/src/backend/storage/ipc/sinvaladt.c
+++ b/src/backend/storage/ipc/sinvaladt.c
@@ -198,7 +198,8 @@ typedef struct SISeg
/*
* We reserve a slot for each possible ProcNumber, plus one for each
* possible auxiliary process type. (This scheme assumes there is not
- * more than one of any auxiliary process type at a time.)
+ * more than one of any auxiliary process type at a time, except for
+ * IO workers.)
*/
#define NumProcStateSlots (MaxBackends + NUM_AUXILIARY_PROCS)