Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4C5F2650611 for ; Fri, 8 Aug 2008 11:51:37 -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 74739-04-4 for ; Fri, 8 Aug 2008 11:51:23 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by postgresql.org (Postfix) with ESMTP id 46F4A650384 for ; Fri, 8 Aug 2008 11:28:47 -0300 (ADT) Received: by fg-out-1718.google.com with SMTP id 16so775905fgg.23 for ; Fri, 08 Aug 2008 07:28:44 -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=Po6b+sYn5KujnuC6g5HMPCK7JbElGzl3yX22b+C48gM=; b=JdoW67K2r0/0qpRavx7u5P2PLrDpdrjNy3UsrVkJD1wmO5FCptCz+FjZCgHuDhNAGc V05m3g5dVscvmrzyLV6DRtNUTvlek0D3OFePhwqPAKJG5Jpwqsr9PgSxHwltcAaF2ZY6 RvswebFEEeLN1vrXCETXb21OIsEnXMBGSWVro= 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=K1CBLQZLh032R7V4cTsCWNEZOf1LKVlk1f+bkZZ0i/eO3gaBA6GZ1gKfdZJkWe3G/2 Dor3aMDyu5iLSOj53dW1tSA5NvSEe2/1//zZJo8D4TsOBlrTAB2gL9zd97oAgElr91XO 4prp0bEtNoRPN4p33qLgcF1abeEJFW00Fr5lc= Received: by 10.86.96.18 with SMTP id t18mr3159892fgb.34.1218205724422; Fri, 08 Aug 2008 07:28:44 -0700 (PDT) Received: by 10.86.2.11 with HTTP; Fri, 8 Aug 2008 07:28:44 -0700 (PDT) Message-ID: <84f0acdb0808080728m1807f4dahe369500bbc04c248@mail.gmail.com> Date: Fri, 8 Aug 2008 09:28:44 -0500 From: "Joshua Shanks" To: "Tom Lane" Subject: Re: query planner not using the correct index Cc: "Craig Ringer" , pgsql-performance@postgresql.org In-Reply-To: <208.1218154274@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <84f0acdb0808061435q5ebb607cjc311f1eb4da841a@mail.gmail.com> <489A623A.4090400@postnewspapers.com.au> <84f0acdb0808062014p29cf7482ied332225a0a92c63@mail.gmail.com> <489A6AF5.50908@postnewspapers.com.au> <84f0acdb0808070811l43a3da9eq240d272f8ddd105c@mail.gmail.com> <27696.1218143560@sss.pgh.pa.us> <84f0acdb0808071501n15b0182ga7eca7b1be37d705@mail.gmail.com> <29507.1218152891@sss.pgh.pa.us> <84f0acdb0808071655s79d0644o21df6b397b3616c0@mail.gmail.com> <208.1218154274@sss.pgh.pa.us> 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: 200808/69 X-Sequence-Number: 30950 Just for closure I ended up doing ALTER TABLE bars ALTER COLUMN bars_id SET STATISTICS 500; On Thu, Aug 7, 2008 at 7:11 PM, Tom Lane wrote: > "Joshua Shanks" writes: >> How do I increase the stats target for just one column? > > Look under ALTER TABLE. > > regards, tom lane >