pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: pgsql-performance@postgresql.org
Subject: Re: severe performance issue with planner  (fwd)
Date: Wed, 17 Mar 2004 02:33:44 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0403170230590.26091@leary.csoft.net> (raw)


I sent this message to the list and although it shows up in the archives,
I did not receive a copy of it through the list, so I'm resending as I
suspect others did not see it either.

---------- Forwarded message ----------
Date: Sat, 13 Mar 2004 22:48:01 -0500 (EST)
From: Kris Jurka <books@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Eric Brown <bigwhitecow@hotmail.com>, pgsql-performance@postgresql.org
Subject: Re: [PERFORM] severe performance issue with planner 

On Thu, 11 Mar 2004, Tom Lane wrote:

> "Eric Brown" <bigwhitecow@hotmail.com> writes:
> > [ planning a 9-table query takes too long ]
> 
> See http://www.postgresql.org/docs/7.4/static/explicit-joins.html
> for some useful tips.
> 

Is this the best answer we've got?  For me with an empty table this query 
takes 4 seconds to plan, is that the expected planning time?  I know I've 
got nine table queries that don't take that long.

Setting geqo_threshold less than 9, it takes 1 second to plan.  Does this 
indicate that geqo_threshold is set too high, or is it a tradeoff between 
planning time and plan quality?  If the planning time is so high because 
the are a large number of possible join orders, should geqo_threhold be 
based on the number of possible plans somehow instead of the number of 
tables involved?

Kris Jurka




view thread (4+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0403170230590.26091@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0403170230590.26091@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0403170230590.26091@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: books@ejurka.com
  Subject: Re: severe performance issue with planner  (fwd)
  In-Reply-To: <Pine.BSO.4.56.0403170230590.26091@leary.csoft.net>
  References: <Pine.BSO.4.56.0403170230590.26091@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox