Re: [RFC] nodeToString format and exporting the SQL parser - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [RFC] nodeToString format and exporting the SQL parser
Date
Msg-id 3669.1270239388@sss.pgh.pa.us
Whole thread Raw
In response to [RFC] nodeToString format and exporting the SQL parser  (Michael Tharp <gxti@partiallystapled.com>)
Responses Re: [RFC] nodeToString format and exporting the SQL parser  (Michael Tharp <gxti@partiallystapled.com>)
List pgsql-hackers
Michael Tharp <gxti@partiallystapled.com> writes:
> Due to popular demand on #postgresql (by which I mean David Fetter), I 
> have been spending a little time making the internal SQL parser 
> available to clients via a C-language SQL function. The function itself 
> is extremely simple: just a wrapper around a call to raw_parser followed 
> by nodeToString.

What exactly is the use-case for this?  Generally speaking I'm against
exposing that data structure to clients, because there will inevitably
be griping when we change it (as we most certainly will).  Your
complaints boil down to "this is hard to parse from the client side",
and that already tells me you're doing something that we will refuse
to support.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Michael Tharp
Date:
Subject: [RFC] nodeToString format and exporting the SQL parser
Next
From: Josh Berkus
Date:
Subject: Re: Alpha release this week?