Re: Bad plan choice nestloop vs. hashjoin - Mailing list pgsql-performance

From Tom Lane
Subject Re: Bad plan choice nestloop vs. hashjoin
Date
Msg-id 24460.1263601647@sss.pgh.pa.us
Whole thread Raw
In response to Bad plan choice nestloop vs. hashjoin  (Kenneth Marshall <ktm@rice.edu>)
List pgsql-performance
Kenneth Marshall <ktm@rice.edu> writes:
> We have just upgraded our monitoring server software and
> now the following query for graphing the data performs
> abysmally with the default settings. Here is the results
> of the EXPLAIN ANALYZE run with nestloops enabled:

That plan seems a bit wacko --- I don't see a reason for it to be using
an indexscan on items ii.  Can you extract a self-contained test case?

            regards, tom lane

pgsql-performance by date:

Previous
From: Kenneth Marshall
Date:
Subject: Re: Bad plan choice nestloop vs. hashjoin
Next
From: Eduardo Piombino
Date:
Subject: Re: a heavy duty operation on an "unused" table kills my server