Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CC59B632CBA for ; Thu, 26 Mar 2009 00:28:31 -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 82568-01 for ; Thu, 26 Mar 2009 00:28:24 -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 mail.postgresql.org (Postfix) with ESMTP id 79586632365 for ; Thu, 26 Mar 2009 00:28:19 -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 n2Q3SHY1012625; Wed, 25 Mar 2009 23:28:17 -0400 (EDT) To: Bryan Murphy cc: Josh Berkus , pgsql-performance@postgresql.org Subject: Re: Help Me Understand Why I'm Getting a Bad Query Plan In-reply-to: <7fd310d10903252019p22352555lc346b7532edf075c@mail.gmail.com> References: <7fd310d10903231203r1bd37b8cn8baeadae83253f44@mail.gmail.com> <7fd310d10903241521v1cbf5d7aueca653e03ed98649@mail.gmail.com> <7fd310d10903242047t1a7b7daw1d61c3de7f20b7c6@mail.gmail.com> <49CAA85C.8080402@agliodbs.com> <7fd310d10903251514x1dd522f3o8d13a9218a6eda6c@mail.gmail.com> <11650.1238033714@sss.pgh.pa.us> <7fd310d10903252019p22352555lc346b7532edf075c@mail.gmail.com> Comments: In-reply-to Bryan Murphy message dated "Wed, 25 Mar 2009 22:19:13 -0500" Date: Wed, 25 Mar 2009 23:28:17 -0400 Message-ID: <12624.1238038097@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL=0.013 X-Spam-Level: X-Archive-Number: 200903/374 X-Sequence-Number: 33296 Bryan Murphy writes: > What I did was change seq_page_cost back to 1.0 and then changed > random_page_cost to 0.5 [ squint... ] It makes no physical sense for random_page_cost to be less than seq_page_cost. Please set them the same. regards, tom lane