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

Re: very slow selects on a small table

From: Brian Cox <brian(dot)cox(at)ca(dot)com>
To: "Tom Lane [tgl(at)sss(dot)pgh(dot)pa(dot)us]" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: very slow selects on a small table
Date: 2009-06-17 23:42:03
Message-ID: 4A397F4B.30003@ca.com (view raw or flat)
Thread:
Lists: pgsql-performance
Tom Lane [tgl(at)sss(dot)pgh(dot)pa(dot)us] wrote:
> This seems like kind of a stupid plan anyway (which PG version was this
> exactly?) but certainly the big issue is the catastrophically bad
> rowcount estimate for the indexscan.  Do you have ANALYZE stats for
> ts_stats_transetgroup_user_daily at all (look in pg_stats)?
postgres 8.3.5. Yes, here's a count(*) from pg_stats:

cemdb=# select count(*) from pg_stats where 
tablename='ts_stats_transetgroup_user_daily';
  count
-------
    186
(1 row)


Thanks,
Brian

Responses

pgsql-performance by date

Next:From: Tom LaneDate: 2009-06-18 00:07:32
Subject: Re: very slow selects on a small table
Previous:From: Tom LaneDate: 2009-06-17 23:35:34
Subject: Re: very slow selects on a small table

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