Skip to content

Commit 0b4bf85

Browse files
committed
Make logging of extended-protocol commands a bit more consistent, per
discussion with Guillaume Smet.
1 parent 33d3ad4 commit 0b4bf85

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/backend/tcop/postgres.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.508 2006/09/08 15:55:53 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.509 2006/09/13 21:59:04 tgl Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -1610,10 +1610,11 @@ exec_bind_message(StringInfo input_message)
16101610
break;
16111611
case 2:
16121612
ereport(LOG,
1613-
(errmsg("duration: %s ms bind %s to %s: %s",
1613+
(errmsg("duration: %s ms bind %s%s%s: %s",
16141614
msec_str,
1615-
*portal_name ? portal_name : "<unnamed>",
16161615
*stmt_name ? stmt_name : "<unnamed>",
1616+
*portal_name ? "/" : "",
1617+
*portal_name ? portal_name : "",
16171618
pstmt->query_string ? pstmt->query_string : "<source not stored>"),
16181619
errdetail_params(params)));
16191620
break;
@@ -1740,8 +1741,8 @@ exec_execute_message(const char *portal_name, long max_rows)
17401741
ereport(LOG,
17411742
(errmsg("%s %s%s%s%s%s",
17421743
execute_is_fetch ?
1743-
_("statement: execute fetch from") :
1744-
_("statement: execute"),
1744+
_("execute fetch from") :
1745+
_("execute"),
17451746
prepStmtName,
17461747
*portal_name ? "/" : "",
17471748
*portal_name ? portal_name : "",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy