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: pgsql-bugs@postgresql.org
Subject: Re: Problems with adding a is not null to a query.
Date: Sun, 16 Jan 2011 12:15:34 -0500
Message-ID: <9026.1295198134@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTikFEyOOX2sWKB0vpCSeUKwaqo+vfTRJ_DMNTpcn@mail.gmail.com>
References: <AANLkTi=1DVjv6XdGSZ8H_LGvKdLBME4Gp15O0xnWv_8M@mail.gmail.com>
	<28545.1295106303@sss.pgh.pa.us>
	<AANLkTikFEyOOX2sWKB0vpCSeUKwaqo+vfTRJ_DMNTpcn@mail.gmail.com>

Tim Uckun <timuckun@gmail.com> writes:
>> Possibly the table's never been ANALYZEd ... do you have autovacuum
>> enabled?

> I do have autovacuum enabled and I am running 8.4

Hmm, autovacuum *should* have been keeping track of things for you,
but it might still be worth doing a manual ANALYZE against that table
to see if the estimated rowcount changes.  If not, you'll need to raise
the statistics target for that column (and again ANALYZE).

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <9026.1295198134@sss.pgh.pa.us>
Permalink:  ../9026.1295198134@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9026.1295198134@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
  Subject: Re: Problems with adding a is not null to a query.
  In-Reply-To: <9026.1295198134@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>

* 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