On Wed, Apr 15, 2015 at 5:19 PM, Lukas Fittl <lu...@fittl.com> wrote: > It'd be interesting to explore if there is some way to make this less > hack-ish, and enable tools to parse queries in a better way. Essentially > what is needed is some way to reliably translate SQL into an AST-like > output, from an outside tool, whilst reusing the current PostgreSQL parser. > It is not difficult to output parsed query in some tool readable format but it comes with a maintain overhead: once tools rely on it, we have to conform to some schema continuously, like the xml/xmlns. Do we want to take this? Depends on how far the tools can go with this exposed information.
We actually already have explain command in json format and tools drawing/analyzing query plan rely on it. Will that work for your scenario? Regards, Qingqing -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers