Skip site navigation (1) Skip section navigation (2)

Re: [PERFORM] Posible planner improvement?

From: "Stephen R(dot) van den Berg" <srb(at)cuci(dot)nl>
To: Decibel! <decibel(at)decibel(dot)org>
Cc: Richard Huxton <dev(at)archonet(dot)com>,PG Hackers <pgsql-hackers(at)postgresql(dot)org>,Luke Lonergan <LLonergan(at)greenplum(dot)com>, albert(at)sedifa(dot)com
Subject: Re: [PERFORM] Posible planner improvement?
Date: 2008-05-25 08:21:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-performance
Decibel! wrote:
>For reference, the original query as posted to -performance:

>select * from t1, t2 where > 158507 and =;

>That took > 84 minutes (the query was a bit longer but this is the  
>part that made the difference) after a little change the query took  
>~1 second:

Just out of curiosity, would predefining the order of join have solved
the issue, as in:

a. select * from t1 join t2 using(id) where > 158507;
b. select * from t2 join t1 using(id) where > 158507;

I'd expect a to be faster than b, is it?
Sincerely,                                                          srb(at)cuci(dot)nl
           Stephen R. van den Berg.
"Technology is stuff that doesn't work yet."   --  Bran Ferren
"We no longer think of chairs as technology."  --  Douglas Adams

In response to

pgsql-performance by date

Next:From: ITAGAKI TakahiroDate: 2008-05-26 11:30:00
Subject: Re: Posible planner improvement?
Previous:From: Jeffrey BakerDate: 2008-05-24 20:39:15
Subject: Re: Quad Xeon or Quad Opteron?

pgsql-hackers by date

Next:From: Hans-Juergen SchoenigDate: 2008-05-25 12:27:46
Subject: Re: [HACKERS] WITH RECURSIVE patch V0.1
Previous:From: Hans-Juergen SchoenigDate: 2008-05-25 06:19:40
Subject: DROP ROLE dependency tracking ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group