diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-04-16 11:30:27 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-04-16 11:30:27 -0400 |
commit | f90c708a048667befbf6bbe5f48ae9695cb89de4 (patch) | |
tree | 5fee359301e7bbe2b1594b6b5ed1852100eaa3c9 /src/backend/commands/explain.c | |
parent | 029c5ac03db72f1898ee17e417650a2e0764b239 (diff) | |
download | postgresql-f90c708a048667befbf6bbe5f48ae9695cb89de4.tar.gz postgresql-f90c708a048667befbf6bbe5f48ae9695cb89de4.zip |
Fix wrong units in two ExplainPropertyFloat calls.
This is only a latent bug, since these calls are only reached for
non-text output formats, and currently none of those will print
the units. Still, we should get it right in case that ever changes.
Justin Pryzby
Discussion: https://postgr.es/m/20210415163846.GA3315@telsasoft.com
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r-- | src/backend/commands/explain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index b62a76e7e5a..3d5198e2345 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -1631,9 +1631,9 @@ ExplainNode(PlanState *planstate, List *ancestors, { if (es->timing) { - ExplainPropertyFloat("Actual Startup Time", "s", startup_ms, + ExplainPropertyFloat("Actual Startup Time", "ms", startup_ms, 3, es); - ExplainPropertyFloat("Actual Total Time", "s", total_ms, + ExplainPropertyFloat("Actual Total Time", "ms", total_ms, 3, es); } ExplainPropertyFloat("Actual Rows", NULL, rows, 0, es); |