pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add outfuncs.c support for RawStmt nodes.
3+ messages / 1 participants
[nested] [flat]

* pgsql: Add outfuncs.c support for RawStmt nodes.
@ 2018-09-16 17:03 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2018-09-16 17:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3844adbf3c2521c0956064c1c27096c96ca92201

Modified Files
--------------
src/backend/nodes/outfuncs.c | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Add outfuncs.c support for RawStmt nodes.
@ 2018-09-16 17:03 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2018-09-16 17:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0ca27ea66a18cbf9b9bc69443df15a637f26b9b4

Modified Files
--------------
src/backend/nodes/outfuncs.c | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Add outfuncs.c support for RawStmt nodes.
@ 2018-09-16 17:03 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2018-09-16 17:03 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c37401733aa73949507dbe6abf4d6137fd1f5529

Modified Files
--------------
src/backend/nodes/outfuncs.c | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-09-16 17:03 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-16 17:03 pgsql: Add outfuncs.c support for RawStmt nodes. Tom Lane <tgl@sss.pgh.pa.us>
2018-09-16 17:03 pgsql: Add outfuncs.c support for RawStmt nodes. Tom Lane <tgl@sss.pgh.pa.us>
2018-09-16 17:03 pgsql: Add outfuncs.c support for RawStmt nodes. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox