samekeys
samekeys
От:
Bruce Momjian <maillist@candle.pha.pa.us>
Дата:
I think I have solved the optimizer problem. It appears in samekeys(). Can someone check that function, and see if you come up with the same fix I do (without knowing my fix)? A 9-table join that used to run for minutes and fail now completes in seconds! I want to commit this, but want confirmation from someone else that my fix is correct. -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Re: [HACKERS] samekeys
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Bruce Momjian writes: > I think I have solved the optimizer problem. It appears in samekeys(). > Can someone check that function, and see if you come up with the same > fix I do (without knowing my fix)? "member" -> "equal", perhaps? I looked at that before and thought it was a little strange, but I didn't and still don't understand the data structures being compared. I also wondered whether the two lists ought not be required to be exactly the same length, rather than allowing keys2 to be longer. > A 9-table join that used to run for minutes and fail now completes in > seconds! Pick some smaller joins and see whether the optimizer still finds the same answer... regards, tom lane