Skip to content

Commit 403748b

Browse files
knizhniktristan957
authored andcommitted
Do not allocate shared memory for wal_redo process (#165)
* Do not allocate shared memory for wal_redo process * Add comment
1 parent de113ff commit 403748b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/backend/port/sysv_shmem.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, Size size)
155155
}
156156
}
157157
#endif
158+
/*
159+
* NEON: do not create shared memory segments for single user wal redo postgres.
160+
* Many spawned instances of wal redo may exhaust kernel.shmmni
161+
*/
162+
if (am_wal_redo_postgres)
163+
return valloc(size);
158164

159165
shmid = shmget(memKey, size, IPC_CREAT | IPC_EXCL | IPCProtection);
160166

0 commit comments

Comments
 (0)