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

Re: FW: Index usage

From: "BBI Edwin Punzalan" <edwin(at)bluebamboo(dot)ph>
To: "'gnari'" <gnari(at)simnet(dot)is>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: FW: Index usage
Date: 2004-12-01 02:33:15
Message-ID: 004c01c4d74e$1c61d110$b400a8c0@bluebamboo.ph (view raw or flat)
Thread:
Lists: pgsql-performance
Thanks but whatever it does, it didn't work. :D

Do you think upgrading will fix this problem?

=========================
db=# alter table chatlogs alter column date set statistics 300;
ALTER
db=# analyze chatlogs;
ANALYZE
db=# explain analyze select * from chatlogs where date >= '12/1/04';
NOTICE:  QUERY PLAN:

Index Scan using chatlogs_type_idx on chatlogs  (cost=0.00..6053.61
rows=3357 width=212) (actual time=22.14..138.53 rows=1312
loops=1)
Total runtime: 139.42 msec

EXPLAIN
morphTv=# explain analyze select * from chatlogs where date >= '11/03/04';
NOTICE:  QUERY PLAN:

Seq Scan on chatlogs  (cost=0.00..27252.86 rows=271882 width=212) (actual
time=12.24..13419.36 rows=257137 loops=1)
Total runtime: 13573.70 msec

EXPLAIN
=========================



-----Original Message-----
From: gnari [mailto:gnari(at)simnet(dot)is] 
Sent: Wednesday, December 01, 2004 10:08 AM
To: BBI Edwin Punzalan; pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] FW: Index usage


From: "BBI Edwin Punzalan" <edwin(at)bluebamboo(dot)ph>


> 
> Hi, what do you mean by increasing the statistics on the date column?

alter table chatlogs alter column date set statistics 300; analyze chatlogs;

> > > Our version is 7.2.1
> > 
> > upgrade time ?
> 
> We never had any upgrade on it.

7.2 is a bit dated now that 8.0 is in beta

if you want to stay with 7.2, you should at least upgrade
to the latest point release (7.2.6 ?), as several serious bugs have been
fixed

gnari


In response to

Responses

pgsql-performance by date

Next:From: IainDate: 2004-12-01 04:00:24
Subject: Re: FW: Index usage
Previous:From: gnariDate: 2004-12-01 02:07:52
Subject: Re: FW: Index usage

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