Re: [GENERAL] BitmapScan mishaps

2007-04-03 Thread Listmail
Hmmm [ studies query a bit more... ] I think the reason why that index is so expensive to use is exposed here: Index Cond: ((detect_time > (now() - '7 days'::interval)) AND (detect_time >= '2006-10-30 16:17:45.064793'::timestamp without time zone)) Evidently detect_time is

Re: [GENERAL] BitmapScan mishaps

2007-04-03 Thread Tom Lane
Listmail <[EMAIL PROTECTED]> writes: > On Tue, 03 Apr 2007 19:23:31 +0200, Tom Lane <[EMAIL PROTECTED]> wrote: >> Listmail <[EMAIL PROTECTED]> writes: >>> It bitmapscans about half the table... >> >> Which PG version is this exactly? We've fooled with the >> choose_bitmap_and heuristics quite a b

Re: [GENERAL] BitmapScan mishaps

2007-04-03 Thread Listmail
On Tue, 03 Apr 2007 19:23:31 +0200, Tom Lane <[EMAIL PROTECTED]> wrote: Listmail <[EMAIL PROTECTED]> writes: It bitmapscans about half the table... Which PG version is this exactly? We've fooled with the choose_bitmap_and heuristics quite a bit ... regards, t

Re: [GENERAL] BitmapScan mishaps

2007-04-03 Thread Tom Lane
Listmail <[EMAIL PROTECTED]> writes: > It bitmapscans about half the table... Which PG version is this exactly? We've fooled with the choose_bitmap_and heuristics quite a bit ... regards, tom lane ---(end of broadcast)---

[GENERAL] BitmapScan mishaps

2007-04-03 Thread Listmail
Hello everyone ! I have this query : annonces=> EXPLAIN ANALYZE SELECT * FROM annonces AS a WHERE detect_time > CURRENT_TIMESTAMP - '7 DAY'::INTERVAL AND detect_time >= '2006-10-30 16:17:45.064793' AND vente AND surface IS NOT NULL AND price IS NOT NULL AND type_id IN (1,12,24