-
- Downloads
Refactor EXEC_BACKEND code so that postmaster child processes reattach
to shared memory as soon as possible, ie, right after read_backend_variables. The effective difference from the original code is that this happens before instead of after read_nondefault_variables(), which loads GUC information and is apparently capable of expanding the backend's memory allocation more than you'd think it should. This should fix the failure-to-attach-to-shared-memory reports we've been seeing on Windows. Also clean up a few bits of unnecessarily grotty EXEC_BACKEND code.
Showing
- src/backend/port/sysv_shmem.c 45 additions, 30 deletionssrc/backend/port/sysv_shmem.c
- src/backend/postmaster/postmaster.c 36 additions, 24 deletionssrc/backend/postmaster/postmaster.c
- src/backend/storage/file/fd.c 72 additions, 47 deletionssrc/backend/storage/file/fd.c
- src/backend/storage/ipc/ipci.c 17 additions, 13 deletionssrc/backend/storage/ipc/ipci.c
- src/include/postmaster/postmaster.h 4 additions, 1 deletionsrc/include/postmaster/postmaster.h
- src/include/storage/ipc.h 1 addition, 7 deletionssrc/include/storage/ipc.h
- src/include/storage/pg_shmem.h 3 additions, 1 deletionsrc/include/storage/pg_shmem.h
Loading
Please register or sign in to comment