Skip site navigation (1) Skip section navigation (2)

Re: Problems with adding a is not null to a query.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tim Uckun <timuckun(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Problems with adding a is not null to a query.
Date: 2011-01-18 02:52:50
Message-ID: 26947.1295319170@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Tim Uckun <timuckun(at)gmail(dot)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

In response to

pgsql-bugs by date

Next:From: jeffDate: 2011-01-18 11:19:07
Subject: Re: BUG #5841: rank()+1 fails, 1+rank() succeeds
Previous:From: Tim UckunDate: 2011-01-18 00:19:17
Subject: Re: Problems with adding a is not null to a query.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group