Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B84241337BA6 for ; Thu, 27 Jan 2011 11:18:20 -0400 (AST) 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 23160-07 for ; Thu, 27 Jan 2011 15:18:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id B5B101337B84 for ; Thu, 27 Jan 2011 11:18:12 -0400 (AST) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 27 Jan 2011 09:18:13 -0600 Message-Id: <4D4138530200002500039E7E@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 27 Jan 2011 09:18:11 -0600 From: "Kevin Grittner" To: "Bernhard Schrader" Cc: "Bruce Momjian" , Subject: Re: pg_upgrade 8.3 to 9.0, shutdown is to slow References: <201101270241.p0R2f4B25076@momjian.us> <1296116252.2220.6.camel@schrader-laptop> In-Reply-To: <1296116252.2220.6.camel@schrader-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/166 X-Sequence-Number: 36606 Bernhard Schrader wrote: > what maybe is also interesting, if i start the database manually i > have a huge waiting IO of 23% for a time of maybe 2-5 minutes, i > think it is because of the fragmentation of the tables. > > is the shutdown so slow because of the waiting io? but why can i > stop it as user root without problems... How do you "stop it as user root", exactly? If you kill PostgreSQL too abruptly, the recovery could easily run for several minutes with a lot of I/O while it recovers. Taking pg_upgrade out of the picture for a minute -- how long do shutdowns and startups normally take you? -Kevin