Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRle7-0001VE-Aj for pgsql-performance@arkaria.postgresql.org; Thu, 03 Oct 2013 16:20:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VRle6-0005dC-Pu for pgsql-performance@arkaria.postgresql.org; Thu, 03 Oct 2013 16:20:58 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRle5-0005d5-IT for pgsql-performance@postgresql.org; Thu, 03 Oct 2013 16:20:57 +0000 Received: from vexbert.mr-paradox.net ([2001:470:b:28:f::1]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRle2-0005Ya-5b for pgsql-performance@postgresql.org; Thu, 03 Oct 2013 16:20:56 +0000 Received: by vexbert.mr-paradox.net (Postfix, from userid 18391) id 040F08476C; Thu, 3 Oct 2013 12:20:53 -0400 (EDT) Date: Thu, 3 Oct 2013 09:20:52 -0700 From: David Kerr To: Samuel Stearns Cc: Claudio Freire , David Johnston , "pgsql-performance@postgresql.org" Subject: Re: 57 minute SELECT Message-ID: <20131003162049.GA5072@mr-paradox.net> References: <1380763034169-5773174.post@n5.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Pg-Spam-Score: -0.7 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On Thu, Oct 03, 2013 at 01:47:29AM +0000, Samuel Stearns wrote: - Thanks, Claudio: - - http://explain.depesz.com/s/WJQx You're spending a lot of time in the hash join which can kill a system with low ram. You may, just for fun, want to try the query with enable_hashjoin=false. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance