X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6C7D0D1BC5C for ; Mon, 15 Dec 2003 16:10:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 67035-06 for ; Mon, 15 Dec 2003 12:10:07 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id F14D5D1BB74 for ; Mon, 15 Dec 2003 12:10:00 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hBFGA119012971; Mon, 15 Dec 2003 11:10:01 -0500 (EST) To: "Uwe C. Schroeder" Cc: "Ganesan Kanavathy" , pgsql-admin@postgresql.org Subject: Re: Shutdown pg db In-reply-to: <200312150109.53153.uwe@oss4u.com> References: <003301c3c2e7$f355b460$5400a8c0@headquarters.mq.com> <200312150109.53153.uwe@oss4u.com> Comments: In-reply-to "Uwe C. Schroeder" message dated "Mon, 15 Dec 2003 01:09:53 -0800" Date: Mon, 15 Dec 2003 11:10:01 -0500 Message-ID: <12970.1071504601@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/193 X-Sequence-Number: 11700 "Uwe C. Schroeder" writes: > NEVER kill -9 a postmaster > Althoug funny enough it pretty often tolerates that kind of killing, it will > not allow the process to properly shut down the database. So you may or may > not be lucky to end up with a good database. The database is safe enough. What you are likely to have trouble with is starting a fresh postmaster --- kill -9 prevents the postmaster from releasing shared memory, for example, and you may not have a high enough SHMMAX to just go and create another shared memory segment. Do it a few times in a row and you'll almost surely overrun SHMMAX. This will leave you having to manually remove the old shared memory, or reboot the machine, before you can restart Postgres. Use the documented methods for shutting down Postgres. regards, tom lane