Re: Pseudoconstant quals versus the join removal patch

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Pseudoconstant quals versus the join removal patch
Date: 2010-09-14 23:26:26
Message-ID: 20372.1284506786@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I wrote:
> I think that it's probably sufficient to make remove_rel_from_query run
> through the rel's joininfo list looking for pseudoconstant quals, and
> push those back into the joininfo lists with a reduced join list. I
> wonder though if there's a better way, or if there are related bugs
> this fix won't cover. Any thoughts?

On reflection I decided that outerjoin-delayed quals could probably have
the same problem. I've changed the code so that all quals not clearly
attached to the specific outer join we're removing will be modified to
ensure they're still evaluated at the right time.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-09-15 00:44:03 Re: Pseudoconstant quals versus the join removal patch
Previous Message Tom Lane 2010-09-14 23:02:25 Re: top-level DML under CTEs