Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EFFC464FCEF for ; Thu, 18 Sep 2008 15:58:29 -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 89322-08 for ; Thu, 18 Sep 2008 15:58:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 23FFC64FCE8 for ; Thu, 18 Sep 2008 15:58:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m8IIwP28024981; Thu, 18 Sep 2008 14:58:25 -0400 (EDT) To: "Scott Carey" cc: "Kevin Grittner" , "Nikolas Everett" , pgsql-performance@postgresql.org Subject: Re: Why does this query write to the disk? In-reply-to: References: <48D24E6C.EE98.0025.0@wicourts.gov> <23587.1221761600@sss.pgh.pa.us> Comments: In-reply-to "Scott Carey" message dated "Thu, 18 Sep 2008 11:33:31 -0700" Date: Thu, 18 Sep 2008 14:58:25 -0400 Message-ID: <24980.1221764305@sss.pgh.pa.us> From: Tom Lane 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: 200809/185 X-Sequence-Number: 31498 "Scott Carey" writes: > Under what conditions does EXPLAIN ANALYZE report spilling work_mem to > disk? For hash joins, it doesn't. You might be thinking of the additional reporting we added for sorts recently; but there's no comparable logging for hash ... regards, tom lane