Received: from svana.org (svana.org [210.9.66.30]) by postgresql.org (Postfix) with ESMTP id F394D475CEB for ; Thu, 18 Jul 2002 08:10:50 -0400 (EDT) Received: from kleptog by svana.org with local (Exim 3.12 #1 (Debian)) id 17VA7K-00020i-00; Thu, 18 Jul 2002 22:10:46 +1000 Date: Thu, 18 Jul 2002 22:10:46 +1000 From: Martijn van Oosterhout To: Jeffrey Hood Cc: pgsql-general@postgresql.org Subject: Re: Query Performance... Message-ID: <20020718221046.B7652@svana.org> Reply-To: Martijn van Oosterhout Mail-Followup-To: Jeffrey Hood , pgsql-general@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhood@hmcon.com on Wed, Jul 17, 2002 at 01:31:29PM -0700 X-Archive-Number: 200207/1102 X-Sequence-Number: 27589 On Wed, Jul 17, 2002 at 01:31:29PM -0700, Jeffrey Hood wrote: > We have recently converted from MS SQLServer 7 to Postgres 7.1... The > following query runs perfectly fine in SQL Server with any where > clause attached, but in Postgres runs fine until you put a where > clause that has *no* criteria for Patients... then it runs forever... > the table sizes are approx: EXPLAIN ANALYSE output please. -- Martijn van Oosterhout http://svana.org/kleptog/ > There are 10 kinds of people in the world, those that can do binary > arithmetic and those that can't.