diff options
author | Noah Misch <noah@leadboat.com> | 2019-03-31 19:32:48 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2019-03-31 19:32:52 -0700 |
commit | 327399412d035a3951f48d74356ff1449b9b7e91 (patch) | |
tree | 2053999252d8040cae93c6ceacc527206e16fdde | |
parent | f0fd9caef4a5801ff85e6339a00647b986f571fa (diff) | |
download | postgresql-327399412d035a3951f48d74356ff1449b9b7e91.tar.gz postgresql-327399412d035a3951f48d74356ff1449b9b7e91.zip |
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 (39627b1ae680cba44f6e56ca5facec4fdbfe9495) 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
-rw-r--r-- | src/backend/utils/init/miscinit.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index a5d65d0b6f8..9b2c532023e 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -974,14 +974,10 @@ CreateLockFile(const char *filename, bool amPostmaster, if (PGSharedMemoryIsInUse(id1, id2)) ereport(FATAL, (errcode(ERRCODE_LOCK_FILE_EXISTS), - errmsg("pre-existing shared memory block " - "(key %lu, ID %lu) is still in use", + errmsg("pre-existing shared memory block (key %lu, ID %lu) is still in use", id1, id2), - errhint("If you're sure there are no old " - "server processes still running, remove " - "the shared memory block " - "or just delete the file \"%s\".", - filename))); + errhint("Terminate any old server processes associated with data directory \"%s\".", + refName))); } } |