X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D15973A62B8 for ; Fri, 28 Jan 2005 16:58:22 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 70511-10 for ; Fri, 28 Jan 2005 16:58:20 +0000 (GMT) Received: from mail.deg.cc (mail.deg.cc [64.139.134.201]) by svr1.postgresql.org (Postfix) with ESMTP id 38D363A62FD for ; Fri, 28 Jan 2005 16:58:19 +0000 (GMT) Received: from deg.cc (kyle.deg.cc [198.70.16.205]) by mail.deg.cc (Postfix) with ESMTP id 27103560E7; Fri, 28 Jan 2005 11:58:15 -0500 (EST) Message-ID: <41FA6F29.9060009@deg.cc> Date: Fri, 28 Jan 2005 11:58:17 -0500 From: Pallav Kalva User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: PERFORM Subject: Re: Poor Performance on Postgres 8.0 References: <41FA5726.7040502@deg.cc> <2581.1106929396@sss.pgh.pa.us> In-Reply-To: <2581.1106929396@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/583 X-Sequence-Number: 10273 Tom Lane wrote: >Pallav Kalva writes: > > >> I am running this query on postgres 8 beta version and it is not >>using the right index, where as if i run the same query on postgres 7.4 >>version it uses the right index . >> >> > >1. Beta which, exactly? > Beta 4 > >2. Have you ANALYZEd both tables lately? > Yes > >3. If so, try this to see what it thinks the cost of the reverse plan >is: > > begin; > alter table common.string drop constraint pk_string_stringid; > explain analyze ... same query ... > rollback; > what do u mean by rollback exactly ? i can drop the pk constraint and run explain analyze and see how it behaves. > > regards, tom lane > > >