Re: Optimizing Multiply Joins ??? - Mailing list pgsql-sql

From Meszaros Attila
Subject Re: Optimizing Multiply Joins ???
Date
Msg-id Pine.LNX.3.96.1000913211618.18199T-100000@draconis.csoma.elte.hu
Whole thread Raw
In response to Re: Optimizing Multiply Joins ???  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Optimizing Multiply Joins ???  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Hi,     

> That's interesting; apparently the regular optimizer is faster than the
> GEQO optimizer for your style of query.  Try increasing the GEQO
> threshold (pg_option "geqo_rels") to more than 11.       Changing this option in a psql session with 'set' has really
helped      Thanks.the results have changed this way:nr tables     plain(s):  more indices(2):  geqo off(s):10:
0.2       0.3        0.311:        4.8        5.9        0.812:        5.2        7.0        1.8
 
       But it seems, geqo_rels option is not parsed from the pg_optionfile.       
> Actually, as the 7.1 code currently stands, a query that uses explicit
> JOIN operators like yours does will always be implemented in exactly
> the given join order, with no searching.  I haven't quite decided if
> that's a bug or a feature ...       Great !!       If possible, it should be left in the codebase at least as an
option later...       Because we could have dozens(hundreds) of preoptimized queries.
 

Attila




pgsql-sql by date:

Previous
From: Jie Liang
Date:
Subject: Re: PLSQL
Next
From: Tom Lane
Date:
Subject: Re: Optimizing Multiply Joins ???