Re: Query does not use index - Mailing list pgsql-novice

From Tom Lane
Subject Re: Query does not use index
Date
Msg-id 18077.1083281571@sss.pgh.pa.us
Whole thread Raw
In response to Query does not use index  (Martin Hampl <Martin.Hampl@gmx.de>)
Responses Re: Query does not use index
List pgsql-novice
Martin Hampl <Martin.Hampl@gmx.de> writes:
> It would be very nice, if someone could have a look at the query I'm
> trying to optimize. At the moment, I don't understand PostgreSQL's
> behaviour and are stuck. Thanks a lot in advance.

Did you ANALYZE these tables?  Also, please post EXPLAIN ANALYZE not
just EXPLAIN when complaining about bad plans.  Since the essence of
your complaint is that the planner's estimates are wrong, showing us
only estimates and not reality makes it hard to give constructive
suggestions ...

            regards, tom lane

pgsql-novice by date:

Previous
From: Martin Hampl
Date:
Subject: Query does not use index
Next
From: Martin Hampl
Date:
Subject: Re: Query does not use index