Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 02AE563409A for ; Wed, 25 Mar 2009 10:41:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 63022-02 for ; Wed, 25 Mar 2009 10:41:22 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by mail.postgresql.org (Postfix) with ESMTP id 7B4EB633CA7 for ; Wed, 25 Mar 2009 10:40:44 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c5so25113anc.28 for ; Wed, 25 Mar 2009 06:40:41 -0700 (PDT) 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 :content-transfer-encoding; bh=cEfO+uxeTgxJ4LG4bcaESGCLsbtSXxsF6JTsESUIJCw=; b=R8X2lKP1kqddgmakFwL0lRvyA1epI7yhvrkGskm+3dW5tHqFdbGrVjIT1X1ujS+nbd PCEDV/G1/i0BKWlZiJsDcpOjkg/fDMqw16l35RlOL9VuE5iexHX3Irb/dbY/bG89RZPa 49IIJr0Q7KrL/TJR3tG8SJ4+xEXYOEPqYM41g= 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:content-transfer-encoding; b=fXGp5XiSb3inUwoNJ9/4hQQbIQ+ZeFZlTrPq5hv3hdVMpL/rVjOaS40oH9kjYbav94 fFwpu1rIlQ5NGQCyDZpfUlkoMTgISFvIJJmGDz6MN5MHEi2lcvE1KuFfVR3jGm2CKReO jrL2be1Mu6CXdiITW+iog5ElvmPeZyVplzMPY= MIME-Version: 1.0 Received: by 10.100.13.6 with SMTP id 6mr9168926anm.6.1237988441501; Wed, 25 Mar 2009 06:40:41 -0700 (PDT) In-Reply-To: <7fd310d10903242043x28d24adenb729c0a77a21ce9@mail.gmail.com> References: <7fd310d10903231203r1bd37b8cn8baeadae83253f44@mail.gmail.com> <7fd310d10903241521t645462bdpb3b8aee40b4f3ae4@mail.gmail.com> <49C99732.8080703@agliodbs.com> <7fd310d10903242043x28d24adenb729c0a77a21ce9@mail.gmail.com> Date: Wed, 25 Mar 2009 09:40:41 -0400 Message-ID: <603c8f070903250640h775d4201w580b365ccf1669cb@mail.gmail.com> Subject: Re: Help Me Understand Why I'm Getting a Bad Query Plan From: Robert Haas To: Bryan Murphy Cc: Josh Berkus , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.076 tagged_above=0 required=5 tests=AWL=0.076 X-Spam-Level: X-Archive-Number: 200903/366 X-Sequence-Number: 33288 On Tue, Mar 24, 2009 at 11:43 PM, Bryan Murphy wrote: > Looking through our configuration one more time, I see that at some > point I set random_page_cost to 2.0, but I don't see any other changes > to query planner settings from their default values. You don't by any chance have enable_ set to "off", do you? ...Robert