Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3785d8e commit edea649Copy full SHA for edea649
src/backend/storage/ipc/sinvaladt.c
@@ -205,6 +205,14 @@ SInvalShmemSize(void)
205
Size size;
206
207
size = offsetof(SISeg, procState);
208
+
209
+ /*
210
+ * In Hot Standby mode, the startup process requests a procState array
211
+ * slot using InitRecoveryTransactionEnvironment(). Even though MaxBackends
212
+ * doesn't account for the startup process, it is guaranteed to get a
213
+ * free slot. This is because the autovacuum launcher and worker processes,
214
+ * which are included in MaxBackends, are not started in Hot Standby mode.
215
+ */
216
size = add_size(size, mul_size(sizeof(ProcState), GetMaxBackends()));
217
218
return size;
0 commit comments