Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 41577B5DC28 for ; Mon, 23 May 2011 20:27:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 95075-06 for ; Mon, 23 May 2011 23:26:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id E6528B5D801 for ; Mon, 23 May 2011 20:26:57 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id B12AE2D; Mon, 23 May 2011 19:26:57 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WppgQ1+da5KF; Mon, 23 May 2011 19:26:56 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id 772BE27; Mon, 23 May 2011 19:26:56 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 69C7DAF6AF; Tue, 24 May 2011 07:26:55 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7kToIdARTWup; Tue, 24 May 2011 07:26:50 +0800 (WST) Received: from [10.1.1.3] (124-169-254-58.dyn.iinet.net.au [124.169.254.58]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id B22F2AF6AD; Tue, 24 May 2011 07:26:49 +0800 (WST) Message-ID: <4DDAED36.3030706@postnewspapers.com.au> Date: Tue, 24 May 2011 07:26:46 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Anibal David Acosta CC: pgsql-performance@postgresql.org Subject: Re: postgres not use index, IN statement References: <006801cc1990$a8b34e10$fa19ea30$@devshock.com> In-Reply-To: <006801cc1990$a8b34e10$fa19ea30$@devshock.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/317 X-Sequence-Number: 43826 On 24/05/2011 5:30 AM, Anibal David Acosta wrote: > So, this is some bug? Hard to know with the information provided. Please post EXPLAIN ANALYZE output. http://wiki.postgresql.org/wiki/SlowQueryQuestions -- Craig Ringer Tech-related writing at http://soapyfrogs.blogspot.com/