Re: Question about LEFT JOIN and query plan

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <kaloyan(at)digsys(dot)bg>,<pgsql-performance(at)postgresql(dot)org>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Question about LEFT JOIN and query plan
Date: 2010-09-07 14:29:46
Message-ID: 4C86060A0200002500035280@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Kaloyan Iliev Iliev <kaloyan(at)digsys(dot)bg> wrote:

> The 8.2.15 plan was on an empty database.
> On a full database the plan was almost the same. So the question
> is could I speed up the plan?

Since this is an entirely new query which doesn't include a LEFT
JOIN, it's not good to just tack it onto the other thread. Could
you please re-post with an appropriate subject and a little more
information?:

http://wiki.postgresql.org/wiki/SlowQueryQuestions

Schema (including indexes), configuration settings, and hardware
(CPUs, storage system, and RAM) can be particularly significant.

Also, if you could *attach* the EXPLAIN ANALYZE output instead of
pasting it within the email, you'd save time for those trying to
read it -- emails tend to get word-wrapped in a way which makes them
hard to read without manual reformatting.

Thanks,

-Kevin

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Grittner 2010-09-07 16:54:52 Re: Question about LEFT JOIN and query plan
Previous Message Kaloyan Iliev Iliev 2010-09-07 13:28:38 Re: Question about LEFT JOIN and query plan