*
*
* 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
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 : "")));
}
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 ? "/" : "",