From: Albert Cervera Areny <albert@sedifa.com>
To: pgsql-performance@postgresql.org
Subject: Posible planner improvement?
Date: Wed, 21 May 2008 12:28:47 +0200
Message-ID: <200805211228.48248.albert@sedifa.com> (raw)
I've got a query similar to this:
select * from t1, t2 where t1.id > 158507 and t1.id = t2.id;
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:
select * from t1, t2 where t1.id > 158507 and t2.id > 158507 and t1.id =
t2.id;
The change is pretty simple and it seems (note I don't have a clue on how the
planner works) it'd be possible for the planner to make this assumption
itself. Do you think it is really feasible/appropiate?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: albert@sedifa.com
Subject: Re: Posible planner improvement?
In-Reply-To: <200805211228.48248.albert@sedifa.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox