]> granicus.if.org Git - postgresql/commit
Add outfuncs.c support for RawStmt nodes.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 16 Sep 2018 17:02:47 +0000 (13:02 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 16 Sep 2018 17:02:47 +0000 (13:02 -0400)
commitc37401733aa73949507dbe6abf4d6137fd1f5529
tree9ed036d1c1312431bf53324db69a8dadc826bd61
parent99cbbbbd1ddd3eb23dba7d0f4810e5accccce8c8
Add outfuncs.c support for RawStmt nodes.

I noticed while poking at a report from Andrey Lepikhov that the
recent addition of RawStmt nodes at the top of raw parse trees
makes it impossible to print any raw parse trees whatsoever,
because outfuncs.c doesn't know RawStmt and hence fails to descend
into it.

While we generally lack outfuncs.c support for utility statements,
there is reasonably complete support for what you can find in a
raw SELECT statement.  It was not my intention to make that all
dead code ... so let's add support for RawStmt.

Back-patch to v10 where RawStmt appeared.
src/backend/nodes/outfuncs.c