Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 224A62E008F for ; Tue, 27 May 2008 15:22:02 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 52691-03-2 for ; Tue, 27 May 2008 15:21:55 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.184]) by developer.postgresql.org (Postfix) with ESMTP id 9FB782E008B for ; Tue, 27 May 2008 15:20:29 -0300 (ADT) Received: by rn-out-0910.google.com with SMTP id v73so1602493rnb.0 for ; Tue, 27 May 2008 11:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=SrzVmYXp2opOd3D9g91zNeD9cslxNLoeNueKNYZxZgI=; b=aIzkEr1GqwNI9rc2m+FN05Td6Dyj1UhkAgWH55WxhS0MN998q79/wKNcW+YRgTUesZN8Nr2dvXr3kNS8Fsm0+qBJc2s8GRv4EtlLiOwibXvMa+XMaUYecD2O39F5+MGsYxFfqZIjtCiNuAUtkDRUqRToUMWWJginfJonzGv3cg0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FeaefcogMKzf5Gy9IR0E+KGK9lWWOA1ZU36ILdUbwH8SYRIzpDoFMqPni1GNlG0B1D4f4oqKtii63qpFluST3hxqOBoN4jurRMmJupW4JYOVwd6B+OmtEUcR4lN3ASFB6EalHakPzOKNJ6Z8fBPqo+3tTtjGuxhyBb7jj8XIgfk= Received: by 10.114.24.1 with SMTP id 1mr1652329wax.74.1211912427289; Tue, 27 May 2008 11:20:27 -0700 (PDT) Received: by 10.114.130.17 with HTTP; Tue, 27 May 2008 11:20:27 -0700 (PDT) Message-ID: Date: Tue, 27 May 2008 12:20:27 -0600 From: "Scott Marlowe" To: "Carol Walter" Subject: Re: Postgres will not shutdown? Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/229 X-Sequence-Number: 29313 On Tue, May 27, 2008 at 8:22 AM, Carol Walter wrote: > Hello, > > I've had a number of problems with Postgres in passed few days. First ,I > had an issue with a corrupt index. One solution required that I stop and > start postgres so it would read the postgresql.conf file. It looked like it > was stopping but it wasn't. I finally had to kill the processes. The > problem was that postgres didn't thing the pg_ctl was running. Then I > realized I had not set the parameter that I needed to set quite high enough > so I had to stop and restart it again. It didn't stop again but this time I > got the following message: > > # /etc/init.d/cswpostgres stop > Stopping PostgreSQL database... > waiting for server to shut > down............................................................... failed > pg_ctl: server does not shut down > > Can anyone help unravel this? more than likely your initscript is calling pg_ctl -D datadir stop In pg_ctl there's a -m switch with 3 args that can let you stop postgresql faster. The three args are smart, fast, and immediate. Smart, the default waits for the clients to disconnect, fast disconnects the clients, which rolls back their transactions, then shuts down pg, Immediate kills all the postgres backends and requires that the db recover on restart.