PG-210: Columns names should match upstream pg_stat_statements column names.

This commit is contained in:
Ibrar Ahmed
2021-11-10 19:30:32 +00:00
parent 20f3d8c047
commit 06b5e4c5fe
2 changed files with 7 additions and 10 deletions

View File

@@ -1779,7 +1779,7 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
if (enc != query_txt)
pfree(enc);
/* plan at column number 7 */
if (planid && tmp.planinfo.plan_text)
if (planid && strlen(tmp.planinfo.plan_text) > 0)
values[i++] = CStringGetTextDatum(tmp.planinfo.plan_text);
else
nulls[i++] = true;