pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tim Uckun <timuckun@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Problems with adding a is not null to a query.
Date: Mon, 17 Jan 2011 21:52:50 -0500
Message-ID: <26947.1295319170@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTi=YBQcO43A9nF_LhMi0G11ije4SS65XuL6EPs24@mail.gmail.com>
References: <AANLkTi=1DVjv6XdGSZ8H_LGvKdLBME4Gp15O0xnWv_8M@mail.gmail.com>
	<28545.1295106303@sss.pgh.pa.us>
	<AANLkTikFEyOOX2sWKB0vpCSeUKwaqo+vfTRJ_DMNTpcn@mail.gmail.com>
	<9026.1295198134@sss.pgh.pa.us>
	<AANLkTimFK6AWNo+k+RoMf3=4uu_iRcmTKtASwM3=eWO5@mail.gmail.com>
	<AANLkTi=6wYtWRURpUtBgJcZEMPGUne+emSmxL_sGbP6y@mail.gmail.com>
	<AANLkTim4je4KYdbUykmfoCCjWf1GHcGDGxUb_XuQ6d2T@mail.gmail.com>
	<20744.1295297840@sss.pgh.pa.us>
	<AANLkTinD_Bmgy34W70ywxXM0b1xOWBBEvR8hO95y9LzS@mail.gmail.com>
	<24112.1295308549@sss.pgh.pa.us>
	<AANLkTi=YBQcO43A9nF_LhMi0G11ije4SS65XuL6EPs24@mail.gmail.com>

Tim Uckun <timuckun@gmail.com> writes:
>> As I've stated repeatedly, your next move needs to be to increase the
>> stats target, at least for that column if not globally.

> Ok How do I go about doing this.

If you want to do it globally for the whole database: change
default_statistics_target in postgresql.conf.  If you just want to
affect the one column, use "ALTER TABLE tab ALTER COLUMN col SET
STATISTICS n".

			regards, tom lane



view thread (15+ messages)

Message-ID: <26947.1295319170@sss.pgh.pa.us>
Permalink:  ../26947.1295319170@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26947.1295319170@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, timuckun@gmail.com, robertmhaas@gmail.com
  Subject: Re: Problems with adding a is not null to a query.
  In-Reply-To: <26947.1295319170@sss.pgh.pa.us>
  References: <AANLkTi=1DVjv6XdGSZ8H_LGvKdLBME4Gp15O0xnWv_8M@mail.gmail.com> <28545.1295106303@sss.pgh.pa.us> <AANLkTikFEyOOX2sWKB0vpCSeUKwaqo+vfTRJ_DMNTpcn@mail.gmail.com> <9026.1295198134@sss.pgh.pa.us> <AANLkTimFK6AWNo+k+RoMf3=4uu_iRcmTKtASwM3=eWO5@mail.gmail.com> <AANLkTi=6wYtWRURpUtBgJcZEMPGUne+emSmxL_sGbP6y@mail.gmail.com> <AANLkTim4je4KYdbUykmfoCCjWf1GHcGDGxUb_XuQ6d2T@mail.gmail.com> <20744.1295297840@sss.pgh.pa.us> <AANLkTinD_Bmgy34W70ywxXM0b1xOWBBEvR8hO95y9LzS@mail.gmail.com> <24112.1295308549@sss.pgh.pa.us> <AANLkTi=YBQcO43A9nF_LhMi0G11ije4SS65XuL6EPs24@mail.gmail.com> <26947.1295319170@sss.pgh.pa.us>

* 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