mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
Make logging of extended-protocol commands a bit more consistent, per
discussion with Guillaume Smet.
This commit is contained in:
@ -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)
|
|||||||
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)
|
|||||||
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 : "",
|
||||||
|
Reference in New Issue
Block a user