Re: Making Vars outer-join aware

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ted Yu <yuzhihong(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "Finnerty, Jim" <jfinnert(at)amazon(dot)com>
Subject: Re: Making Vars outer-join aware
Date: 2022-12-23 21:09:16
Message-ID: 2789900.1671829756@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ted Yu <yuzhihong(at)gmail(dot)com> writes:
> For v8-0012-invent-join-domains.patch, in `distribute_qual_to_rels`, it
> seems that `pseudoconstant` and `root->hasPseudoConstantQuals` carry the
> same value.
> Can the variable `pseudoconstant` be omitted ?

Surely not. 'pseudoconstant' tells whether the current qual clause
is pseudoconstant. root->hasPseudoConstantQuals remembers whether
we have found any pseudoconstant qual in the query.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ted Yu 2022-12-23 21:19:07 Re: Error-safe user functions
Previous Message Ted Yu 2022-12-23 20:59:07 Re: Making Vars outer-join aware