Dan Colish <[email protected]> writes:
> I am currently trying to convert an insertstmt back into a const
> char *queryString, but I can't find an existing function to do this
> for the life of me. I will write one if none exits, but I figured I
> ask here first. Unfortunately, nodeToString is not quite right for
> what I'm doing. Thanks in advance.
Hmm, you mean a Query, or a raw unanalyzed InsertStmt? If the former,
ruleutils.c will help. If the latter, be prepared to write a lot of
code; there's nothing closer than nodeToString, and even that is pretty
incomplete for raw grammar output nodes IIRC.
regards, tom lane
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers