Attempt to stop dead instance can stop a random process?
| От | Kevin Grittner |
|---|---|
| Тема | Attempt to stop dead instance can stop a random process? |
| Дата | |
| Msg-id | 46D8035F.EE98.0025.0@wicourts.gov обсуждение исходный текст |
| Ответы |
Re: Attempt to stop dead instance can stop a random process?
|
| Список | pgsql-hackers |
It appears that when pg_ctl gets a stop request for a given directory, it looks for a pid file in that directory and signalsthat pid to stop. It doesn't appear to check that the pid is for a PostgreSQL postmaster running out of the givendirectory. I think it should, although on a quick scan of the code, I didn't see a convenient way to do that. I have some evidence that when we attempted to stop a PostgreSQL instance which (it turned out) had died without cleaningup the pid file, it actually stopped another instance which was using a different data directory but had wrappedaround to the same pid. I guess if we ran each instance under a different OS user we would be protected from this, but that we hadn't thought thatwas necessary. Besides, we have other processes running under that OS login for maintenance or as part of the recoveryprocessing. -Kevin
В списке pgsql-hackers по дате отправления: