Fix newly introduced issue in EXPLAIN for Materialize nodes The code added in 1eff8279d was lacking a check to see if the tuplestore had been created. In nodeMaterial.c this is done by ExecMaterial() rather than by ExecInitMaterial(), so the tuplestore won't be created unless the node has been executed at least once, as demonstrated by Alexander in his report.
Here we skip showing any of the new EXPLAIN ANALYZE information when the Materialize node has not been executed. Reported-by: Alexander Lakhin Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/53abb1e0ebc38818f31f2ddb15a06feba8e19e6c Modified Files -------------- src/backend/commands/explain.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
