-
- Downloads
Get rid of the dynamic shared memory state file.
Instead of storing the ID of the dynamic shared memory control segment in a file within the data directory, store it in the main control segment. This avoids a number of nasty corner cases, most seriously that doing an online backup and then using it on the same machine (e.g. to fire up a standby) would result in the standby clobbering all of the master's dynamic shared memory segments. Per complaints from Heikki Linnakangas, Fujii Masao, and Tom Lane.
Showing
- src/backend/port/sysv_shmem.c 10 additions, 2 deletionssrc/backend/port/sysv_shmem.c
- src/backend/port/win32_shmem.c 5 additions, 1 deletionsrc/backend/port/win32_shmem.c
- src/backend/storage/ipc/dsm.c 41 additions, 159 deletionssrc/backend/storage/ipc/dsm.c
- src/backend/storage/ipc/ipci.c 4 additions, 2 deletionssrc/backend/storage/ipc/ipci.c
- src/include/storage/dsm.h 7 additions, 1 deletionsrc/include/storage/dsm.h
- src/include/storage/pg_shmem.h 4 additions, 1 deletionsrc/include/storage/pg_shmem.h
Please register or sign in to comment