diff options
Diffstat (limited to 'src/backend/postmaster/pgstat.c')
-rw-r--r-- | src/backend/postmaster/pgstat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 1ca5d130444..3dc280a48d7 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -50,6 +50,7 @@ #include "postmaster/postmaster.h" #include "storage/proc.h" #include "storage/backendid.h" +#include "storage/dsm.h" #include "storage/fd.h" #include "storage/ipc.h" #include "storage/latch.h" @@ -709,6 +710,7 @@ pgstat_start(void) on_exit_reset(); /* Drop our connection to postmaster's shared memory, as well */ + dsm_detach_all(); PGSharedMemoryDetach(); PgstatCollectorMain(0, NULL); |