Deparsed SQL in rewriteHandler

Поиск
Список
Период
Сортировка
От Amol Bhangdiya
Тема Deparsed SQL in rewriteHandler
Дата
Msg-id CADaB4eC=fhc2pOtfiQvNAv0MB7WfuKPsBi9uFw8HFEyEywisBA@mail.gmail.com
обсуждение исходный текст
Список pgsql-novice
Is there a way to get SQL as a string from parse tree(Query *) in rewriteHandler? I tried to look into some part of code and found function get_select_query_def() in ruleutils.c but I am not sure how to use that function.
I want to add extra condition in where clause, for that first I would deparse parse tree, add condition and parse the modified SQL again.

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

Предыдущее
От: Alex Cornford
Дата:
Сообщение: Grant / Revoke on Views and prepared statements
Следующее
От: Josh Kupershmidt
Дата:
Сообщение: Re: "Voting" question?