Re: Bad Plan for Questionnaire-Type Query

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: David Blewett <david(at)dawninglight(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Bad Plan for Questionnaire-Type Query
Date: 2009-06-05 23:32:44
Message-ID: 4A29AB1C.5080907@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

David,

My first thought would be to increase statistics dramatically on the
filtered columns in hopes of making PG realize there's a lot of rows
there; it's off by 8x. Correlations stats are an ongoing issue in
PostgreSQL.

--
Josh Berkus
PostgreSQL Experts Inc.
www.pgexperts.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message David Blewett 2009-06-06 00:29:45 Re: Bad Plan for Questionnaire-Type Query
Previous Message David Blewett 2009-06-05 21:53:26 Re: Bad Plan for Questionnaire-Type Query