Re: [HACKERS] nested loops in joins, ambiguous rewrite rules

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: charlie(at)k4azl(dot)net, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] nested loops in joins, ambiguous rewrite rules
Date: 1999-01-31 19:35:31
Message-ID: 199901311935.OAA07665@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Perhaps if we develop a slightly more complex measure to compare against
> the GEQO threshold, we can do better in deciding when to kick in GEQO.
> A brain-dead suggestion is number of tables + number of indexes ...
> does anyone know whether that is a good measure of the number of cases
> considered in the optimizer?

That is an excellent suggestion. We have always seen 6-table joins that
are short with geqo, and some longer. Perhaps that is the cause.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1999-01-31 20:23:03 Re: Problems with anon CVS?
Previous Message Tom Lane 1999-01-31 18:57:54 Re: [HACKERS] nested loops in joins, ambiguous rewrite rules