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

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

> >We turn on geqo at 8 relations. Try: > > SET GEQO TO 4 >
> >and try the query again. Let us know.
>
> Well isn't that something! Thanks so much for your help!
>
> I set the GEQO variable to 4 and now the 11.5 minute query
> executes in 6 seconds with this query plan:
>
> Hash Join (cost=21.99 size=152 width=124)
width=16)
>
>
> Are there any recommendations about what value *ought* to be
> set for GEQO? It seems to me like 'ON=8' is pretty high -- for
> us, it meant that UNLESS we explicity set that variable for
> every JOIN query of 6-7 tables, the joins were going to bog down
> to a total crawl, while sending memory and CPU consumption
> through the roof (roughly 22MB and 90-95%, respectively, for
> the entire query-processing period).

We have toyed with lowering it to 6. I think someone said that was too
low, but obviously, some queries need a value of 6 or lower. I don't
understand when that is the case, though. Any comments from anyone?

I believe the GEQO README was moved into the documentation in docs. It
used to be there, but is no longer.

--
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 Tatsuo Ishii 1999-01-31 09:18:54 Re: [HACKERS] READ COMMITTED isolevel is implemented ...
Previous Message Bruce Momjian 1999-01-31 05:38:22 Re: [HACKERS] Patches