Re: [HACKERS] Slow - grindingly slow - query
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: bhirt@mobygames.com
Cc: pgsql-hackers@postgreSQL.org, bhirt@loopy.berkhirt.com
Date: 1999-11-12T14:58:14Z
Lists: pgsql-hackers
Brian Hirt <bhirt@mobygames.com> writes: > Can't the rewrite engine recognize a simple case like the > one above and rewrite it to use exists and not exists with the proper > joins? Or possibly the optimizer can generate a better plan? This is on the TODO list, and will get done someday. IMHO it's not as urgent as a lot of the planner/optimizer's other shortcomings, because it can usually be worked around by revising the query. If it's bugging you enough to go fix it now, contributions are always welcome ;-) regards, tom lane