Skip site navigation (1) Skip section navigation (2)

Re: Bad Plan for Questionnaire-Type Query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Blewett <david(at)dawninglight(dot)net>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Bad Plan for Questionnaire-Type Query
Date: 2009-05-09 00:08:30
Message-ID: 18966.1241827710@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-performance
David Blewett <david(at)dawninglight(dot)net> writes:
> On Thu, May 7, 2009 at 6:44 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Look into pg_stats for the rows concerning the columns used in the
>> query's WHERE and JOIN/ON clauses.

> Okay, here you go:
> http://rafb.net/p/20y8Oh72.html

I got some time to poke into this, but didn't get very far --- the
joins that seem to be the main problem involve
canvas_textresponse.submission_id which you didn't include stats for.

			regards, tom lane

In response to

Responses

pgsql-performance by date

Next:From: Tom LaneDate: 2009-05-09 00:17:34
Subject: Re: PostgreSQL with PostGIS on embedded hardware
Previous:From: Paolo RizziDate: 2009-05-09 00:02:20
Subject: Re: PostgreSQL with PostGIS on embedded hardware

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group