X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1932BD1B42F for ; Wed, 26 Nov 2003 18:00:30 +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 84719-04 for ; Wed, 26 Nov 2003 14:00:05 -0400 (AST) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 48422D1B433 for ; Wed, 26 Nov 2003 13:59:59 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1AP3xL-000407-0Y; Wed, 26 Nov 2003 18:00:04 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id AC2D116291; Wed, 26 Nov 2003 17:52:32 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 56AE515D31; Wed, 26 Nov 2003 17:52:31 +0000 (GMT) From: Richard Huxton To: Roger Ging , pgsql-performance@postgresql.org Subject: Re: expression (functional) index use in joins Date: Wed, 26 Nov 2003 17:52:30 +0000 User-Agent: KMail/1.5 References: <3FC4D703.5080909@paccomsys.com> In-Reply-To: <3FC4D703.5080909@paccomsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311261752.30729.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/270 X-Sequence-Number: 4830 On Wednesday 26 November 2003 16:38, Roger Ging wrote: > I just installed v7.4 and restored a database from v7.3.4. [snip] Hmm - you seem to be getting different row estimates in the plan. Can you re-analyse both versions and post EXPLAIN ANALYSE rather than just EXPLAIN? > -> Seq Scan on program p (cost=0.00..15192.35 > rows=4335 width=20) > > planner results on 7.3.4: > > -> Index Scan using idx_program_mri_id_no_program on program > p (cost=0.00..3209.16 rows=870 width=20) -- Richard Huxton Archonet Ltd