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

Commit206499d

Browse files
committed
Prefix client-side prepare with '[protocol]' rather than '[client]'.
1 parenta8a93f7 commit206499d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 7 additions & 7 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.473 2005/12/30 23:49:48 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.474 2005/12/31 16:50:44 momjian Exp $
1212
*
1313
* NOTES
1414
* this is the "main" module of the postgres backend and
@@ -589,8 +589,8 @@ log_after_parse(List *raw_parsetree_list, const char *query_string,
589589
entry->query_string)
590590
{
591591
*prepare_string=palloc(strlen(entry->query_string)+
592-
strlen(" [client PREPARE: %s]")-1);
593-
sprintf(*prepare_string," [client PREPARE: %s]",
592+
strlen(" [protocol PREPARE: %s]")-1);
593+
sprintf(*prepare_string," [protocol PREPARE: %s]",
594594
entry->query_string);
595595
}
596596
}
@@ -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: [client] PREPARE %s AS %s",
1149+
(errmsg("statement: [protocol] PREPARE %s AS %s",
11501150
(*stmt_name!='\0') ?stmt_name :"<unnamed>",
11511151
query_string)));
11521152

@@ -1449,7 +1449,7 @@ exec_bind_message(StringInfo input_message)
14491449
/* We need to output the parameter values someday */
14501450
if (log_statement==LOGSTMT_ALL)
14511451
ereport(LOG,
1452-
(errmsg("statement: [client] <BIND> %s",portal_name)));
1452+
(errmsg("statement: [protocol] <BIND> %s",portal_name)));
14531453

14541454
/*
14551455
* Fetch parameters, if any, and store in the portal's memory context.
@@ -1712,7 +1712,7 @@ exec_execute_message(const char *portal_name, long max_rows)
17121712
if (log_statement==LOGSTMT_ALL)
17131713
/* We have the portal, so output the source query. */
17141714
ereport(LOG,
1715-
(errmsg("statement: [client] %sEXECUTE %s [PREPARE: %s]",
1715+
(errmsg("statement: [protocol] %sEXECUTE %s [PREPARE: %s]",
17161716
(execute_is_fetch) ?"FETCH from " :"",
17171717
(*portal_name!='\0') ?portal_name :"<unnamed>",
17181718
portal->sourceText ?portal->sourceText :"")));
@@ -1821,7 +1821,7 @@ exec_execute_message(const char *portal_name, long max_rows)
18211821
(save_log_min_duration_statement>0&&
18221822
usecs >=save_log_min_duration_statement*1000))
18231823
ereport(LOG,
1824-
(errmsg("duration: %ld.%03ld ms statement: [client] %sEXECUTE %s [PREPARE: %s]",
1824+
(errmsg("duration: %ld.%03ld ms statement: [protocol] %sEXECUTE %s [PREPARE: %s]",
18251825
(long) ((stop_t.tv_sec-start_t.tv_sec)*1000+
18261826
(stop_t.tv_usec-start_t.tv_usec) /1000),
18271827
(long) (stop_t.tv_usec-start_t.tv_usec) %1000,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp