|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.471 2005/12/14 17:06:27 tgl Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.472 2005/12/30 22:55:20 momjian Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * this is the "main" module of the postgres backend and
|
@@ -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: PREPARE %s AS %s", |
| 1149 | +(errmsg("statement:[client]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: <BIND> %s",portal_name))); |
| 1452 | +(errmsg("statement:[client]<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: %sEXECUTE %s [PREPARE: %s]", |
| 1715 | +(errmsg("statement:[client]%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: %sEXECUTE %s [PREPARE: %s]", |
| 1824 | +(errmsg("duration: %ld.%03ld ms statement:[client]%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,
|
|