Re: Where the Quals are actually 'List'ed - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Where the Quals are actually 'List'ed
Date
Msg-id 16762.1297095402@sss.pgh.pa.us
Whole thread Raw
In response to Where the Quals are actually 'List'ed  (Vaibhav Kaushal <vaibhavkaushal123@gmail.com>)
Responses Re: Where the Quals are actually 'List'ed  (Vaibhav Kaushal <vaibhavkaushal123@gmail.com>)
List pgsql-hackers
Vaibhav Kaushal <vaibhavkaushal123@gmail.com> writes:
> Hi,
> I find that ExecInitExpr creates a ExprState tree (and so say the
> comments above the function in the source). Also, it seems to decide
> which function would get called when the expression is to be evaluated
> when ExecQual runs, by setting the function pointer, for example: 

> bstate->xprstate.evalfunc = (ExprStateEvalFunc)ExecEvalAnd;

> But ExecQual goes through a List, whereas, ExecInitExpr creates a tree. 
> So is that same tree converted to a qual list or are we adding some more
> information.

ExecInitExpr produces a List of state trees from a List of expr trees
--- look at the last case in its switch.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Varlena and binary
Next
From: Dimitri Fontaine
Date:
Subject: Re: A different approach to extension NO USER DATA feature