X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7B3D4D1B53B for ; Fri, 24 Oct 2003 04:09:50 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 03830-10 for ; Fri, 24 Oct 2003 01:09:19 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id BD83DD1B4EB for ; Fri, 24 Oct 2003 01:09:17 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h9O49HE04743; Fri, 24 Oct 2003 00:09:17 -0400 (EDT) From: Bruce Momjian Message-Id: <200310240409.h9O49HE04743@candle.pha.pa.us> Subject: Re: 7.4 compatibility question In-Reply-To: <87brs71dpw.fsf@stark.dyndns.tv> To: Greg Stark Date: Fri, 24 Oct 2003 00:09:17 -0400 (EDT) Cc: pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/1115 X-Sequence-Number: 45797 Greg Stark wrote: > Bruce Momjian writes: > > > Michael Brusser wrote: > > > > > Optimizer improvements > > > => this tells me nothing. I suppose this could be a minor internal code > > > tweak, which does not affect me. On the other hand this could be a major > > > breakthrough, so now I can run some stupid query which would take > > > a week to complete in the previous release. How do I know? > > > > Yes, this is always very hard to explain. The optimizer itself is > > complex, and uses complex terms like merge join and key pruning. It is > > hard to explain what queries will be affected, though the basic issue is > > that the optimizer will choose a better plan more frequently. > > One thing that might be worth mentioning is that "WHERE foo IN (subquery)" > type queries are much improved. That's a one of the more common complaints > about 7.3 and previous and it's one that fairly easy to recognize. That is right at the top of the release notes: Performance IN/NOT IN subqueries are now much more efficient -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073