Skip to content

Commit 3273994

Browse files
committed
Update HINT for pre-existing shared memory block.
One should almost always terminate an old process, not use a manual removal tool like ipcrm. Removal of the ipcclean script eleven years ago (39627b1) and its non-replacement corroborate that manual shm removal is now a niche goal. Back-patch to 9.4 (all supported versions). Reviewed by Daniel Gustafsson and Kyotaro HORIGUCHI. Discussion: https://postgr.es/m/20180812064815.GB2301738@rfd.leadboat.com
1 parent f0fd9ca commit 3273994

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/backend/utils/init/miscinit.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -974,14 +974,10 @@ CreateLockFile(const char *filename, bool amPostmaster,
974974
if (PGSharedMemoryIsInUse(id1, id2))
975975
ereport(FATAL,
976976
(errcode(ERRCODE_LOCK_FILE_EXISTS),
977-
errmsg("pre-existing shared memory block "
978-
"(key %lu, ID %lu) is still in use",
977+
errmsg("pre-existing shared memory block (key %lu, ID %lu) is still in use",
979978
id1, id2),
980-
errhint("If you're sure there are no old "
981-
"server processes still running, remove "
982-
"the shared memory block "
983-
"or just delete the file \"%s\".",
984-
filename)));
979+
errhint("Terminate any old server processes associated with data directory \"%s\".",
980+
refName)));
985981
}
986982
}
987983

0 commit comments

Comments
 (0)