Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin)

2005-09-26 Thread Tom Lane
"Gurpreet Aulakh" <[EMAIL PROTECTED]> writes: > While testing 8.1, I found that simple joins take longer in 8.1 than 8.0. > For example the sub query > SELECT doc.doc_documentid FROM document AS doc LEFT JOIN folder_document ON > doc.doc_documentid = folder_document.doc_documentId LEFT JOIN documen

Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin)

2005-09-26 Thread Gurpreet Aulakh
moving to it when it's officially released. -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: September 23, 2005 2:13 PM To: Gurpreet Aulakh Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin) "Gurpreet Aulak

Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin)

2005-09-23 Thread Tom Lane
"Gurpreet Aulakh" <[EMAIL PROTECTED]> writes: > After further investigation I have found that the reason why the query is > slower on 8.0.3 is that the hash and hash joins are slower on the 8.0.3. > So the question comes down to : Why are hash and hash joins slower? I looked into this a bit and de

Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin)

2005-09-23 Thread Gurpreet Aulakh
After further investigation I have found that the reason why the query is slower on 8.0.3 is that the hash and hash joins are slower on the 8.0.3. So the question comes down to : Why are hash and hash joins slower? Is this a postgres configuration setting that I am missing? Is the locale still scr

Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin)

2005-09-22 Thread Gurpreet Aulakh
-performance@postgresql.org Subject: Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin) "Gurpreet Aulakh" <[EMAIL PROTECTED]> writes: > What is really interesting is the time it takes for the Hash to occur. For > the first hash, on the 7.3 it takes only 12ms whi

Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin)

2005-09-21 Thread Tom Lane
"Gurpreet Aulakh" <[EMAIL PROTECTED]> writes: > What is really interesting is the time it takes for the Hash to occur. For > the first hash, on the 7.3 it takes only 12ms while on the 8.0 it takes > 47ms. You haven't told us a thing about the column datatypes involved (much less what the query act

Re: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin)

2005-09-21 Thread Gurpreet Aulakh
e- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gurpreet Aulakh Sent: September 21, 2005 12:38 PM To: pgsql-performance@postgresql.org Subject: [PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin) I currently have a Postgres 7.3 database running under WIN2K using cygwin an

[PERFORM] Query slower on 8.0.3 (Windows) vs 7.3 (cygwin)

2005-09-21 Thread Gurpreet Aulakh
I currently have a Postgres 7.3 database running under WIN2K using cygwin and want to move to Postgres 8.0.3 (native windows version). I am finding most simple queries are significantly faster on the native windows version compared to 7.3 (under cygwin). However, for a complex query, that involve m