Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d50657

Browse files
committed
Update logging of prepare/execute syntax, per comments from Guillaume Smet.
1 parent3a6e2ff commit0d50657

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 5 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.502 2006/08/29 20:10:42 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.503 2006/08/30 18:22:02 momjian Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -1146,7 +1146,7 @@ exec_parse_message(const char *query_string,/* string to execute */
11461146

11471147
if (log_statement==LOGSTMT_ALL)
11481148
ereport(LOG,
1149-
(errmsg("statement: prepare %s, %s",
1149+
(errmsg("statement: prepare %s: %s",
11501150
*stmt_name ?stmt_name :"<unnamed>",
11511151
query_string)));
11521152

@@ -1621,7 +1621,7 @@ exec_bind_message(StringInfo input_message)
16211621
*portal->name ?"/" :"",
16221622
*portal->name ?portal->name :"",
16231623
/* print bind parameters if we have them */
1624-
bind_values_str.len ?", " :"",
1624+
bind_values_str.len ?": " :"",
16251625
bind_values_str.len ?bind_values_str.data :""),
16261626
errdetail("prepare: %s",pstmt->query_string)));
16271627
}
@@ -1788,7 +1788,7 @@ exec_execute_message(const char *portal_name, long max_rows)
17881788
*portal_name ?portal_name :""),
17891789
errdetail("prepare: %s%s%s",sourceText,
17901790
/* optionally print bind parameters */
1791-
bindText ?", bind: " :"",
1791+
bindText ?" | bind: " :"",
17921792
bindText ?bindText :"")));
17931793

17941794
BeginCommand(portal->commandTag,dest);
@@ -1902,7 +1902,7 @@ exec_execute_message(const char *portal_name, long max_rows)
19021902
*portal_name ?portal_name :""),
19031903
errdetail("prepare: %s%s%s",sourceText,
19041904
/* optionally print bind parameters */
1905-
bindText ?", bind: " :"",
1905+
bindText ?" | bind: " :"",
19061906
bindText ?bindText :"")));
19071907
}
19081908
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp