|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.493 2006/07/29 03:02:56 tgl Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.494 2006/08/04 18:53:46 momjian Exp $ |
12 | 12 | * |
13 | 13 | * NOTES |
14 | 14 | * this is the "main" module of the postgres backend and |
@@ -1146,8 +1146,8 @@ 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:[protocol] PREPARE %s AS %s", |
1150 | | -(*stmt_name!='\0') ?stmt_name :"<unnamed>", |
| 1149 | +(errmsg("statement:<protocol> PREPARE %s AS %s", |
| 1150 | +*stmt_name ?stmt_name :"<unnamed>", |
1151 | 1151 | query_string))); |
1152 | 1152 |
|
1153 | 1153 | /* |
@@ -1452,7 +1452,9 @@ exec_bind_message(StringInfo input_message) |
1452 | 1452 | /* We need to output the parameter values someday */ |
1453 | 1453 | if (log_statement==LOGSTMT_ALL) |
1454 | 1454 | ereport(LOG, |
1455 | | -(errmsg("statement: [protocol] <BIND> %s",portal_name))); |
| 1455 | +(errmsg("statement: <protocol> <BIND> %s [PREPARE: %s]", |
| 1456 | +*portal_name ?portal_name :"<unnamed>", |
| 1457 | +portal->sourceText ?portal->sourceText :""))); |
1456 | 1458 |
|
1457 | 1459 | /* |
1458 | 1460 | * Fetch parameters, if any, and store in the portal's memory context. |
@@ -1718,9 +1720,9 @@ exec_execute_message(const char *portal_name, long max_rows) |
1718 | 1720 | if (log_statement==LOGSTMT_ALL) |
1719 | 1721 | /* We have the portal, so output the source query. */ |
1720 | 1722 | ereport(LOG, |
1721 | | -(errmsg("statement:[protocol] %sEXECUTE %s [PREPARE: %s]", |
| 1723 | +(errmsg("statement:<protocol> %sEXECUTE %s [PREPARE: %s]", |
1722 | 1724 | execute_is_fetch ?"FETCH from " :"", |
1723 | | -(*portal_name) ?portal_name :"<unnamed>", |
| 1725 | +*portal_name ?portal_name :"<unnamed>", |
1724 | 1726 | portal->sourceText ?portal->sourceText :""))); |
1725 | 1727 |
|
1726 | 1728 | BeginCommand(portal->commandTag,dest); |
@@ -1826,11 +1828,11 @@ exec_execute_message(const char *portal_name, long max_rows) |
1826 | 1828 | secs,msecs))); |
1827 | 1829 | else |
1828 | 1830 | ereport(LOG, |
1829 | | -(errmsg("duration: %ld.%03d ms statement:[protocol] %sEXECUTE %s [PREPARE: %s]", |
| 1831 | +(errmsg("duration: %ld.%03d ms statement:<protocol> %sEXECUTE %s [PREPARE: %s]", |
1830 | 1832 | secs,msecs, |
1831 | 1833 | execute_is_fetch ?"FETCH from " :"", |
1832 | | -(*portal_name) ?portal_name :"<unnamed>", |
1833 | | -portal->sourceText ?portal->sourceText :""))); |
| 1834 | +*portal_name ?portal_name :"<unnamed>", |
| 1835 | +portal->sourceText ?portal->sourceText :""))); |
1834 | 1836 | } |
1835 | 1837 | } |
1836 | 1838 |
|
|