Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 22A4B63648E for ; Wed, 12 May 2010 11:39:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 82403-05-2 for ; Wed, 12 May 2010 14:39:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 159326364CB for ; Wed, 12 May 2010 11:32:38 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o4CEWXCZ004653; Wed, 12 May 2010 10:32:33 -0400 (EDT) To: David Schnur cc: pgsql-admin@postgresql.org Subject: Re: Shutdown fails with both 'fast' and 'immediate' In-reply-to: References: Comments: In-reply-to David Schnur message dated "Wed, 12 May 2010 10:22:14 -0400" Date: Wed, 12 May 2010 10:32:33 -0400 Message-ID: <4652.1273674753@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/129 X-Sequence-Number: 34602 David Schnur writes: > I develop an app that uses a back-end Postgres database, currently 8.3.9. > The database is started when the app starts up, and stopped when it shuts > down. Shutdown uses pg_ctl with -m fast, and waits two minutes for the > process to complete. If it doesn't, it tries -m immediate, and waits two > more minutes before logging an error and giving up. Hm, does it shut down properly if you use -m immediate immediately instead of trying fast first? regards, tom lane