diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-08-10 00:44:01 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-08-10 00:44:01 +0000 |
commit | a4f14fd109a88c2ee98d0a95a9217a947a895251 (patch) | |
tree | ba7b732d270e0ac85af8f982442f2918906b71dc /src/backend/tcop/postgres.c | |
parent | 0bf9d3a59e6a7108b04dcf46a592578fe01d1679 (diff) | |
download | postgresql-a4f14fd109a88c2ee98d0a95a9217a947a895251.tar.gz postgresql-a4f14fd109a88c2ee98d0a95a9217a947a895251.zip |
Fix display of log duration so it is milliseconds.microseconds "ms".
Greg Sabino Mullane
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 5a2beeaef5f..20b0f68fc11 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.496 2006/08/08 01:23:15 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.497 2006/08/10 00:44:01 momjian Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -1094,11 +1094,11 @@ exec_simple_query(const char *query_string) if (was_logged) ereport(LOG, (errmsg("duration: %ld.%03d ms", - secs, msecs))); + secs * 1000 + msecs, usecs % 1000))); else ereport(LOG, (errmsg("duration: %ld.%03d ms statement: %s%s", - secs, msecs, + secs * 1000 + msecs, usecs % 1000, query_string, prepare_string ? prepare_string : ""))); } @@ -1855,11 +1855,11 @@ exec_execute_message(const char *portal_name, long max_rows) if (log_statement == LOGSTMT_ALL) /* already logged? */ ereport(LOG, (errmsg("duration: %ld.%03d ms", - secs, msecs))); + secs * 1000 + msecs, usecs % 1000))); else ereport(LOG, (errmsg("duration: %ld.%03d ms execute %s%s%s%s: %s", - secs, msecs, + secs * 1000 + msecs, usecs % 1000, execute_is_fetch ? "fetch from " : "", portal->prepStmtName ? portal->prepStmtName : "<unnamed>", *portal->name ? "/" : "", |