Re: How to find the final transformed query in postgresql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to find the final transformed query in postgresql
Дата
Msg-id 2268716.1650291183@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to find the final transformed query in postgresql  (Goti <aryan.goti@gmail.com>)
Ответы Re: How to find the final transformed query in postgresql  (Goti <aryan.goti@gmail.com>)
Список pgsql-performance
Goti <aryan.goti@gmail.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



В списке pgsql-performance по дате отправления:

Предыдущее
От: Goti
Дата:
Сообщение: How to find the final transformed query in postgresql
Следующее
От: Goti
Дата:
Сообщение: Re: How to find the final transformed query in postgresql