Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedea649

Browse files
committed
Explain why the startup process can't cause a shortage of sinval slots.
Bharath Rupireddy, reviewed by Fujii Masao and Yura Sokolov.Lightly edited by me.Discussion:http://postgr.es/m/CALj2ACU=3_frMkDp9UUeuZoAMjaK1y0Z_q5RFNbGvwi8NM==AA@mail.gmail.com
1 parent3785d8e commitedea649

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/backend/storage/ipc/sinvaladt.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@ SInvalShmemSize(void)
205205
Sizesize;
206206

207207
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+
*/
208216
size=add_size(size,mul_size(sizeof(ProcState),GetMaxBackends()));
209217

210218
returnsize;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp