Re: Planner reluctant to start from subquery - Mailing list pgsql-performance

From Tom Lane
Subject Re: Planner reluctant to start from subquery
Date
Msg-id 4611.1138827188@sss.pgh.pa.us
Whole thread Raw
In response to Re: Planner reluctant to start from subquery  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Since you were so confident it couldn't be the outer join, I went
> looking for what else I changed at the same time.  I eliminated the code
> referencing that table, which contained an OR.  I've seen ORs cause
> nasty problems with optimizers in the past.  I took out the OR in the
> where clause, without eliminating that last outer join, and it optimized
> fine.

I don't think that OR is relevant either, since again it's present in
both the well-optimized and badly-optimized variants that you posted.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Planner reluctant to start from subquery
Next
From: Bruno Wolff III
Date:
Subject: Re: Index Usage using IN