Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vaw0a-00056j-DP for pgsql-performance@arkaria.postgresql.org; Mon, 28 Oct 2013 23:14:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vaw0Z-0006bj-Nc for pgsql-performance@arkaria.postgresql.org; Mon, 28 Oct 2013 23:14:03 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vaw0Y-0006a9-An for pgsql-performance@postgresql.org; Mon, 28 Oct 2013 23:14:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vaw0W-00037w-4X for pgsql-performance@postgresql.org; Mon, 28 Oct 2013 23:14:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r9SNDt8E013776; Mon, 28 Oct 2013 19:13:55 -0400 From: Tom Lane To: Jim Nasby cc: "pgsql-performance@postgresql.org" Subject: Re: Problems with hash join over nested loop In-reply-to: <526EDDF7.3090102@enova.com> References: <526EDDF7.3090102@enova.com> Comments: In-reply-to Jim Nasby message dated "Mon, 28 Oct 2013 16:58:15 -0500" Date: Mon, 28 Oct 2013 19:13:55 -0400 Message-ID: <13775.1383002035@sss.pgh.pa.us> X-Pg-Spam-Score: -1.0 (-) 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 Jim Nasby writes: > I've been working on trying to normalize a table that's got a bunch of text fields. Normalizing the first 4 has been a non-issue. But when I try and normalize 2 additional fields a bunch of query plans go belly-up. Try increasing join_collapse_limit/from_collapse_limit. I'm a bit confused by your description but I think maybe you've got more than 8 relations in the subqueries. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance