X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A71EFD1C4DC for ; Wed, 23 Jul 2003 15:21:13 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 34827-08 for ; Wed, 23 Jul 2003 12:20:26 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id A9FBDD1C4DA for ; Wed, 23 Jul 2003 12:21:07 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6NFL7Q3013277; Wed, 23 Jul 2003 11:21:07 -0400 (EDT) To: =?iso-8859-1?q?J=F6rg=20Schulz?= Cc: pgsql-performance@postgresql.org Subject: Re: different query plan for same select In-reply-to: <200307231628.54295.jschulz@sgbs.de> References: <200307231628.54295.jschulz@sgbs.de> Comments: In-reply-to =?iso-8859-1?q?J=F6rg=20Schulz?= message dated "Wed, 23 Jul 2003 16:28:54 +0200" Date: Wed, 23 Jul 2003 11:21:06 -0400 Message-ID: <13276.1058973666@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/393 X-Sequence-Number: 2686 =?iso-8859-1?q?J=F6rg=20Schulz?= writes: > I'm not very familar with the output of the explain command but can you > tell me why I get two different query plans? Judging from the suspiciously round numbers in the cost estimates, you've never done a VACUUM ANALYZE on any of these tables. Try that and then see what plans you get... regards, tom lane