Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id C94AD9FBE06 for ; Fri, 6 Apr 2007 03:24:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 57133-09 for ; Fri, 6 Apr 2007 03:23:55 -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 F06869FB3B5 for ; Fri, 6 Apr 2007 03:23:56 -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 l366NuSk000262; Fri, 6 Apr 2007 02:23:56 -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> Comments: In-reply-to "Jonathan Ellis" message dated "Thu, 05 Apr 2007 23:51:29 -0600" Date: Fri, 06 Apr 2007 02:23:56 -0400 Message-ID: <261.1175840636@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/154 X-Sequence-Number: 24031 "Jonathan Ellis" writes: > On 4/5/07, Tom Lane wrote: >>> Is this a regression, or a "feature" of 8.2? >> >> Hard to say without EXPLAIN ANALYZE output to compare. > To my eye they are identical other than the speed but perhaps I am > missing something. 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? I'm wondering if the 8.2 installation is using a different locale --- the speed of simple string comparisons can be horrifically worse in some locales compared to others. regards, tom lane