pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc Rechté <marc4@rechte.fr>
Cc: pgsql-docs@postgresql.org
Subject: Re: Where is the qualification par in the Query Tree
Date: Tue, 21 Apr 2020 10:04:52 -0400
Message-ID: <24516.1587477892@sss.pgh.pa.us> (raw)
In-Reply-To: <9bce3b37-69d6-cd96-5c7d-dfade984d2c8@rechte.fr>
References: <9bce3b37-69d6-cd96-5c7d-dfade984d2c8@rechte.fr>

=?UTF-8?Q?Marc_Recht=c3=a9?= <marc4@rechte.fr> 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





view thread (2+ messages)

Message-ID: <24516.1587477892@sss.pgh.pa.us>
Permalink:  ../24516.1587477892@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24516.1587477892@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, marc4@rechte.fr
  Subject: Re: Where is the qualification par in the Query Tree
  In-Reply-To: <24516.1587477892@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox