pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: jacktby@gmail.com <jacktby@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: How to get the selectStatement parse tree info?
Date: Tue, 25 Oct 2022 13:58:52 +0800
Message-ID: <20221025055852.aghny3huir6lt7xy@jrouhaud> (raw)
In-Reply-To: <202210251338075310173@gmail.com>
References: <202210251338075310173@gmail.com>

Hi,

On Tue, Oct 25, 2022 at 01:38:09PM +0800, jacktby@gmail.com wrote:
> I'm reading this book https://www.interdb.jp/pg/pgsql03.html? I'm debugging
> pg, but I can't get the parse tree like this:
> https://files.slack.com/files-pri/T0FS7GCKS-F047H5R2UKH/1.png, can you give
> me some ways to get that? I'm using vscode to debug, the watch info doesn't
> interest me, it gives me
> nothing,https://files.slack.com/files-pri/T0FS7GCKS-F048MD5BTME/quzk_6bk0sug60__f_0wh2l.png

I can't access the pictures, so I'm not sure what exactly you expect (and you
should usually prefer sending text anyway), but maybe what you want is "SET
debug_print_parse = on" to print the parse trees in the logs?





view thread (2+ messages)

Message-ID: <20221025055852.aghny3huir6lt7xy@jrouhaud>
Permalink:  ../20221025055852.aghny3huir6lt7xy@jrouhaud/
Also on:    postgresql.org/message-id/20221025055852.aghny3huir6lt7xy@jrouhaud

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rjuju123@gmail.com, jacktby@gmail.com
  Subject: Re: How to get the selectStatement parse tree info?
  In-Reply-To: <20221025055852.aghny3huir6lt7xy@jrouhaud>
  References: <202210251338075310173@gmail.com> <20221025055852.aghny3huir6lt7xy@jrouhaud>

* 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