From: BBI Edwin Punzalan <edwin@bluebamboo.ph>
To: 'gnari' <gnari@simnet.is>
To: pgsql-performance@postgresql.org
Subject: Re: FW: Index usage
Date: Wed, 1 Dec 2004 10:33:15 +0800
Message-ID: <004c01c4d74e$1c61d110$b400a8c0@bluebamboo.ph> (raw)
In-Reply-To: <017c01c4d74a$90805de0$0100000a@wp2000>
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@simnet.is]
Sent: Wednesday, December 01, 2004 10:08 AM
To: BBI Edwin Punzalan; pgsql-performance@postgresql.org
Subject: Re: [PERFORM] FW: Index usage
From: "BBI Edwin Punzalan" <edwin@bluebamboo.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
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: edwin@bluebamboo.ph, gnari@simnet.is
Subject: Re: FW: Index usage
In-Reply-To: <004c01c4d74e$1c61d110$b400a8c0@bluebamboo.ph>
* 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