X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 48199D1DB53 for ; Wed, 17 Mar 2004 07:33:22 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 96750-03 for ; Wed, 17 Mar 2004 03:33:21 -0400 (AST) Received: from mail63.csoft.net (unknown [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 7B1DAD1D85F for ; Wed, 17 Mar 2004 03:33:17 -0400 (AST) Received: (qmail 6747 invoked by uid 1112); 17 Mar 2004 07:33:44 -0000 Date: Wed, 17 Mar 2004 02:33:44 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: pgsql-performance@postgresql.org Subject: Re: severe performance issue with planner (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/234 X-Sequence-Number: 6090 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 To: Tom Lane Cc: Eric Brown , pgsql-performance@postgresql.org Subject: Re: [PERFORM] severe performance issue with planner On Thu, 11 Mar 2004, Tom Lane wrote: > "Eric Brown" 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