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

Re: FW: Index usage

From: "gnari" <gnari(at)simnet(dot)is>
To: "BBI Edwin Punzalan" <edwin(at)bluebamboo(dot)ph>,<pgsql-performance(at)postgresql(dot)org>
Subject: Re: FW: Index usage
Date: 2004-11-24 08:34:38
Message-ID: 001101c4d200$6fbe6c40$0100000a@wp2000 (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
From: "BBI Edwin Punzalan" <edwin(at)bluebamboo(dot)ph>

> db=# explain analyze select date from chatlogs where date>='11/23/04' and
> date<'11/25/04';
> Seq Scan on chatlogs  (cost=0.00..24763.19 rows=9200 width=4) (actual
> time=0.45..4268.00 rows=23787 loops=1)
> Total runtime: 4282.81 msec
> ==============
> How come a query on the current date filter uses an index and the others
> does not?  This makes indexing to speed up queries quite difficult.

have you ANALYZED the table lately ?
what version postgres are you using ?


In response to


pgsql-performance by date

Next:From: songteboDate: 2004-11-24 09:36:56
Subject: Unsubscribe
Previous:From: Greg StarkDate: 2004-11-24 08:14:17
Subject: Re: Data type to use for primary key

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