Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A84BF632CCC for ; Wed, 10 Feb 2010 05:12:04 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 02265-08 for ; Wed, 10 Feb 2010 09:11:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f222.google.com (mail-ew0-f222.google.com [209.85.219.222]) by mail.postgresql.org (Postfix) with ESMTP id 99CFA632D1B for ; Wed, 10 Feb 2010 05:11:53 -0400 (AST) Received: by ewy22 with SMTP id 22so305917ewy.34 for ; Wed, 10 Feb 2010 01:11:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=N0q0vl1PHBIgniqA5KGKJdlJIpv5CoV5idJaSYduFfc=; b=K9fxf5doHz/nPZP2oi0oa09m661PFNIW3FlMOMnYUFQuapfdWlyS6TCWUjcg354GxW 8dExnO/Su9lJWzlP8e4Jd3SlpxLdFHGIsBtKN0C23YF48h3Zg/ZIFv+EbcRBDhZJR7Lw FWxkmrv9lKivayQAGZ6rgid72YoWfHaSV97X4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wlUXK3C0CjEiicAOp0hckC0uhwQpKzBOv/hzrdWAl9b439jn7fK55NtH6Vg3wYsUtA 8O7BrVU4qIvERZabC+z0bBI6q85K9cf8LfnKje6eRZpdmtUEv5QxvoYC2JdOXfkj5CQT aG1Uyzryb6mg8fhfq+6yUI5FvKUIQggdcnH6c= MIME-Version: 1.0 Received: by 10.216.87.3 with SMTP id x3mr2127756wee.132.1265793111304; Wed, 10 Feb 2010 01:11:51 -0800 (PST) In-Reply-To: <4B726E81.2060904@obviously.com> References: <4B723042.7090406@obviously.com> <4B726E81.2060904@obviously.com> Date: Wed, 10 Feb 2010 10:11:51 +0100 Message-ID: <162867791002100111n3cbf2164p5b9907d82174ba9@mail.gmail.com> Subject: Re: Re: 512,600ms query becomes 7500ms... but why? Postgres 8.3 query planner quirk? From: Pavel Stehule To: Bryce Nesbitt Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.527 tagged_above=-10 required=5 tests=AWL=0.072, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/154 X-Sequence-Number: 37575 2010/2/10 Bryce Nesbitt : > Or, if you want to actually read that query plan, try: > http://explain.depesz.com/s/qYq > hello, check your work_mem sesttings. Hash join is very slow in your case. Pavel > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance >