diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-10-17 01:14:26 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-10-17 01:14:26 +0000 |
commit | fe1b5034dd557822b28877bf423828d37c847702 (patch) | |
tree | 103540b238a774f63960407fde58e72f115ad8b6 /src/backend/commands/explain.c | |
parent | fa2356a1acd4fab20c66079747cf856441cc9546 (diff) | |
download | postgresql-fe1b5034dd557822b28877bf423828d37c847702.tar.gz postgresql-fe1b5034dd557822b28877bf423828d37c847702.zip |
Adjust display of actual runtimes in EXPLAIN output to use three fractional
digits, and label it 'ms' not 'msec', for consistency with psql's \timing
display. Per recent discussions.
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r-- | src/backend/commands/explain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index eb73c91409b..1b34b17585f 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994-5, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.116 2003/09/25 18:58:35 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.117 2003/10/17 01:14:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -270,7 +270,7 @@ ExplainOnePlan(QueryDesc *queryDesc, ExplainStmt *stmt, if (es->printCost) { if (stmt->analyze) - appendStringInfo(str, "Total runtime: %.2f msec\n", + appendStringInfo(str, "Total runtime: %.3f ms\n", 1000.0 * totaltime); do_text_output_multiline(tstate, str->data); } @@ -582,7 +582,7 @@ explain_outNode(StringInfo str, { double nloops = planstate->instrument->nloops; - appendStringInfo(str, " (actual time=%.2f..%.2f rows=%.0f loops=%.0f)", + appendStringInfo(str, " (actual time=%.3f..%.3f rows=%.0f loops=%.0f)", 1000.0 * planstate->instrument->startup / nloops, 1000.0 * planstate->instrument->total / nloops, planstate->instrument->ntuples / nloops, |