Re: Optimizer bug?? - Mailing list pgsql-hackers

From Ismail Kizir
Subject Re: Optimizer bug??
Date
Msg-id 00f801c441c4$7f55c760$0100000a@bilmednot
Whole thread Raw
In response to Optimizer bug??  ("Ismail Kizir" <ikizir@tumgazeteler.com>)
Responses Re: Optimizer bug??
Re: Optimizer bug??
List pgsql-hackers
Hi all,

> give us the result of these queries:
> SELECT COUNT(*) FROM articletbl;

268726 records, it takes 34169 ms. to compute this

> SELECT COUNT(*) AS c FROM articletbl WHERE
> mydate BETWEEN '2004-04-24' AND '2004-05-24';

18982 records, it takes 34249 ms. to compute this.

> SELECT COUNT(*) AS c FROM articletbl WHERE
> mydate = '2004-04-24';
850 records, it takes only 40 ms. to compute this.

It is evident that there is a problem here! Am I wrong??

Regards
Ismail Kizir




pgsql-hackers by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: Big problem
Next
From: Stephan Szabo
Date:
Subject: Re: Optimizer bug??