|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * 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 $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * 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,
|
589 | 589 | entry->query_string)
|
590 | 590 | {
|
591 | 591 | *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]", |
594 | 594 | entry->query_string);
|
595 | 595 | }
|
596 | 596 | }
|
@@ -1146,7 +1146,7 @@ exec_parse_message(const char *query_string,/* string to execute */
|
1146 | 1146 |
|
1147 | 1147 | if (log_statement==LOGSTMT_ALL)
|
1148 | 1148 | ereport(LOG,
|
1149 |
| -(errmsg("statement: [client] PREPARE %s AS %s", |
| 1149 | +(errmsg("statement: [protocol] PREPARE %s AS %s", |
1150 | 1150 | (*stmt_name!='\0') ?stmt_name :"<unnamed>",
|
1151 | 1151 | query_string)));
|
1152 | 1152 |
|
@@ -1449,7 +1449,7 @@ exec_bind_message(StringInfo input_message)
|
1449 | 1449 | /* We need to output the parameter values someday */
|
1450 | 1450 | if (log_statement==LOGSTMT_ALL)
|
1451 | 1451 | ereport(LOG,
|
1452 |
| -(errmsg("statement: [client] <BIND> %s",portal_name))); |
| 1452 | +(errmsg("statement: [protocol] <BIND> %s",portal_name))); |
1453 | 1453 |
|
1454 | 1454 | /*
|
1455 | 1455 | * 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)
|
1712 | 1712 | if (log_statement==LOGSTMT_ALL)
|
1713 | 1713 | /* We have the portal, so output the source query. */
|
1714 | 1714 | ereport(LOG,
|
1715 |
| -(errmsg("statement: [client] %sEXECUTE %s [PREPARE: %s]", |
| 1715 | +(errmsg("statement: [protocol] %sEXECUTE %s [PREPARE: %s]", |
1716 | 1716 | (execute_is_fetch) ?"FETCH from " :"",
|
1717 | 1717 | (*portal_name!='\0') ?portal_name :"<unnamed>",
|
1718 | 1718 | portal->sourceText ?portal->sourceText :"")));
|
@@ -1821,7 +1821,7 @@ exec_execute_message(const char *portal_name, long max_rows)
|
1821 | 1821 | (save_log_min_duration_statement>0&&
|
1822 | 1822 | usecs >=save_log_min_duration_statement*1000))
|
1823 | 1823 | 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]", |
1825 | 1825 | (long) ((stop_t.tv_sec-start_t.tv_sec)*1000+
|
1826 | 1826 | (stop_t.tv_usec-start_t.tv_usec) /1000),
|
1827 | 1827 | (long) (stop_t.tv_usec-start_t.tv_usec) %1000,
|
|