OSDN Git Service

Include the target table in EXPLAIN output for ModifyTable nodes.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Mar 2011 16:32:13 +0000 (11:32 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 1 Mar 2011 16:37:01 +0000 (11:37 -0500)
commit97c4ee94adf15f7a0a39cbb5549159e2aa0679d1
tree09a72b47077da382c563d6b887004d72eb21711d
parent59d6a7594288ebc909a24f3fc9e502f097bbe2ff
Include the target table in EXPLAIN output for ModifyTable nodes.

Per discussion, this seems important for plans involving writable CTEs,
since there can now be more than one ModifyTable node in the plan.

To retain the same formatting as for target tables of scan nodes, we
show only one target table, which will be the parent table in case of
an UPDATE or DELETE on an inheritance tree.  Individual child tables
can be determined by inspecting the child plan trees if needed.
src/backend/commands/explain.c