Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ucxae-0005V2-QW for pgsql-performance@arkaria.postgresql.org; Thu, 16 May 2013 12:47:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ucxae-0003Da-6Z for pgsql-performance@arkaria.postgresql.org; Thu, 16 May 2013 12:47:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ucxad-0003DU-5J for pgsql-performance@postgresql.org; Thu, 16 May 2013 12:47:23 +0000 Received: from smtp2.peak6.com ([38.98.137.9]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UcxaT-0003Uu-ME for pgsql-performance@postgresql.org; Thu, 16 May 2013 12:47:22 +0000 X-AuditID: 0a02cb20-b7f886d000007309-41-5194d54ea4be Received: from sswchi5pcas1.peak6.net (Unknown_Domain [10.100.13.22]) by smtp2.peak6.com (Symantec Messaging Gateway) with SMTP id B3.EE.29449.E45D4915; Thu, 16 May 2013 07:47:11 -0500 (CDT) Received: from [10.10.201.64] (10.10.201.64) by sswchi5pcas1.peak6.net (10.100.13.25) with Microsoft SMTP Server (TLS) id 14.2.247.3; Thu, 16 May 2013 07:47:10 -0500 Message-ID: <5194D54C.6030901@optionshouse.com> Date: Thu, 16 May 2013 07:47:08 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Thomas Kellerer CC: Subject: Re: Thinking About Correlated Columns (again) References: <5193AA62.2040700@optionshouse.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.201.64] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsXClcIrput/dUqgwewPHBbXZ55jtng0ey67 A5PH4k372Twu7JvGHsAU1cBok5iXl1+SWJKqkJJanGyr5F9QkpmfV+yRX1qcquCSWZyck5iZ m1qkpJCZYqtkrKRQkJOYnJqbmldiq5RYUJCal6Jkx6WAAWyAyjLzFFLzkvNTMvPSbZU8g/11 LSxMLXUNlezikUFCJ0tG/5RZ7AW3WSu6dnSzNDAeYeli5OSQEDCRmHJuLZQtJnHh3nq2LkYu DiGBA4wSC5cfY4VwVjJK7Py9iw2kildAX+Lo9DtgNouAqsT3BduZQWw2AV2JSf0rwOJCAioS fWdvMIHY/ALCEvs+NIHViAqESaxav4wZYo6gxMmZT8A2iwhoSBzacwPMZhZQk5j7cBIriC0s 4CAxb/ktRoiZPhKPf60Cq+EU0JSY/m83E0S9rcSFOdeheuUltr+dwwxRryqxonkiG8RnChL/ r7xjmsAoMgvJ6llI2mchaV/AyLyKUby4LDE5I9OsoDi3pMBIryA1MdtMLy+1ZBMjKNqZTivs YNzcY3WIUYCDUYmH98OiyYFCrIllxZW5hxglOJiVRHgF9k4JFOJNSaysSi3Kjy8qzUktPsTo AwyzicxSosn5wESUVxJvaGxqYGppamhqbmpohENYSZx31qWmQCGBdGD6yU5NLUgtghnHxMEp 1cBYlKTI9WDafzPXaP1fIXlT3XbdmvOu4+P5/1vmS1xSurMo0PBRe/8ljf3fytbncPEsPOF9 LOPpfTZ2n3b+ZuPOHoeuI/5lLTO+b1vVEaUkcWeK1NKfqVEtu3b8qulsOtS29H7NrmJF9z+t tybnLjoWeGr1QpXXbr9LQuf8mLmRgeN0ysaX5u7/lViKMxINtZiLihMBd8arliMDAAA= X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 05/15/2013 03:31 PM, Thomas Kellerer wrote: > What happens if you create one index for each column? (instead of one > combined index) I just created the combined index to simplify the output. With two indexes, it does the usual bitmap index scan. Even then the row estimate is off by a factor of 1000, which is the actual problem. The other reason I tried the combined index was that there was some noise a while back about having the planner check for possible column correlations on composite indexes. Clearly that ended up not being the case, but it was worth examination. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604 312-676-8870 sthomas@optionshouse.com ______________________________________________ See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance