|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.496 2006/08/08 01:23:15 momjian Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.497 2006/08/10 00:44:01 momjian Exp $ |
12 | 12 | * |
13 | 13 | * NOTES |
14 | 14 | * this is the "main" module of the postgres backend and |
@@ -1094,11 +1094,11 @@ exec_simple_query(const char *query_string) |
1094 | 1094 | if (was_logged) |
1095 | 1095 | ereport(LOG, |
1096 | 1096 | (errmsg("duration: %ld.%03d ms", |
1097 | | -secs,msecs))); |
| 1097 | +secs*1000+msecs,usecs %1000))); |
1098 | 1098 | else |
1099 | 1099 | ereport(LOG, |
1100 | 1100 | (errmsg("duration: %ld.%03d ms statement: %s%s", |
1101 | | -secs,msecs, |
| 1101 | +secs*1000+msecs,usecs %1000, |
1102 | 1102 | query_string, |
1103 | 1103 | prepare_string ?prepare_string :""))); |
1104 | 1104 | } |
@@ -1855,11 +1855,11 @@ exec_execute_message(const char *portal_name, long max_rows) |
1855 | 1855 | if (log_statement==LOGSTMT_ALL)/* already logged? */ |
1856 | 1856 | ereport(LOG, |
1857 | 1857 | (errmsg("duration: %ld.%03d ms", |
1858 | | -secs,msecs))); |
| 1858 | +secs*1000+msecs,usecs %1000))); |
1859 | 1859 | else |
1860 | 1860 | ereport(LOG, |
1861 | 1861 | (errmsg("duration: %ld.%03d ms execute %s%s%s%s: %s", |
1862 | | -secs,msecs, |
| 1862 | +secs*1000+msecs,usecs %1000, |
1863 | 1863 | execute_is_fetch ?"fetch from " :"", |
1864 | 1864 | portal->prepStmtName ?portal->prepStmtName :"<unnamed>", |
1865 | 1865 | *portal->name ?"/" :"", |
|