Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 185C29FBEE1 for ; Fri, 6 Apr 2007 14:40:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27785-02-3 for ; Fri, 6 Apr 2007 14:40:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id AFEB09FBF17 for ; Fri, 6 Apr 2007 14:40:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l36HeR2F015093; Fri, 6 Apr 2007 13:40:27 -0400 (EDT) To: "Jonathan Ellis" cc: pgsql-performance@postgresql.org Subject: Re: Premature view materialization in 8.2? In-reply-to: References: <28349.1175838196@sss.pgh.pa.us> <261.1175840636@sss.pgh.pa.us> Comments: In-reply-to "Jonathan Ellis" message dated "Fri, 06 Apr 2007 08:24:58 -0600" Date: Fri, 06 Apr 2007 13:40:27 -0400 Message-ID: <15092.1175881227@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/170 X-Sequence-Number: 24047 "Jonathan Ellis" writes: > On 4/6/07, Tom Lane wrote: >> Yeah, it sure is the same plan, and 8.2 seems to be a tad faster right >> up to the hash join on user_id. Is user_id a textual datatype? > user_id is an int; they are both C locale. Really!? So much for that theory. Is work_mem set similarly on both installations? The only other thing I can think is that you've exposed some unfortunate corner case in the hash join logic. Would you be willing to send me (off-list) the lists of user_ids being joined? That would be the clan_members.user_id column and the user_id column from the join of parties and clan_participants. regards, tom lane