Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Deparsed SQL in rewriteHandler

2 views
Skip to first unread message

Amol Bhangdiya

unread,
Oct 23, 2012, 2:29:24 PM10/23/12
to
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.
0 new messages