diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-09-13 21:59:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-09-13 21:59:04 +0000 |
commit | 0b4bf8537fb25582dc5daf1f7bd55079cf0f26bb (patch) | |
tree | 6ad0c2cc422890bb4b597c861bc216b465050e1d /src/backend/tcop/postgres.c | |
parent | 33d3ad4657857b7644a2011a685142d9f06ebf61 (diff) | |
download | postgresql-0b4bf8537fb25582dc5daf1f7bd55079cf0f26bb.tar.gz postgresql-0b4bf8537fb25582dc5daf1f7bd55079cf0f26bb.zip |
Make logging of extended-protocol commands a bit more consistent, per
discussion with Guillaume Smet.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 0344eec53fc..6e83a23293d 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -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 : "", |