pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua Shanks <jjshanks@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Craig Ringer <craig@postnewspapers.com.au>
Cc: pgsql-performance@postgresql.org
Subject: Re: query planner not using the correct index
Date: Fri, 8 Aug 2008 09:28:44 -0500
Message-ID: <84f0acdb0808080728m1807f4dahe369500bbc04c248@mail.gmail.com> (raw)
In-Reply-To: <208.1218154274@sss.pgh.pa.us>
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>

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 <tgl@sss.pgh.pa.us> wrote:
> "Joshua Shanks" <jjshanks@gmail.com> writes:
>> How do I increase the stats target for just one column?
>
> Look under ALTER TABLE.
>
>                        regards, tom lane
>



view thread (13+ messages)

Message-ID: <84f0acdb0808080728m1807f4dahe369500bbc04c248@mail.gmail.com>
Permalink:  ../84f0acdb0808080728m1807f4dahe369500bbc04c248@mail.gmail.com/
Also on:    postgresql.org/message-id/84f0acdb0808080728m1807f4dahe369500bbc04c248@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jjshanks@gmail.com, tgl@sss.pgh.pa.us, craig@postnewspapers.com.au
  Subject: Re: query planner not using the correct index
  In-Reply-To: <84f0acdb0808080728m1807f4dahe369500bbc04c248@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox