From: | "Andrus" <kobruleht2(at)hot(dot)ee> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to use index in WHERE int = float |
Date: | 2008-11-05 21:49:52 |
Message-ID: | get4eb$15ke$1@news.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>> explain analyze select * from firma2.dok where dokumnr='1228137'::float8
>>
>> "Seq Scan on dok (cost=0.00..187766.23 rows=6255 width=1145) (actual
>> time=43168.460..43176.063 rows=1 loops=1)"
>> " Filter: ((dokumnr)::double precision = 1228137::double precision)"
>> "Total runtime: 43176.375 ms"
>
> I've just noticed that "actual time" doesn't run from zero; is this part
> of another query, or is something else going on?
Is is standalone query.
This is exact statement executed in PgAdmin window and exact result copied
from pgadmin result windw.
I tried it again and got
"Seq Scan on dok (cost=0.00..186943.67 rows=5974 width=1173) (actual
time=39275.713..39319.865 rows=1 loops=1)"
" Filter: ((dokumnr)::double precision = 1228137::double precision)"
"Total runtime: 39320.030 ms"
Andrus.
From | Date | Subject | |
---|---|---|---|
Next Message | Andrus | 2008-11-05 22:08:57 | Re: How to use index in WHERE int = float |
Previous Message | Sam Mason | 2008-11-05 21:49:38 | Re: How to use index in WHERE int = float |