Re: Highly obscure and erratic - Mailing list pgsql-general

From Varun Kacholia
Subject Re: Highly obscure and erratic
Date
Msg-id 20020619043310.A16214@voxel.cse.iitb.ac.in
Whole thread Raw
In response to Re: Highly obscure and erratic  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: Highly obscure and erratic  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: Highly obscure and erratic  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
> What does explain show for the exists version?

suryadb=# explain select * from dbmedia where EXISTS (select ID from wdmedia where word='whatever' AND dbmedia.id=id )
LIMIT200; 
NOTICE:  QUERY PLAN:

Limit  (cost=0.00..1006732.42 rows=200 width=76)
  ->  Seq Scan on dbmedia  (cost=0.00..507810931.25 rows=100883 width=76)
          SubPlan
                    ->  Index Scan using wdkmedia on wdmedia  (cost=0.00..5033.63 rows=1 width=4)

                    EXPLAIN

still seq scan :((
someone please fix this bug :(

--
------
Varun
Once I finally figured out all of life's answers.....they changed the questions.


pgsql-general by date:

Previous
From: Varun Kacholia
Date:
Subject: clustered indexes?
Next
From: Stephan Szabo
Date:
Subject: Re: CAST(null as date)...