Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 8768E64FC19 for ; Mon, 22 Sep 2008 18:19:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 10301-03 for ; Mon, 22 Sep 2008 18:19:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by postgresql.org (Postfix) with ESMTP id EBF7064FC04 for ; Mon, 22 Sep 2008 18:19:08 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1557462rvf.43 for ; Mon, 22 Sep 2008 14:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=VPI+t1Cx6bZ0Yz5fmlRbO4RGlIgdJ4yHACGhLAf+zoU=; b=cPj8FcnMg9lIxZstHF5qf4LUQwmU8gnCOFpKcvJ3Z46qW4z0vdiMjCbW7MTi+hTYKA 4ID1i6UewxzGtAjECcTKuCwR91+tokQKVCXs7jvE18Y2zc5R7Tu8YDVLqkR0DIHVPKah Bg4t9u+XO6+clGN5Iq8xvACmJMiCw2SLEGwlI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=DHTCHGNKaGbqa/WaBs+pdPDD4J5byld93JoFf+C30keaKiydrrskdQ52WDzZdnYGvU OC3RuFZWPwPoPkmUm4MKKCu8XMS+3cszLvCkCqZimk83+bIYvzcloab2PCaRFiiaGYby Sn0UOGhAnHCRHdySYiPeJ3mR0mgaOpZdGh8rU= Received: by 10.141.29.14 with SMTP id g14mr2272731rvj.241.1222118347404; Mon, 22 Sep 2008 14:19:07 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Mon, 22 Sep 2008 14:19:07 -0700 (PDT) Message-ID: Date: Mon, 22 Sep 2008 15:19:07 -0600 From: "Scott Marlowe" To: "Sabin Coanda" Subject: Re: Different execution plan Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/197 X-Sequence-Number: 31510 On Mon, Sep 22, 2008 at 2:40 PM, Sabin Coanda wrote: > Hi there, > > I am still concerned about this problem, because there is a big differences > between the two cases, and I don't know how to identify the problem. Can > anybody help me, please ? Sure, first step, if you can provide the following: pg version os and version output of explain analyze of each query (one good query, one bad) In the meantime, make sure you've vacuum analyzed your db.