Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 4560C9F9F77 for ; Thu, 5 Oct 2006 10:24:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 38040-01 for ; Thu, 5 Oct 2006 13:24:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id A306B9FB1D2 for ; Thu, 5 Oct 2006 10:24:37 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k95DOZ2v012240; Thu, 5 Oct 2006 09:24:35 -0400 (EDT) To: "Carlo Stonebanks" cc: pgsql-performance@postgresql.org Subject: Re: Performance Optimization for Dummies 2 - the SQL In-reply-to: References: Comments: In-reply-to "Carlo Stonebanks" message dated "Thu, 05 Oct 2006 03:33:30 -0400" Date: Thu, 05 Oct 2006 09:24:35 -0400 Message-ID: <12239.1160054675@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/125 X-Sequence-Number: 21254 "Carlo Stonebanks" writes: > I didn't create an index on facility_address.address_id because I expected > joins to go in the other direction (from facility_address to address). Well, that's your problem right there ... regards, tom lane