Commit 0b4bf853 authored by Tom Lane's avatar Tom Lane

Make logging of extended-protocol commands a bit more consistent, per

discussion with Guillaume Smet.
parent 33d3ad46
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.508 2006/09/08 15:55:53 tgl Exp $ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.509 2006/09/13 21:59:04 tgl Exp $
* *
* NOTES * NOTES
* this is the "main" module of the postgres backend and * this is the "main" module of the postgres backend and
...@@ -1610,10 +1610,11 @@ exec_bind_message(StringInfo input_message) ...@@ -1610,10 +1610,11 @@ exec_bind_message(StringInfo input_message)
break; break;
case 2: case 2:
ereport(LOG, ereport(LOG,
(errmsg("duration: %s ms bind %s to %s: %s", (errmsg("duration: %s ms bind %s%s%s: %s",
msec_str, msec_str,
*portal_name ? portal_name : "<unnamed>",
*stmt_name ? stmt_name : "<unnamed>", *stmt_name ? stmt_name : "<unnamed>",
*portal_name ? "/" : "",
*portal_name ? portal_name : "",
pstmt->query_string ? pstmt->query_string : "<source not stored>"), pstmt->query_string ? pstmt->query_string : "<source not stored>"),
errdetail_params(params))); errdetail_params(params)));
break; break;
...@@ -1740,8 +1741,8 @@ exec_execute_message(const char *portal_name, long max_rows) ...@@ -1740,8 +1741,8 @@ exec_execute_message(const char *portal_name, long max_rows)
ereport(LOG, ereport(LOG,
(errmsg("%s %s%s%s%s%s", (errmsg("%s %s%s%s%s%s",
execute_is_fetch ? execute_is_fetch ?
_("statement: execute fetch from") : _("execute fetch from") :
_("statement: execute"), _("execute"),
prepStmtName, prepStmtName,
*portal_name ? "/" : "", *portal_name ? "/" : "",
*portal_name ? portal_name : "", *portal_name ? portal_name : "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment