mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
Make logging of extended-protocol commands a bit more consistent, per
discussion with Guillaume Smet.
This commit is contained in:
parent
33d3ad4657
commit
0b4bf8537f
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* 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
|
||||
* this is the "main" module of the postgres backend and
|
||||
@ -1610,10 +1610,11 @@ exec_bind_message(StringInfo input_message)
|
||||
break;
|
||||
case 2:
|
||||
ereport(LOG,
|
||||
(errmsg("duration: %s ms bind %s to %s: %s",
|
||||
(errmsg("duration: %s ms bind %s%s%s: %s",
|
||||
msec_str,
|
||||
*portal_name ? portal_name : "<unnamed>",
|
||||
*stmt_name ? stmt_name : "<unnamed>",
|
||||
*portal_name ? "/" : "",
|
||||
*portal_name ? portal_name : "",
|
||||
pstmt->query_string ? pstmt->query_string : "<source not stored>"),
|
||||
errdetail_params(params)));
|
||||
break;
|
||||
@ -1740,8 +1741,8 @@ exec_execute_message(const char *portal_name, long max_rows)
|
||||
ereport(LOG,
|
||||
(errmsg("%s %s%s%s%s%s",
|
||||
execute_is_fetch ?
|
||||
_("statement: execute fetch from") :
|
||||
_("statement: execute"),
|
||||
_("execute fetch from") :
|
||||
_("execute"),
|
||||
prepStmtName,
|
||||
*portal_name ? "/" : "",
|
||||
*portal_name ? portal_name : "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user