Schedule ShutdownXLOG() in single user mode using before_shmem_exit().
Andres Freund <andres@anarazel.de>
Schedule ShutdownXLOG() in single user mode using before_shmem_exit(). Previously on_shmem_exit() was used. The upcoming shared memory stats patch uses DSM segments to store stats, which can not be used after the dsm_backend_shutdown() call in shmem_exit(). There does not seem to be any reason to do ShutdownXLOG() via on_shmem_exit(), so change it. Author: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/20210405092914.mmxqe7j56lsjfsej@alap3.anarazel.de Discussion: https://postgr.es/m/20210803023612.iziacxk5syn2r4ut@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/init/postinit.c | modified | +5 −1 |
Discussion
- shared-memory based stats collector 339 messages · 2018-06-29 → 2024-12-10
- Dividing line between before_shmem_exit and on_shmem_exit? 1 message · 2021-08-03