Re: Odd sorting behaviour - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: Odd sorting behaviour
Date
Msg-id 20040720172100.GA22262@uio.no
Whole thread Raw
In response to Re: Odd sorting behaviour  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Odd sorting behaviour
List pgsql-performance
On Tue, Jul 20, 2004 at 10:06:08AM -0700, Josh Berkus wrote:
> Actually, quick question -- have you tried setting enable_mergjoin=false to
> see the plan the system comes up with?  Is it in fact faster?

It is significantly faster -- 1200ms vs. 1900ms (on 7.4, at least). Some of
the merge joins are changed to nested loop joins, though, which probably
reduces the overall performance, so I guess there's more to gain if I can get
it to convert only that merge join to a hash join. The sum and multiplication
parts still take 400ms or so, though (is this normal? :-) ), so I guess
there's a lower limit :-)

I could of course post the updated query plan if anybody is interested; let
me know. (The data is still available if anybody needs it as well, of
course.)

/* Steinar */
--
Homepage: http://www.sesse.net/

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Odd sorting behaviour
Next
From: Rod Taylor
Date:
Subject: Re: NAS, SAN or any alternate solution ?