From: | Goti <aryan(dot)goti(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: How to find the final transformed query in postgresql |
Date: | 2022-04-18 14:31:11 |
Message-ID: | CAOzfMuq0p7s8-BLDx1bzS0No7oRadW1sgt=MuLs=uAZDLqfsWA@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Thanks a lot Tom.
Thanks,
Goti
On Mon, Apr 18, 2022 at 7:43 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Goti <aryan(dot)goti(at)gmail(dot)com> writes:
> > I would like to know if postgres performs any transformations when it
> does
> > the parsing?
>
> This might be helpful reading:
>
> https://www.postgresql.org/docs/current/overview.html
>
> > If yes, is there a way we can get the final transformed query?
>
> See debug_print_parse and friends [1]. Depending on what you mean by
> "final transformed query", you might instead want debug_print_rewritten,
> or maybe you want the plan, in which case EXPLAIN is a much friendlier
> way to look at it than debug_print_plan.
>
> regards, tom lane
>
> [1]
> https://www.postgresql.org/docs/current/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT
>
From | Date | Subject | |
---|---|---|---|
Next Message | Patil, Ravi | 2022-04-19 12:35:21 | How to find all SQLs executed by a transaction id? |
Previous Message | Tom Lane | 2022-04-18 14:13:03 | Re: How to find the final transformed query in postgresql |