Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 24CFC9FC258 for ; Tue, 30 Oct 2007 12:39:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 43855-01-2 for ; Tue, 30 Oct 2007 12:39:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B501E9FBA1E for ; Tue, 30 Oct 2007 12:39:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l9UFdC15023553; Tue, 30 Oct 2007 11:39:12 -0400 (EDT) To: Richard Huxton cc: Ketema , pgsql-performance@postgresql.org Subject: Re: Improving Query In-reply-to: <4727305B.9050307@archonet.com> References: <1193746737.222960.206150@50g2000hsm.googlegroups.com> <4727305B.9050307@archonet.com> Comments: In-reply-to Richard Huxton message dated "Tue, 30 Oct 2007 13:23:39 -0000" Date: Tue, 30 Oct 2007 11:39:12 -0400 Message-ID: <23552.1193758752@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/361 X-Sequence-Number: 27383 Richard Huxton writes: > Ketema wrote: >> 5)Upgrade version of pg..currently is running 8.1.4 > Well every version gets better at planning, so it can't hurt. +1 ... there are at least two things about this query that 8.2 could be expected to be a great deal smarter about: * mixed outer and inner joins * something = ANY(array) regards, tom lane