Re: Planner reluctant to start from subquery

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Planner reluctant to start from subquery
Date: 2006-02-01 20:53:08
Message-ID: 4611.1138827188@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jim C. Nasby 2006-02-01 21:16:33 Default autovacuum settings too conservative
Previous Message Kevin Grittner 2006-02-01 20:50:51 Re: Planner reluctant to start from subquery