Re: postgres process got stuck in "notify interrupt waiting" status
От | Tom Lane |
---|---|
Тема | Re: postgres process got stuck in "notify interrupt waiting" status |
Дата | |
Msg-id | 16184.1346855913@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: postgres process got stuck in "notify interrupt waiting" status (Craig Ringer <ringerc@ringerc.id.au>) |
Ответы |
Re: postgres process got stuck in "notify interrupt
waiting" status
|
Список | pgsql-general |
Craig Ringer <ringerc@ringerc.id.au> writes: > On 09/05/2012 12:21 PM, John R Pierce wrote: >> was this a client process or a postgres process? kill -9 on postgres >> processes can easily trigger data corruption. > It certainly shouldn't. > kill -9 of the postmaster, deletion of postmaster.pid, and re-starting > postgresql *might* but AFAIK even then you'll have to bypass the shared > memory lockout (unless you're on Windows). Correction on that: manually deleting postmaster.pid *does* bypass the shared memory lock. If there are still any live backends from the old postmaster, you can get corruption as a result of this, because the old backends and the new ones will be modifying the database independently. This is why we recommend that you never delete postmaster.pid manually, and certainly not as part of an automatic startup script. Having said that, a kill -9 on an individual backend (*not* the postmaster) should be safe enough, if you don't mind the fact that it'll kill all your other sessions too. regards, tom lane
В списке pgsql-general по дате отправления: