Re: Making Vars outer-join aware - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Making Vars outer-join aware
Date
Msg-id 2789900.1671829756@sss.pgh.pa.us
Whole thread Raw
In response to Re: Making Vars outer-join aware  (Ted Yu <yuzhihong@gmail.com>)
List pgsql-hackers
Ted Yu <yuzhihong@gmail.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



pgsql-hackers by date:

Previous
From: Ted Yu
Date:
Subject: Re: Making Vars outer-join aware
Next
From: Ted Yu
Date:
Subject: Re: Error-safe user functions