Hi Josh,
Ok, first the explain analyze
June_03=# explain analyze select * from tmp where route
>>='62.1.1.0/24';
QUERY PLAN
---
Seq Scan on
George,
> Um, no, I need an EXPLAIN ANALYZE, not just an EXPLAIN. Thanks.
>
> > June_03=# explain select * from tmp where route >>='62.1.1.0/24';
> >QUERY PLAN
> >
> > Seq Scan on tmp (cost=0.00..606.6
George,
Um, no, I need an EXPLAIN ANALYZE, not just an EXPLAIN. Thanks.
> June_03=# explain select * from tmp where route >>='62.1.1.0/24';
>QUERY PLAN
>
> Seq Scan on tmp (
I did a vacuum analyze before I run the following explain
June_03=# explain select * from tmp where route >>='62.1.1.0/24';
QUERY PLAN
Seq Scan on tmp (cost=0.00..606.60 rows=1
Georgos,
> select * from tmp where route >>= some_cidr
Can you post an EXPLAIN ANALYZE for this? And when's the last time you ran
ANALYZE on the table?
> The index on route is not used and I get a sequential scan. The index is
> used only for the <<= operator.
Most likely Postgres thinks tha