Received: from shaked.cc.openu.ac.il (shaked.cc.openu.ac.il [147.233.145.65]) by hub.org (8.8.8/8.7.5) with ESMTP id HAA01523 for ; Sun, 17 May 1998 07:03:53 -0400 (EDT) Received: from [147.233.159.109] (herouth@mac-herouth.pc.openu.ac.il [147.233.159.109]) by shaked.cc.openu.ac.il (8.8.5/8.8.5) with ESMTP id OAA15655; Sun, 17 May 1998 14:03:41 +0300 (IDT) X-Sender: herouth@shaked.cc.openu.ac.il Message-Id: In-Reply-To: <199805141359.PAA04711@gate.va.fh-ulm.de> References: <199805141341.QAA02105@flex.flex.ro> <199805141321.PAA04595@gate.va.fh-ulm.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 17 May 1998 14:04:17 +0300 To: "Olaf Mittelstaedt" , pgsql-interfaces@postgreSQL.org From: Herouth Maoz Subject: Re: [INTERFACES] Re: Index unused with OR? At 17:59 +0300 on 14/5/98, Olaf Mittelstaedt wrote: > > w=> vacuum; > VACUUM > w=> explain select * from p where m = 29000; > NOTICE: QUERY PLAN: > > Index Scan on p (cost=0.00 size=0 width=10) Unrelated to the question in hand - you complained about VACUUM not properly updating the stats. It seems to me you should use VACUUM ANALYZE for that to happen. Just vacuuming means elimination of old rows no longer used. Herouth