Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbeqi-00086N-Nd for pgsql-performance@arkaria.postgresql.org; Wed, 30 Oct 2013 23:06:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vbeqh-0000gQ-Gx for pgsql-performance@arkaria.postgresql.org; Wed, 30 Oct 2013 23:06:51 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vbeqg-0000gJ-C8 for pgsql-performance@postgresql.org; Wed, 30 Oct 2013 23:06:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VbeqZ-00044K-Hg for pgsql-performance@postgresql.org; Wed, 30 Oct 2013 23:06:49 +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 r9UN6drV007542; Wed, 30 Oct 2013 19:06:39 -0400 From: Tom Lane To: Jim Nasby cc: Merlin Moncure , "pgsql-performance@postgresql.org" Subject: Re: Problems with hash join over nested loop In-reply-to: <527188E6.2030209@enova.com> References: <526EDDF7.3090102@enova.com> <13775.1383002035@sss.pgh.pa.us> <526FE086.4020903@enova.com> <3692.1383065114@sss.pgh.pa.us> <526FE7D0.9000605@enova.com> <5575.1383070823@sss.pgh.pa.us> <527015BC.3020405@enova.com> <8314.1383078998@sss.pgh.pa.us> <527187ED.1000907@enova.com> <527188E6.2030209@enova.com> Comments: In-reply-to Jim Nasby message dated "Wed, 30 Oct 2013 17:32:06 -0500" Date: Wed, 30 Oct 2013 19:06:39 -0400 Message-ID: <7541.1383174399@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) 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: > Oh, and in my 28 table case ru_minflt was 428 4k memory pages (1.7MB). Not a great measurement, but better than nothing. I didn't detect anything noticeable on vmstat either, so I don't think the consumption is huge (an email in the older thread mentioned 1GB... I'm not seeing that). Note that what matters here is not so much the number of base relations as the number of possible join paths, which varies quite a lot depending on the given and deduced join conditions. Worst-case is where join conditions are available between any two base relations, which is not a real common case. 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