Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 33FF6650303 for ; Thu, 28 Aug 2008 22:11:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 10153-04 for ; Thu, 28 Aug 2008 22:11:46 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by postgresql.org (Postfix) with ESMTP id BE0E865030D for ; Thu, 28 Aug 2008 22:11:51 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so844884rvf.43 for ; Thu, 28 Aug 2008 18:11:50 -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=oyAns2226bAIJ6Zdl4zEKrM9KVytKiRMPSmJ2kwvQLE=; b=mLqTIExbxSB0dDAwvYN2/x3/O5M4KL4WgZIs2GvfG7cUgBMsEV369mmZ4tqGJ5Riwr p9MiMJmwdz7Ebkq91X3w7x6bfDVU+dg8SgWxvpPMwT1p9mRimIrxK5ArbITIZqw2YzNi eDyp5LFGug5BclrHJMkUZ0NYbwDlGZCYHDRPY= 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=QAO9sw6RgDC65HnlQNwmWZxM60wpUTosGfYaI6Zv2qVmsu+eG308Yk7f+5dUNydhV7 bHqi5d6yuM5laurOspuVRXe+A0gm/4oCHXsoZeQrw25z3C0wk5m8Xrew7NKW6SIq4cRG 4A2uWJ8k9wU4aRUt9HxUDTAPOh7wkaeCkdk0k= Received: by 10.141.177.10 with SMTP id e10mr1144781rvp.112.1219972310297; Thu, 28 Aug 2008 18:11:50 -0700 (PDT) Received: by 10.141.197.1 with HTTP; Thu, 28 Aug 2008 18:11:50 -0700 (PDT) Message-ID: Date: Thu, 28 Aug 2008 19:11:50 -0600 From: "Scott Marlowe" To: david@lang.hm Subject: Re: select on 22 GB table causes "An I/O error occured while sending to the backend." exception Cc: "Matthew Wakeling" , "PostgreSQL Performance" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <82bpze3ou8.fsf@mid.bfk.de> <48B6EA7E.2090707@emolecules.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200808/401 X-Sequence-Number: 31282 On Thu, Aug 28, 2008 at 5:08 PM, wrote: > On Thu, 28 Aug 2008, Scott Marlowe wrote: > >> On Thu, Aug 28, 2008 at 2:29 PM, Matthew Wakeling >> wrote: >> >>> Another point is that from a business perspective, a database that has >>> stopped responding is equally bad regardless of whether that is because >>> the >>> OOM killer has appeared or because the machine is thrashing. In both >>> cases, >>> there is a maximum throughput that the machine can handle, and if >>> requests >>> appear quicker than that the system will collapse, especially if the >>> requests start timing out and being retried. >> >> But there's a HUGE difference between a machine that has bogged down >> under load so badly that you have to reset it and a machine that's had >> the postmaster slaughtered by the OOM killer. In the first situation, >> while the machine is unresponsive, it should come right back up with a >> coherent database after the restart. >> >> OTOH, a machine with a dead postmaster is far more likely to have a >> corrupted database when it gets restarted. > > wait a min here, postgres is supposed to be able to survive a complete box > failure without corrupting the database, if killing a process can corrupt > the database it sounds like a major problem. Yes it is a major problem, but not with postgresql. It's a major problem with the linux OOM killer killing processes that should not be killed. Would it be postgresql's fault if it corrupted data because my machine had bad memory? Or a bad hard drive? This is the same kind of failure. The postmaster should never be killed. It's the one thing holding it all together.