| От | Tom Lane |
|---|---|
| Тема | Re: Is there a way to view a rewritten query? |
| Дата | |
| Msg-id | 22245.1102092164@sss.pgh.pa.us обсуждение |
| Ответ на | Is there a way to view a rewritten query? (Jonathan Knopp <pgsql@delegated.net>) |
| Список | pgsql-general |
Jonathan Knopp <pgsql@delegated.net> writes:
> I'm trying to set up some complex rules and having a hard time figuring
> out why they won't work. Being able to see the query after all the rules
> have been applied would be a huge help, but I can't seem to find a way
> to do this. log_statement only shows the original. debug_print_rewritten
> works, but displays it in such a way as to be virtually unusable.
Sorry, but that's all there is. The rewriter isn't a source-to-source
transformation.
(If you feel like hacking, it might be interesting to try applying
the ruleutils.c functions to the rewritten querytree, but I'm quite
unsure how readable the result will be.)
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера