Skip to content

Commit 9fd9794

Browse files
committed
Remove walredo-related hacks from InternalIpcMemoryCreate()
Now similar kind of hack (using malloc() instead of shmem) is done in the wal-redo extension.
1 parent 29fd6af commit 9fd9794

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/backend/port/sysv_shmem.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,22 +155,6 @@ InternalIpcMemoryCreate(IpcMemoryKey memKey, Size size)
155155
}
156156
}
157157
#endif
158-
159-
/*
160-
* NEON: do not create shared memory segments for single user wal redo
161-
* postgres. Many spawned instances of wal redo may exhaust kernel.shmmni
162-
*/
163-
if (am_wal_redo_postgres)
164-
{
165-
void *ptr = malloc(size);
166-
167-
if (ptr == NULL)
168-
{
169-
ereport(FATAL,
170-
(errmsg("could not create shared memory segment with size %zu for WAL redo process", size)));
171-
}
172-
return ptr;
173-
}
174158
shmid = shmget(memKey, size, IPC_CREAT | IPC_EXCL | IPCProtection);
175159

176160
if (shmid < 0)

0 commit comments

Comments
 (0)