From: | Dmitry Panov <dmitry(at)tsu(dot)tula(dot)ru> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: indices usage |
Date: | 2001-12-21 12:47:36 |
Message-ID: | 20011221154735.A17167@linux.tsu.tula.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Dec 20, 2001 at 10:27:06AM -0500, Tom Lane wrote:
> Dmitry Panov <dmitry(at)tsu(dot)tula(dot)ru> writes:
> > isp_leased=# explain select count(*) from traffic_stat where timestamp between timestamp('2001-12-18') and timestamp('2001-12-19');
>
> > The question is why it doesn't make use of traffic_stat_idx2?
>
> Try '2001-12-19'::timestamp, instead, or use CAST if you want to conform
> to the standard. The function syntax is not considered a constant for
> reasons I won't delve into here.
Thanks, this solved both problems.
--
Dmitry O Panov | mailto:dmitry(at)tsu(dot)tula(dot)ru
Tula State University | http://www.tsu.tula.ru/
Dept. of CS & NIT | Fidonet: Dmitry Panov, 2:5022/5.50
From | Date | Subject | |
---|---|---|---|
Next Message | David Heebner | 2001-12-21 14:09:33 | Re: Problem Creating Databases... |
Previous Message | Richard NAGY | 2001-12-21 09:55:28 | strange problem with plpgsql |