Re: [INTERFACES] Re: Index unused with OR? - Mailing list pgsql-interfaces

From Teodorescu Constantin
Subject Re: [INTERFACES] Re: Index unused with OR?
Date
Msg-id 199805141428.RAA02682@flex.flex.ro
Whole thread Raw
In response to Re: Index unused with OR?  ("Olaf Mittelstaedt" <mstaedt@va-sigi.va.fh-ulm.de>)
List pgsql-interfaces
> > Not using the index in OR queries was some-time ago a bug in
> > PostgreSQL 6.1 if my memory is good. Think that has been solved in
> > new releases, am I wrong ?

w=> explain select * from p where (m=29000) or (m=30000);
NOTICE: QUERY PLAN:

Seq Scan on p (cost=0.00 size=0 width=10)
It seems that it was not solved :-(

Let's hear also some other answers from the developers ...

Please make another try ! I have discovered once a strange thing :  that if I am vacuuming the database as another user
thanroot, the statistics table isn't properly updated. I think that it was a problem with my database, I have reported
butnoone has reported the same thing again , so ... the problem it has been dropped. 

Make another try logging as postgres user, issue "psql yourdb" command and then vacuum. Repeat the EXPLAIN query and
checkif it's the same result! 

Constantin Teodorescu
FLEX Consulting Braila, ROMANIA


pgsql-interfaces by date:

Previous
From: Manuel Reiter
Date:
Subject: JDBC-driver for postgresql
Next
From: Peter Mount
Date:
Subject: RE: [INTERFACES] JDBC-driver for postgresql