Where is the qualification par in the Query Tree

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Where is the qualification par in the Query Tree

Marc Rechté
This refers to /doc/src/sgml/html/querytree.html, where one mentions a
qualification part in the Query Tree. While reading the Query node
(parsenode.h) and output from the log with debug_print_parse = on, I
cannot see either this part. Is it gone in profit of join tree ?


Reply | Threaded
Open this post in threaded view
|

Re: Where is the qualification par in the Query Tree

Tom Lane-2
=?UTF-8?Q?Marc_Recht=c3=a9?= <[hidden email]> writes:
> This refers to /doc/src/sgml/html/querytree.html, where one mentions a
> qualification part in the Query Tree. While reading the Query node
> (parsenode.h) and output from the log with debug_print_parse = on, I
> cannot see either this part. Is it gone in profit of join tree ?

As noted near the bottom of that documentation page:

    It turns out to be convenient to store the top-level WHERE expression
    as a qualification attached to the top-level join-tree item, too. So
    really the join tree represents both the FROM and WHERE clauses of a
    SELECT.

IOW, Query.jointree->quals.

                        regards, tom lane