X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0873CD1B256 for ; Tue, 1 Jun 2004 18:37:39 -0300 (ADT) 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 14867-02 for ; Tue, 1 Jun 2004 18:37:26 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 72C48D1C9AB for ; Tue, 1 Jun 2004 18:36:47 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i51Lanol016610; Tue, 1 Jun 2004 17:36:49 -0400 (EDT) To: mallah@trade-india.com Cc: pgsql-sql@postgresql.org Subject: Re: Query becoming slower on adding a primary key In-reply-to: <33303.192.168.0.100.1086117670.squirrel@system67.trade-india-local.com> References: <33303.192.168.0.100.1086117670.squirrel@system67.trade-india-local.com> Comments: In-reply-to mallah@trade-india.com message dated "Wed, 02 Jun 2004 00:51:10 +0530" Date: Tue, 01 Jun 2004 17:36:49 -0400 Message-ID: <16609.1086125809@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/6 X-Sequence-Number: 17951 mallah@trade-india.com writes: > tradein_clients=# explain analyze select email_id ,email ,contact from > t_a a join email_source f using(email_id) join email_subscriptions h > using(email_id) where 1=1 and f.source_id =1 and h.sub_id = 3 ; > Runs for Ever. So what does plain explain say about it? regards, tom lane